Generate dark-themed inline-SVG HTML workflow pages from Digdag .dig files, with a searchable schedules index and Prism-highlighted SQL pages.
pip install -e .digdag-pagesOutputs into graphs/ and a root scheduled_workflows.html.
The SQL page shows “Open in TD Console” links. Set your region/base URL via:
export TD_CONSOLE_BASE="https://console.treasuredata.com" # change per region/account
## Examples
A runnable `examples/sample_project` is included (schedule, `!include`, `td>` -> SQL demo).
```bash
pip install -e .[dev]
digdag-pages # from repo root
open scheduled_workflows.htmlThis repo includes a Pages workflow that builds the graphs and deploys them.
- Push to
main(ormaster). - In your repo settings, enable Pages → Build and deployment → Source: GitHub Actions.
- The workflow will publish
scheduled_workflows.html(root) and thegraphs/folder.
- Create accounts at PyPI and TestPyPI.
- In GitHub repo Settings → Secrets and variables → Actions → New repository secret add:
TEST_PYPI_API_TOKEN(scoped token from TestPyPI)PYPI_API_TOKEN(scoped token from PyPI)
- Push a tag like
v0.1.0to trigger.github/workflows/publish.ymlwhich builds and uploads to TestPyPI then PyPI.
python -m pip install --upgrade build twine
python -m build
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# verify install works from TestPyPI in a clean venv, then:
twine upload dist/*