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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for readthedocs-custom-steps-0.3.0.post1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd7916d957bda40c0de1fc8401d0497cb55dc09ba98ead4c4b9a886fe05c6159 |
|
MD5 | 8f9e0eabf324d5343a850e803c61e59f |
|
BLAKE2b-256 | e0a7a92e4149e3530d77b6fdf1f08d967c7d4e1750e4f5e05894f89483f9395a |