Skip to main content

sphinxcontrib-autofile

readthedocs pre-commit.ci status github/workflow codecov

github/downloads github/downloads/latest github/issues github/issues-closed github/issues-pr github/issues-pr-closed github/discussions github/milestones github/forks github/stars github/watchers github/contributors github/commit-activity github/last-commit github/release-date

github/license github/languages github/languages/top github/directory-file-count github/code-size github/repo-size github/v

pypi/status pypi/v pypi/downloads pypi/format pypi/implementation pypi/pyversions

A sphinx extension to generate module for many files from a glob expression.

Usage

Take MyST as an example. rst is similar.

docs/conf.py:

# ...
extensions = [
    "myst_parser",
    "sphinxcontrib.autofile",
]
# ...

docs/index.md:

```{autofile} ../src/sphinxcontrib/autofile/*.py
:members:
```

It will be translated to

```{eval-rst}
.. automodule:: sphinxcontrib.autofile
    :members:

.. automodule:: sphinxcontrib.autofile.directive
    :members:

... (more modules)
```

When your modules is too many, it will save your time.

Customize

```{autofile} ../src/sphinxcontrib/autofile/*.py
:prefix: your_prefix
:template: /the/path/of/your/template
```
  • prefix: If you don't use src-layout, change it.
  • template: template use jinja syntax. See examples.

Alternatives

See readthedocs to know more.

Metadata

Release files for sphinxcontrib-autofile 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxcontrib-autofile 0.0.2
File Size Uploaded
sphinxcontrib-autofile-0.0.2.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinxcontrib-autofile 0.0.2
File Interpreter ABI Platform
sphinxcontrib_autofile-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.2 kB

Release files / sphinxcontrib-autofile-0.0.2.tar.gz

Download URL sphinxcontrib-autofile-0.0.2.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5ac1b17f04b86106ec2c524c9e511ec746754c6bcdf50c2a82e2268b5f20e864
BLAKE2b-256 checksum
How to use checksums
94a08109bb97dcd8fea9fc4aa51ac05b632e18da2883f225ef0978a5d9fa373b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / sphinxcontrib_autofile-0.0.2-py3-none-any.whl

Download URL sphinxcontrib_autofile-0.0.2-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5d3df354080de635e41f57247829b01097be74e44f4fcd0ebe0f9b3a981a00f
BLAKE2b-256 checksum
How to use checksums
adaa78c2b3b06687d4af800fd280b2a21cef358773c672b45378b751b557bf44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page