Update documentation files with external content.
Project description
docsub
Update documentation files with external content.
Features
- Markdown files:
- Fenced code blocks
- Readable shell-like rule syntax
- Idempotent
Installation
uv tool install docsub
Basic usage
Give README.md
# Title
```<- cat hello.txt
```
```python <- cat hello.py
existing text is replaced
```
hello.txt
Hello world!
hello.py
def hello():
print('Hi!')
Get updated README.md
$ uvx docsub -i README.md
# Title
```<- cat hello.txt
Hello world!
```
```python <- cat hello.py
def hello():
print('Hi!')
```
CLI Reference
Yes, I eat my own dog food.
Usage: python -m docsub [OPTIONS] [FILE]...
Update documentation files with external content.
╭─ Options ────────────────────────────────────────────────╮
│ --in-place -i Overwrite source files. │
│ --version Show the version and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────╯
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
docsub-0.1.0.tar.gz
(24.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docsub-0.1.0.tar.gz.
File metadata
- Download URL: docsub-0.1.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d1475a972d23a31e88e4b54868056277dce79d824305433f1fb7d7965087736
|
|
| MD5 |
6ed2bc6932e358e427a2167ad240767f
|
|
| BLAKE2b-256 |
420a54c8acf1174ab141614ebbfbcc6291a96cb7b1c8c65e38626aee2c5df0b7
|
File details
Details for the file docsub-0.1.0-py3-none-any.whl.
File metadata
- Download URL: docsub-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
922a00d4b7a3c50fc7fb666236246f00b4863669f1ecfb2572689a6848e4b2af
|
|
| MD5 |
7ed14db2a83ca8a4f237e9ca12b2b6f7
|
|
| BLAKE2b-256 |
8f30d1be7f119c0b168c1306a7e8b2511692760c26cd1c74e12426113d0ab007
|