Skip to main content

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


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.2.0.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docsub-0.2.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file docsub-0.2.0.tar.gz.

File metadata

  • Download URL: docsub-0.2.0.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for docsub-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fab041511335bd0cea38aefc8b51994ebf8ecdbd8f2fb34c818bec4b079a3788
MD5 55cb0f5ba6a0f464d990d1c261c21568
BLAKE2b-256 24eb944f29abdd96725d64c4f50921d81ff5eb9203981d23800aa0984e879210

See more details on using hashes here.

File details

Details for the file docsub-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: docsub-0.2.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

Hashes for docsub-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a348d72b7aef180f59dbebc98d4ea20edb9e0709a950007229cf762b2363dc73
MD5 2f473b83a5deae480fd217d90aa1487d
BLAKE2b-256 a92c7ad4674b87eb57b93217de7717dec1d9b2417b1311762892c2d9d2238932

See more details on using hashes here.

Supported by

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