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
Also, don't forget to delete the documentation folder, the contents in assets and clean the notes folder!
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. Everything is already configured by the template for that.
Footnotes
-
You can found the link in Repository settings > Pages. ↩