011c8fb0创建于 2024年8月6日历史提交
文件最后提交记录最后更新时间
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
1 年前
README

PyMuPDF documentation

Welcome to the PyMuPDF documentation. This documentation relies on Sphinx to publish HTML docs from markdown files written with restructured text (RST).

Sphinx version

This README assumes you have Sphinx v5.0.2 installed on your system.

Updating the documentation

Within docs update the associated restructured text (.rst) files. These files represent the corresponding document pages.

Building HTML documentation

  • Ensure you have the furo theme installed:

pip install furo

Furo theme, Copyright (c) 2020 Pradyun Gedam mail@pradyunsg.me, thank you to:

https://github.com/pradyunsg/furo/blob/main/LICENSE

  • From the "docs" location run:

sphinx-build -b html . build/html

This then creates the HTML documentation within build/html.

Use: sphinx-build -a -b html . build/html to build all, including the assets in _static (important if you have updated CSS).

Building the Japanese documentation

  • From the "docs" location run:

sphinx-build -a -b html -D language=ja . _build/html/ja

  • Updating, after changes on the main branch and a sync with the main en .rst files, from the "docs" location, do:

sphinx-build -b gettext . _build/gettext

then:

sphinx-intl update -p _build/gettext -l ja

This will update the corresponding po files for further edits. Then check these files for "#, fuzzy" entries as the new stuff might exist there and requires editing.

Building PDF documentation

  • First ensure you have rst2pdf installed:

python -m pip install rst2pdf

  • Then run:

sphinx-build -b pdf source build/pdf

This will then generate a single PDF for all of the documentation within build/pdf.


For full details see: Using Sphinx