- Install hugo:
- Linux:
snap install hugo
- Other platforms: https://gohugo.io/getting-started/installing/
- Linux:
- Fork the zero-to-asic-www repository
- Recursively clone your fork into a folder on your machine:
git clone --recursive <https://github.com/<githubusername>/<githubreponame>.git>
. This will create a new folder<githubreponame>
. - From a command line, navigate into the folder with the cloned repository, and test the website:
- Enter
hugo server
. If you receive an error in the terminal indicatingrender of page failed
, you likely forgot to add--recursive
togit clone
- Open a web browser and enter
localhost:1313
as the URL. The Zero to ASIC website should load.
- Enter
- Blog Posts: Create new markdown files in the
content/post/
directory- For a blog post to appear in the Related sidebar, it needs to include the tag "course" in the markdown file header
- Images: Most images are stored in the
static
directory - Linking to Other Site Pages: Use relative paths for hyperlinks going to other pages from the website. For example, to link to a terminology page, use
[wordofinterest](/terminology/wordofinterest)
rather than[wordofinterest](https://zerotoasiccourse.com/terminology/wordofinterest)
- Verify edits: Check any changes first locally using
hugo server
and going tolocalhost:1313
in your browser before making a pull request
- Push changes from your local repository to your fork
- Submit a pull request
https://docs.github.com/en/actions/security-guides/encrypted-secrets
https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
gpg --symmetric --cipher-algo AES256 my_secret.json
shell script to decrypt: decrypt.sh