# CaraCMS Docs Welcome. Pick a topic from the sidebar, or start with Guides: two sample pages on how this site is written. Change this page in the editor at /admin. **Ask your AI about this help** Connect Claude or ChatGPT once, and it answers your questions from this help, with a link to the page it used. [Set it up](/mcp) --- # Writing a page Every page on this site is a CaraCMS page: a JSON file in content/pages/, edited in the editor at **/admin**. A page's address is its path, so content/pages/guides/writing-a-page.json is this page, at /guides/writing-a-page. ## Adding a page 1. Open the editor at **/admin**. With the dev server running, it opens straight away; on the live site, sign in first. 2. Add a page from the Pages tree, in the folder it belongs to. The folder is the first part of its address. 3. Give it a title and a short description: the description is what search engines and llms.txt show. 4. Add its blocks: text, an aside, steps, a table or a screenshot. The next page, **The docs blocks**, shows each one. 5. On the live site, **Publish** puts it live. Until then it's a draft only editors see. > **Tip:** Search only works on a built site, not in the dev server. To try it, build the site and run the built server: the README has the command. ## Where a page shows in the sidebar The sidebar is the Pages tree. A folder in content/pages/ with no page of its own, like guides/, is a group, and the tree's order is the sidebar's order. Home is the page at / and isn't in the sidebar. Prev and next, at the bottom of each page, follow the sidebar. ## What AI tools get Each page also has a plain Markdown copy at its address plus .md (this one is at /guides/writing-a-page.md), and /llms.txt lists them all. The page actions at the top of each page copy it or open it in an AI tool, and /mcp lets an AI assistant search this site and read its pages. --- # The docs blocks A page is a list of blocks, in order. This site has five, plus **Ask your AI** on Home. | Block | What it's for | | --- | --- | | **Text** | Paragraphs, lists, links and headings. Its headings make the table of contents. | | **Aside** | A note, tip, caution or danger, set apart from the text around it. | | **Steps** | A numbered list of steps. A second steps block can carry on the numbering after an interruption. | | **Table** | A header row and rows of cells, like this one. It scrolls sideways on a phone. | | **Screenshot** | A picture with a caption, and a note of what it should show. | > **Caution:** Each block's name is stored in the content ("type": "aside"). Renaming one in the code leaves every page that uses it with a block nothing draws. ## Screenshots A screenshot block can start empty, with only a note of what to capture. Visitors see nothing until a picture is added, and the editor's preview shows a placeholder to upload into, like the one below. ## Headings Text blocks take two levels of heading. Each one gets an address of its own (#headings for this one), and the table of contents beside the page lists them.