docs-hub
Scans one or more root folders for .html/.md files that live under a
docs/ or reports/ folder (at any depth), converts the Markdown ones to
HTML, and builds a single browsable index grouped by top-level repo/folder.
Runs locally on your own machine only — no hosting, no accounts, no data
leaves your filesystem.
Install
pipx install . # from this directory, or `pipx install docs-hub` once published
# or, in a venv:
pip install .
Quick start
docs-hub config set roots=/path/to/your/projects
docs-hub scan # one-off run
docs-hub ui # http://127.0.0.1:5000 — dashboard, settings, cron
The web UI lets you:
- Dashboard — see last scan info and open the generated index.
- Settings — pick which root folder(s) to scan, which folder names count as "docs"/"reports", and which directories to skip.
- Cron — see whether a scheduled scan is installed, and install/update/
remove it. This writes to your real user crontab, tagged with a
# docs-hub-scanmarker comment so it only ever touches its own job — your other cron jobs are left alone.
Config lives at ~/.config/docs-hub/config.json (or your platform's
config-dir equivalent); generated output lives under
~/.local/share/docs-hub by default.
CLI reference
docs-hub scan [--root PATH ...]
docs-hub ui [--port 5000] [--host 127.0.0.1]
docs-hub config show
docs-hub config set KEY=VALUE [KEY=VALUE ...] # comma-separate list values
docs-hub cron install [--schedule "0 * * * *"]
docs-hub cron remove
docs-hub cron status
Migrating from the old standalone generate.py
This repo previously shipped a single hardcoded script
(generate.py) with a raw crontab entry pointing at it directly. To move to
the packaged version:
pip install -e . # from this directory
docs-hub config set roots=/home/arun/Arun/Projects # restore the old scan target
docs-hub cron install --schedule "0 * * * *" # replaces the raw crontab line
crontab -e # remove the old raw generate.py line by hand
The old converted/, index.html, and cron.log produced by generate.py
are independent of the new package's output directory and can be left in
place or deleted once you've confirmed the new docs-hub scan output looks
right. Note that docs-hub (this folder) itself sits under
/home/arun/Arun/Projects, so it's included in the default
exclude_dirs list to avoid the scanner picking up its own cached output as
a phantom "repo".
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 docs_hub-0.1.0.tar.gz.
File metadata
- Download URL: docs_hub-0.1.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21592ff3a4270f1a174d2b3a21f36d97012cb328a54d9542ca93251f3c829740
|
|
| MD5 |
534f1f5f5ba2f719dccffeacd07fa963
|
|
| BLAKE2b-256 |
e0c3c9df818c654eaa7289ab284f2da3543dd5cbcdf893ef716e10f26f22bf23
|
File details
Details for the file docs_hub-0.1.0-py3-none-any.whl.
File metadata
- Download URL: docs_hub-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c80886835060081433bb88bb0ceba87dbc4b5511b986bffa3a34129ef4d59c8e
|
|
| MD5 |
35f9ccd9d78f706a24e429fdd6820550
|
|
| BLAKE2b-256 |
5fd7c7e10ff7d4c3dd083ff9dc77108a54856a117c132a715dfe403796b5107b
|