doc-utils
A comprehensive collection of Python utilities and CLI tools designed to help technical writers maintain clean, consistent AsciiDoc documentation repositories.
Get started now View on GitHub
Safety First!
These tools can modify or delete files in your documentation repository. Always:
- Work in a git branch - Never run these tools on the main/master branch
- Review all changes carefully - Use
git diff
or a pull request to verify modifications- Check your preview builds - Ensure no documentation errors were introduced
Quick Start
Installation
# Recommended: Install with pipx
pipx install rolfedh-doc-utils
# Alternative: Install with pip
pip install --user rolfedh-doc-utils
Available Tools
π format-asciidoc-spacing
Standardizes AsciiDoc formatting by ensuring proper spacing after headings and around include directives.
π check-scannability
Analyzes document readability by checking sentence and paragraph length against best practices.
ποΈ archive-unused-files
Finds and optionally archives unreferenced AsciiDoc files in your documentation repository.
πΌοΈ archive-unused-images
Identifies and archives image files that are no longer referenced in your documentation.
π·οΈ find-unused-attributes
Scans for AsciiDoc attribute definitions that are declared but never used in your documentation.
Key Features
- π Easy Installation - Single package installation via pip or pipx
- π Safety First - Built-in safety warnings and dry-run modes
- π Smart Detection - Automatically detects repository structure (OpenShift-docs or traditional)
- π― Flexible Exclusions - Exclude specific files or directories from processing
- π Detailed Reports - Clear output showing what was found and what actions were taken
- π Pure Python - Cross-platform compatibility with minimal dependencies
Documentation
- Getting Started - Installation, setup, and your first commands
- Tools Reference - Detailed documentation for each tool
- Best Practices - Safety guidelines and workflow recommendations
- Contributing - How to contribute to the project
Latest Release
Version 0.1.6 - Released September 10, 2025
Whatβs New
- β¨ New
format-asciidoc-spacing
tool for standardizing AsciiDoc formatting - π§ Automatically adds blank lines after headings and around include directives
- π Supports dry-run mode and verbose output