Skip to main content

A hack to run custom steps when building documentation on Read the Docs.

Project description

readthedocs-custom-steps

A hack to run custom steps when building documentation on Read the Docs.

Configuration

# .readthedocs.yml
version: 2
mkdocs: {}  # tell readthedocs to use mkdocs
python:
  version: 3.7
  install:
    - requirements: requirements.txt  # must contain "readthedocs-custom-steps"
# .readthedocs-custom-steps.yml
steps:
- echo "Custom steps to produce HTML in $SITE_DIR here ..."

Important: This module should not be installed outside of a Read the Docs build environment. It will rename your Python executable and install a substitute. It does not currently provide an automated way to revert this change.

Testing this package

To test this package in a similar environment as Read the Docs itself, you can run make test. Note that this requires Docker and a Docker volume called pip-caches. Note that the Make command is expected to return status code 27 as defined in the test/.readthedocs-custom-steps.yml file.

Release process

Requires Shore.

$ make bump TYPE=--minor
$ make publish

Copyright © 2020 Niklas Rosenstein

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

readthedocs-custom-steps-0.3.0.post1.tar.gz (4.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page