This repository includes a MkDocs Material documentation site that automatically publishes all markdown files as a beautiful, searchable website - publicly accessible even from this private repository.
Important: All markdown files in the repository are converted to HTML and publicly accessible on the website, even if they donโt appear in the navigation menu!
Simply convert the file path to a URL:
Pattern: https://arjun-christopher.github.io/AgriTwin-GH/ + path/to/file (without .md extension)
Examples:
| Repository File | Public URL |
|---|---|
docs/index.md |
https://arjun-christopher.github.io/AgriTwin-GH/docs/ |
feature_demos/FEATURE_DEMOS_GUIDE.md |
https://arjun-christopher.github.io/AgriTwin-GH/feature_demos/FEATURE_DEMOS_GUIDE/ |
README.md |
https://arjun-christopher.github.io/AgriTwin-GH/README/ |
docs/DOCS_DEPLOYMENT.md |
https://arjun-christopher.github.io/AgriTwin-GH/docs/DOCS_DEPLOYMENT/ |
The easiest option - your site will be publicly accessible at https://arjun-christopher.github.io/AgriTwin-GH/
gh-pages and folder: / (root)mkdocs.yml and replace YOUR_USERNAME with your actual GitHub usernamegit add .
git commit -m "Add MkDocs documentation site"
git push origin main
https://arjun-christopher.github.io/AgriTwin-GH/For custom domains and advanced features:
mkdocs buildsiteNETLIFY_AUTH_TOKENNETLIFY_SITE_IDUncomment Netlify deployment in .github/workflows/deploy-docs.yml
https://your-site-name.netlify.appTest your documentation site locally before deploying:
pip install -r requirements.txt
mkdocs serve
View at: http://127.0.0.1:8000
Simply add markdown files anywhere in your repository - MkDocs will automatically discover and include them in the site!
Example locations:
docs/new-guide.mddocs/tutorials/tutorial-1.mdfeature_demos/new-demo.mdTo customize the navigation order, edit the nav: section in mkdocs.yml:
nav:
- Home: index.md
- Feature Demos:
- Guide: feature_demos/FEATURE_DEMOS_GUIDE.md
- Your New Section:
- docs/your-page.md
Edit mkdocs.yml to change colors:
theme:
palette:
primary: green # Change to: blue, indigo, purple, pink, red, etc.
accent: light-green
Enable/disable features in mkdocs.yml:
theme:
features:
- navigation.tabs
- navigation.sections
- search.suggest
- content.code.copy
See Material for MkDocs Features for more options.
git push)gh-pages branch (for GitHub Pages) or NetlifyGitHub Pages URL: https://YOUR_USERNAME.github.io/AgriTwin-GH/
Netlify URL: https://your-site-name.netlify.app
gh-pages branch exists[Link](../path/to/file.md)mkdocs.ymlmkdocs.yml point to existing filesHappy Documenting! ๐