Template for Documentation Projects
-
Push your changes to GitHub
- All documentation lives in the
docs/folder as Markdown files. - The site configuration is in
mkdocs.yml.
- All documentation lives in the
-
Enable GitHub Pages
- Go to your repository on GitHub.
- Click on
Settings>Pages. - Set the source branch to
gh-pages(created automatically by the workflow). - Save your changes.
-
Automatic Deployment
- Every push to the
mainbranch will trigger a build and deploy your site to GitHub Pages using the workflow in.github/workflows/deploy.yml. - Your site will be available at:
https://<your-github-username>.github.io/<repository-name>/
- Every push to the
-
Edit your docs
- Update or add Markdown files in the
docs/folder. - Edit
mkdocs.ymlto change navigation, theme, or site settings. - Commit and push your changes to update the site.
- Update or add Markdown files in the
Template_MkDocs/
βββ docs/
β βββ index.md
β βββ about.md
βββ mkdocs.yml
βββ .github/
βββ workflows/
βββ deploy.yml
No local installation required. Everything builds and deploys in the cloud for free!