This repository is a reusable lightweight template for GitHub Pages MkDocs website with markdown support.
This template is using python, mkdocs, mermaid and material theme to generate a static website from GitHub flavored markdown.
You must also install
pythonif you haven't already
The TITLE and NAVIGATION of your website is stored in the
mkdocs.ymlfile.
The CONTENT of your pages is stored in markdown files in thedocsfolder.
Push your commits to your
mainbranch.
Your commits will be automatically transformed by the post-commit hook and pushed togh-pagesbranch.
Your website will be automatically available at
https://YOUR_ORGANIZATION.github.io/YOUR_FORKED_REPO/
The websites in GitHub Pages are always available to public audience. Make sure you don't expose any sensitive data in the website content.
For local usage/development use these command:
npm install
npm run devYou local site will be available here 127.0.0.1:8000
When creating or updating the content of the local site, mkdocs will be used to serve the site locally, and the site will be automatically rebuilt by mkdocs as changes are made. The commands below will build and serve the site from a local directory.