-
Create new repository using this as a template
-
In the cloned repository: Settings -> Pages -> Build and deployment:
- Source: Deploy from a branch
- Branch:
gh-pages - Folder:
/ (root)
-
Set up
mkdocslocally
Using mamba:
mamba create -n mkdocs -c conda-forge mkdocs-material
mamba activate mkdocs.
├── docs # all contents for pages here
│ ├── assets
│ │ └── usyd-logo.png
│ ├── extra.css # usyd styling
│ └── index.md # home page
├── .github # GH action to auto publish when pushed to main
│ └── workflows
│ └── mkdocs_deploy.yml
├── mkdocs.yml # config for extensions, contents/navbar, etc.
└── README.mdTo preview changes in your browser:
# mamba activate mkdocs
mkdocs serveAll pushes to main will render the content and publish to github pages automatically.