In-app documentation for Frappe Desk. Compendium aggregates Markdown files from every installed app's docs/{language}/**/*.md tree and serves them at /app/docs.
See the built-in docs for authoring conventions and a getting-started guide.
- Multi-app docs: any installed app can ship Markdown under
docs/{language}/ - Role-gated pages via frontmatter (
title,order,roles) - Multi-language trees with locale picker and fallback (
de-CH→de→en) - Later apps override the same logical path
- Relative images served safely from each app's
docs/tree - Mermaid diagrams in fenced code blocks
- Syntax highlighting for fenced code blocks
- Desk entry points:
/app/docs, Help menu, and the/appspicker
You can install this app using the bench CLI:
cd $PATH_TO_YOUR_BENCH
bench get-app $URL_OF_THIS_REPO --branch version-15
bench --site your-site install-app compendiumAfter install, open /app/docs in Desk (or use Compendium in the Help menu).
Other apps can ship their own docs by adding a docs/ folder to their package, for example my_app/docs/en/guides/setup.md.
This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:
cd apps/compendium
pre-commit installPre-commit is configured to use the following tools for checking and formatting your code:
- ruff
- eslint
- prettier
- pyupgrade
This app can use GitHub Actions for CI. The following workflows are configured:
- CI: Installs this app and runs unit tests on every push to
developbranch. - Linters: Runs Frappe Semgrep Rules and pip-audit on every pull request.
mit