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.3.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.3-py2.py3-none-any.whl (1.0 MB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mkdocs_smzhbook_theme-1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 e1aaefe7c1343e0f9c95ecc02efa69357796ad2e150294e2daf855c591783056
MD5 0506ff662810eb6c8a7671f488dac2eb
BLAKE2b-256 51352a53d617203e23812e6fc1240c234c8d9d46d0e3025c2c3fffd25d159d96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_smzhbook_theme-1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 579f8d0d0bd46ad015420422c201d2c5ffc09ab7b3d66c5b9927b29d041ed302
MD5 5c543310d844c05a9f17f2f460bc0c2e
BLAKE2b-256 f57fb33cac933165bbf87c90ab13dd3aabcfab7a05d88a29170b34acdcd8ff97

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