Skip to main content

xyzstyle 主题 - 基于 sphinx-book-theme 的现代 Sphinx 文档主题

Project description

xyzstyle

PyPI GitHub issues GitHub forks GitHub stars GitHub license contributors Documentation Status Downloads PyPI - Downloads

xyzstyle 是基于 Sphinx Book Theme 的现代化、可定制的 Sphinx HTML 主题,为技术文档提供优雅美观的展示效果。它结合了现代Web设计理念与优秀的阅读体验,使您的文档既专业又易于阅读。

主要特点

  • 主题继承:完美继承并扩展 sphinx_book_theme 的功能
  • 配置管理:支持通过 TOML 文件加载和管理配置
  • 事件集成:与 Sphinx 的配置初始化事件无缝集成
  • 样式定制:提供自定义 CSS 文件和主题选项
  • 响应式设计:适配桌面和移动设备的响应式布局

项目结构

src/xyzstyle/
├── __init__.py          # Sphinx 扩展入口点
├── set_theme.py         # 主题管理类
└── theme/xyzstyle/      # 主题资源文件
    ├── theme.toml       # 主题配置
    ├── layout.html      # 主题布局模板
    └── static/          # 静态资源文件
        ├── css/         # CSS 样式文件
        └── js/          # JavaScript 文件

安装

使用 pip 安装 XYZStyle 主题:

pip install xyzstyle

依赖

  • sphinx_book_theme (主题继承)
  • Sphinx (文档生成引擎)
  • Python 3.12+ (运行环境)

配置文件加载

XYZStyle 支持通过在 Sphinx 项目源码目录中的 default.toml 文件加载 html_theme_options 等配置。

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

xyzstyle-0.2.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

xyzstyle-0.2.0-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

Details for the file xyzstyle-0.2.0.tar.gz.

File metadata

  • Download URL: xyzstyle-0.2.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xyzstyle-0.2.0.tar.gz
Algorithm Hash digest
SHA256 02be60b263338c7540da1e6ec644d711834a55f3c353ce64307c66a74ad37345
MD5 c2db866e0d9d650b35f1457c4e9141fc
BLAKE2b-256 92f4f262777f7506adfeabf1c9c8eab03a6af8c9eafb11ef5183565bdb313860

See more details on using hashes here.

File details

Details for the file xyzstyle-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: xyzstyle-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 20.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for xyzstyle-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 842b124d90c4af16918044e9bd3fd9cfcd407d7c0587ddaf16f455a44c667a45
MD5 506a5b53d351ab59f970bde0d32a40ff
BLAKE2b-256 db8cb3a24143ed5e503ac1e4ab9f1d02f0ac59b63ee66400a0c1fdaee8af87eb

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