Skip to content

Fix vocab generation: use vocab CLI instead of vocab2md.py#48

Merged
rdhyee merged 1 commit into
mainfrom
fix/vocab-cli-not-python
Dec 11, 2025
Merged

Fix vocab generation: use vocab CLI instead of vocab2md.py#48
rdhyee merged 1 commit into
mainfrom
fix/vocab-cli-not-python

Conversation

@rdhyee
Copy link
Copy Markdown
Contributor

@rdhyee rdhyee commented Dec 11, 2025

Problem

PR #46 switched from vocab markdown CLI to python vocab2md.py, but vocab2md.py requires rdflib which isn't installed in the workflow environment.

This caused all vocabulary generation to fail with:

ModuleNotFoundError: No module named 'rdflib'

Result: vocabulary pages render with empty content.

Fix

Revert to using vocab markdown CLI from vocab_tools, which is already installed via pipx in the workflow:

- name: "install vocab_tools"
  run: pipx install git+https://github.com/isamplesorg/vocab_tools.git@main

Changes

  • scripts/generate_vocab_docs.sh: Replace python vocab2md.py with vocab markdown
  • Added comment explaining the vocab_tools dependency

Test Plan


🤖 Generated with Claude Code

PR #46 switched from `vocab markdown` to `python vocab2md.py`, but
vocab2md.py requires rdflib which isn't in requirements.txt.

The workflow already installs vocab_tools via pipx, which provides
the `vocab` CLI. This reverts to using that CLI.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rdhyee rdhyee merged commit 9c582d9 into main Dec 11, 2025
2 checks passed
@rdhyee rdhyee deleted the fix/vocab-cli-not-python branch December 11, 2025 06:56
rdhyee added a commit that referenced this pull request Apr 24, 2026
Rewrites the Development section's vocab paragraph to describe the
actual two-stage build:

1. TTL → markdown via the `vocab` CLI from isamplesorg/vocab_tools
   (installed via pipx in CI), driven by scripts/generate_vocab_docs.sh
2. markdown → HTML via `quarto render` applying _quarto.yml's theme,
   nav, and sidebar

Also notes that scripts/vocab2md.py is no longer invoked (PR #48
switched to the `vocab markdown` CLI entry point — same tool, same
transform) to prevent future confusion about which code produces
the rendered vocabulary pages.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant