Skip to content

Latest commit

Β 

History

History
43 lines (35 loc) Β· 1.46 KB

File metadata and controls

43 lines (35 loc) Β· 1.46 KB

Template_Docs

Template for Documentation Projects

πŸš€ How to publish your docs with MkDocs Material and GitHub Pages

  1. Push your changes to GitHub

    • All documentation lives in the docs/ folder as Markdown files.
    • The site configuration is in mkdocs.yml.
  2. 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.
  3. Automatic Deployment

    • Every push to the main branch 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>/
  4. Edit your docs

    • Update or add Markdown files in the docs/ folder.
    • Edit mkdocs.yml to change navigation, theme, or site settings.
    • Commit and push your changes to update the site.

πŸ“ Example Docs Structure

Template_MkDocs/
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ index.md
β”‚   └── about.md
β”œβ”€β”€ mkdocs.yml
└── .github/
    └── workflows/
        └── deploy.yml

πŸ“š Resources


No local installation required. Everything builds and deploys in the cloud for free!