These instructions apply to the entire DMRpp-wiki repository.
- This repository contains the source for the published DMR++ documentation site and related schema/reference material.
- The primary active documentation sources are
DMRpp.adoc,README.md, and the material underxml-schema/. - The
images/directory contains assets used by the published documentation. - The
retired/directory contains archived material. Do not treat it as active source unless the user explicitly asks to work there. - Prefer small, reviewable edits that preserve the current structure, voice, and examples unless a larger reorganization is requested.
- Treat
DMRpp.adocas the main published guide. Most documentation changes should land there unless the request is specifically about repository-level contribution guidance or XML schema reference material. - Treat
xml-schema/README-dmrpp.mdandxml-schema/dmrpp.xsdas the active DMR++ namespace reference and schema materials. - Treat
README.mdas contributor-facing repository guidance. - Treat
.travis.ymlandtravis/deploy_to_gh_pages.shas the active CI/CD and publishing workflow.
- Keep diffs tightly scoped to the user request.
- Do not rewrite large sections for style alone.
- Preserve existing terminology such as
DMR++,DMRpp,Hyrax,DAP4, and related domain-specific names exactly where that wording matters. - Be careful when editing command examples, version numbers, URLs, XML snippets, and file suffixes; documentation accuracy matters more than stylistic cleanup.
- Do not revert unrelated local changes in a dirty worktree.
- If you encounter conflicting edits in a file you need to change, stop and ask before overwriting them.
- Prefer working on a branch rather than directly on
main.
- Match the style already used in the touched file.
DMRpp.adocis the canonical style reference for the main guide. - Preserve existing AsciiDoc structure, anchors, cross-references, callouts, and image references unless the task requires changing them.
- When updating examples, keep them realistic and internally consistent with the surrounding explanation.
- If a change affects both the main guide and schema/reference material, update both when that materially improves accuracy.
- Keep historical or archival context in
README.mdandretired/intact unless the task is specifically to revise that history.
- Prefer existing AsciiDoc patterns in
DMRpp.adocover introducing new formatting styles. - Keep section IDs, anchors, and image paths stable when possible because the published HTML may depend on them.
- For Markdown files under
xml-schema/, preserve the current explanatory tone and technical precision. - Do not rename generated output files such as
DMRpp.htmlor change publish paths unless the task explicitly requires a publishing change.
- Travis CI is the active publishing workflow in
.travis.yml. - CI builds
DMRpp.adocto HTML and PDF using theasciidoctor/docker-asciidoctorcontainer and writes artifacts tooutput/. travis/deploy_to_gh_pages.shprepares the GitHub Pages content, copiesimages/, injects analytics intoDMRpp.html, and force-pushes the result to thegh-pagesbranch.- Be careful when editing
.travis.yml,travis/deploy_to_gh_pages.sh,VERSION, output filenames, or image paths because small changes there can break publication.
For content changes, prefer the smallest relevant validation from the repo root:
asciidoctor DMRpp.adocIf Docker-based parity with CI is needed, use the same general flow as Travis:
mkdir -p output
docker run -v "$PWD":/documents/ --rm asciidoctor/docker-asciidoctor asciidoctor -D /documents/output DMRpp.adoc
docker run -v "$PWD":/documents/ --rm asciidoctor/docker-asciidoctor asciidoctor-pdf -D /documents/output DMRpp.adocNotes:
- If local AsciiDoctor or Docker is unavailable, say so clearly in the summary.
- When changing schema or XML namespace documentation, also sanity-check examples against
xml-schema/dmrpp.xsdwhen relevant. - Do not commit generated output under
output/unless the user explicitly asks for that.
When reviewing or self-checking changes, prioritize:
- Technical accuracy of DMR++ behavior, schema semantics, commands, and examples
- Broken AsciiDoc structure, anchors, image references, links, or publish paths
- CI/CD regressions in
.travis.ymlortravis/deploy_to_gh_pages.sh - Inconsistencies between
DMRpp.adoc,README.md, andxml-schema/reference material - Accidental edits to retired or archival content
- State what you validated and what you could not validate.
- If you change publishing or CI behavior, call that out explicitly.
- If a request appears to depend on archived material in
retired/, confirm that intent before treating it as the source of truth.