Skip to main content

sphinx autopages extension

Project description

A sphinx extension to generate dynamically pages and counterpart ToC.

Usage

Simply install and add sphinx_autopages to your conf.py extensions list.

pip install sphinx-autopages

Guide

The most basic usage is to render Toc with the list of page generated.

Demo
----

.. autopages:: autopages_callable "arg1" "arg2" debug=True nb_pages=4
   :caption: autopages demo

Directive Arguments

The first argument, mandatory, is the name of the callable helper as found in conf.py followed by any optional args and kwargs passed to the callable helper.

Directive Options

The autopages directives have the same option as toctree directive:

  • maxdepth

  • name

  • class

  • caption

  • glob

  • hidden

  • includehidden

  • numbered

  • titlesonly

  • reversed

Configuration

The following global configuration variables are available:

  • None

Callable Helper

TODO

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

sphinx_autopages-0.0.2.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

sphinx_autopages-0.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_autopages-0.0.2.tar.gz.

File metadata

  • Download URL: sphinx_autopages-0.0.2.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.11.0-17-generic

File hashes

Hashes for sphinx_autopages-0.0.2.tar.gz
Algorithm Hash digest
SHA256 75f78336333a65df0de45a6af61ccd57809c1b3d9629c5434c3893349f3940e3
MD5 b2eafd91a953af9f4bd9ddba25125d80
BLAKE2b-256 bf3c2e7a951e3c9e78da88ba30e3d95aa3db9c25fb4bf4881b0b07e28c77f8f7

See more details on using hashes here.

File details

Details for the file sphinx_autopages-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: sphinx_autopages-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.11.0-17-generic

File hashes

Hashes for sphinx_autopages-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a04072dbbe9f5d4f21aa50bdfec71248852ddf1aa606cd0c8560c3389b727dca
MD5 9092f04766c46e0311f704d8eaf5c0e7
BLAKE2b-256 591f9a55258e9b807f1bfdb4813ab4ca6410b40544487306ea523a89a1b63b95

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