Skip to main content

smallzh's book theme for MkDocs

Project description

MkDocs Smzhbook Theme

The theme used on the blog.smallzh.top website, built with MkDocs.

English | Chinese

0x01.Usage

Installing the Theme

pip install mkdocs-smzhbook-theme

Configuring MkDocs

Setting the theme in mkdocs.yml:

site_name: Your Site Name
theme:
  name: smzhbook

Customizing Styles and Scripts

extra_css:
  - custom.css

extra_javascript:
  - custom.js

Local Theme Development

If you need to use the theme source code directly locally (rather than the installed package), you can specify the theme directory directly in mkdocs.yml:

theme:
  name: null
  dir: /path/to/mkdocs-smzhbook-theme/smzhbook_theme

0x02.Development

First install uv, then run the following commands

# Create virtual environment
uv sync
# Start
uv run mkdocs serve

0xFF.Acknowledgments

  1. MkDocs - A simple and easy-to-use static site generator
  2. mkdocs-basic-theme - MkDocs' base theme library

PyPI Downloads PyPI Version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_smzhbook_theme-1.4.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_smzhbook_theme-1.4-py2.py3-none-any.whl (1.0 MB view details)

Uploaded Python 2Python 3

File details

Details for the file mkdocs_smzhbook_theme-1.4.tar.gz.

File metadata

  • Download URL: mkdocs_smzhbook_theme-1.4.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for mkdocs_smzhbook_theme-1.4.tar.gz
Algorithm Hash digest
SHA256 f1759d0a53b14fc088c146d7a3fbfe3a739cede2ebf76ff1cee75b0abad557e0
MD5 974c22e7843fa382d747fc00804d4f81
BLAKE2b-256 d5f2014d57eaa638e541ec9046422c6f090df3c232c59a0ce3fa7948969fdcbe

See more details on using hashes here.

File details

Details for the file mkdocs_smzhbook_theme-1.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_smzhbook_theme-1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7472808c72b4dadc35117b5cafaca0478690e885d36722d0c63c657e2f1f14a4
MD5 3d1725ba593f5ddf2ec559575ef3c314
BLAKE2b-256 8314d9b67267b70a94c22f2a0a25ae7d437b4823a2940e8afe135e09d1009767

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page