Skip to content

Latest commit

 

History

History
 
 

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

PyMuPDF4LLM documentation

Welcome to the 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 or above installed on your system.

Updating the documentation

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

Building HTML documentation

  • Ensure you have the pydata theme installed:

pip install pydata-sphinx-theme

  • Ensure you have Sphinx design installed:

pip install sphinx-design

  • Ensure you have Sphinx Copy Button installed:

pip install sphinx-copybutton

  • From the "docs" location run:

sphinx-build -b html src build/html

This then creates the HTML documentation within build/html.

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

sphinx-autobuild src _build/html

This will ensure that the documentation runs in a localhost and will also hot-reload changes.

Building the Japanese documentation

  • From the "src" 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


For full details see: Using Sphinx