Writing pages
In Docara the project files are the source of truth. Markdown holds the text and structure of a page, and JSON files hold the settings of the site, a section and a single page. The build turns them into HTML, a search index and receipts for the checks.
A simple rule
Start with plain Markdown. Add JSON only for appearance and navigation. Use a component only when Markdown is not enough, and copy the exact call from the component’s page.
The author’s path
- Write the page in Markdown: headings, lists, links, tables, code and page metadata.
- Place the pages in the menu: sections, order, hidden pages and the top menu.
- For several languages, build a multilingual site.
- When a page address changes, declare a redirect.
- If you like, turn on the checks of page profiles and documentation freshness.
- If Markdown is not enough, find a component.
- Check that the pages work for every reader.
- Set up the appearance in Site settings and build and check the result.
Do not edit the build output
build_*, the receipts in build_*.docara/ (resolved-page-plans.json,
redirects.json and others) and _docara/component-catalog.json are created
anew on every build. If the result is wrong, fix the source Markdown or JSON
and build again.
Documentation and landing pages
Both kinds of pages — documentation (docs) and landing (landing) — use one
content format, one SIMAI Framework release and one set of safety rules. Only
the frame differs: a documentation page with a menu and an outline, or a
focused page without them. More in
Layout regions.