How draftbot/documentation works
DraftBot’s product in this repository is bilingual community documentation, not the bot itself. The documented workflow is contributors writing French source pages, English translations being produced and reviewed in pull requests, and the documentation being served on DraftBot’s sites. The tree also shows scripts for translation-status checks, link validation, glossary generation, and shared parsing. Their utility-level calls are supported by the excerpts; feature-section nodes represent documentation directories, not implementations of the bot features they describe.
Main entry points: pages.mjs Page discovery · fr French source · en English translations · links.mjs Link analysis
Components 19
Documentation content
- French source
docs/fr - English translations
docs/en - Member welcome
docs/fr/4.member-welcome - Engagement
docs/fr/5.engagement - Security
docs/fr/6.security - Communication
docs/fr/7.communication - Community
docs/fr/8.community - Games and events
docs/fr/9.games-and-events - Utilities
docs/fr/10.utilities - Miscellaneous
docs/fr/11.misc
Translation tooling
- Translation checks
scripts/check-translations.mjs - Page discovery
scripts/lib/pages.mjs - Frontmatter and hashes
scripts/lib/frontmatter.mjs - Glossary builder
scripts/build-glossary.mjs - Glossary generation
scripts/lib/glossary.mjs
Content validation
- Link checks
scripts/check-links.mjs - Link analysis
scripts/lib/links.mjs
Other components
- Contributors
- DraftBot documentation sites
Connections 10
- Contributors → French source: write source
README.md - French source → English translations: translate and review
README.md - French source → DraftBot documentation sites: serve French
README.md - English translations → DraftBot documentation sites: serve English
README.md - Translation checks → Page discovery: find page issues
scripts/check-translations.mjs - Page discovery → Frontmatter and hashes: parse metadata
scripts/lib/pages.mjs - Glossary builder → Glossary generation: build and merge
scripts/build-glossary.mjs - Link checks → Link analysis: find broken links
scripts/check-links.mjs - Link analysis → Page discovery: list pages
scripts/lib/links.mjs - Page discovery → Frontmatter and hashes: hash content
scripts/lib/pages.mjs