Theme taken from mkdocs-simple-blog
To install MkDocs, run the following command from the command line:
pip install mkdocs
Install the theme using PIP:
pip install mkdocs-simple-blog
mkdocs serve
- commit and push all the changes to
main
branch
git add . && git commit -m "your commit message"
git push origin main
- Checkout/switch to the
gh-pages
branch and rebase with the latest changes of the main branch
git switch gh-pages && git rebase origin/main
-
Build your MkDocs site using
mkdocs build
command -
Navigate to the
/site
directory in your local repository and create a temporary git repository:
cd site
git init
- Commit the Changes & push to
gh-pages
branch:
git add . && git commit -m "Deploy MkDocs Site"
git push -f https://github.com/mumbaipy/website.git master:gh-pages
- Clean up:
Once you've successfully pushed to gh-pages, you can delete the temporary Git repository in the /site directory:
rm -rf .git
Read the MkDocs Documentation :)
This project is licensed under the terms of the MIT license.