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
File details
Details for the file readthedocs-custom-steps-0.3.0.post1.tar.gz.
File metadata
- Download URL: readthedocs-custom-steps-0.3.0.post1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd7916d957bda40c0de1fc8401d0497cb55dc09ba98ead4c4b9a886fe05c6159
|
|
| MD5 |
8f9e0eabf324d5343a850e803c61e59f
|
|
| BLAKE2b-256 |
e0a7a92e4149e3530d77b6fdf1f08d967c7d4e1750e4f5e05894f89483f9395a
|