fix: convert templates to XWiki 2.1 syntax (no extensions required) - #11
Merged
Conversation
Packaging: - Add [build-system] hatchling + tool.uv.package=true so qms-kit is a proper pip-installable CLI (was skipped before, entry point ignored) - hatchling added to dev dependencies Docs: - readme: fix docker-compose path, replace python -m cli with qms-kit, full 6-step quickstart, Phase 1 marked complete - docs/configuration.md: rewrite from TODO stub to full reference — all Pydantic model keys documented with types and descriptions, tracker_mapping example, validation error guide - docs/architecture.md: fix CLI invocation to qms-kit deploy - .markdownlint.json: disable MD033/MD060/MD013 (inline HTML and table pipe style are intentional in this repo) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Rename *.md.j2 → *.xwiki.j2 (5 templates)
- Convert Markdown headings/tables/lists to XWiki 2.1 syntax
- Replace {{info}} macros (conflict with Jinja2 + requires extension)
with **⚠ TODO:** bold markers — no XWiki extension needed
- XWiki adapter: syntax markdown/1.2 → xwiki/2.1
- CLI: template extension .md.j2 → .xwiki.j2
- Tests updated to reference new template filenames
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3 tasks
gerfru
added a commit
that referenced
this pull request
Jul 4, 2026
* feat(templates): Markdown as single source of truth with XWiki converter - Restore all 5 templates to clean Markdown (.md.j2) — removes the per-adapter .xwiki.j2 duplicates from PR #11 - Add templates/qms_index.md.j2: space landing page with document index table and XWiki internal links - Rewrite adapters/selfhosted/xwiki.py: add md_to_xwiki() converter (headings, tables, bold/italic, links, lists, blockquotes) and _md_inline() helper; deploy() now creates the full page hierarchy (WebHome index → QM Manual parent → nested document pages) - Update cli/main.py: renders qms_index.md.j2 first, uses .md.j2 ext - Add tests/test_md_to_xwiki.py: 17 unit tests for the converter - Update tests/test_adapters.py: adjust PUT call count to 3 (parent + 2 doc pages) to match new hierarchy deploy logic - Add pytest as dev dependency Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * fix(lint): remove f-string without placeholder (F541) * fix(lint): ruff format xwiki.py, add ruff as dev dependency --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the "Can't find descriptor for markdown/1.2" error on XWiki 16 default install.
syntax: markdown/1.2which requires the Markdown Rendering extension — not installed by defaultsyntax: xwiki/2.1(always available, no extension needed){{info}}...{{/info}}macros (conflicted with Jinja2{{ }}delimiters AND required an extension) with**⚠ TODO:**bold text — works out of the box.md.j2→.xwiki.j2to reflect actual content formatTest plan
uv run qms-kit deploy --target selfhosted --config config/clients/test.yamlcompletes without errors🤖 Generated with Claude Code