In your new publish_blog
folder, you will spot a mkdocs.yml
. This file allows you to customize your blog! The most important to edit :
site_name
site_description
site_url
(critical) : By default, it'shttps://github_username.io/repo_name
1
To edit the logo and the favicon, first put the chosen file in assets/logo
, and change logo
and favicon
:
logo: assets/logo/logo_name.png
favicon: assets/logo/favicon.png
You can customize :
- Font
- Color scheme, palette, icons
- Language
Check the documentation to get more information
You don't need to touch anything in features
; markdown_extensions…
To run locally the blog, you need to install the requirements and run mkdocs serve
.
cd publish_blog
pip install -r requirements.txt
mkdocs serve
The blog will be published through GitHub Page using the gh-page
branch. In case your blog is not published through mkdocs :
- Check the
gh-pages
branch and activate it if necessary inSettings
→Pages
: - Check if workflow run normally :
Footnotes
-
You can found the link in Repository settings > Pages. ↩