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.4.tar.gz (9.3 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.4-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_autopages-0.0.4.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.17.0-29-generic

File hashes

Hashes for sphinx_autopages-0.0.4.tar.gz
Algorithm Hash digest
SHA256 470b43666466d09538e916481dab623e33aa5e460d6f8d139497d8512aa4f60c
MD5 05b8298820fc0c397bb7bac3269ce213
BLAKE2b-256 3c6f1f247acd10f7680fa966fc66b6a478194d819960a5f61f3fbbcacfa78543

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sphinx_autopages-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6dd40c7f5f4e1063b83bc66c248f17d8ae567b820744109d36caac85f3c8a4c6
MD5 e36948dc450ee10b9d360ea790383468
BLAKE2b-256 d4e955e5d82cd1b06940eaadf60c5ac7b8515bca9dcae5a6520028c44740559f

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