Getting started

All features

A tour of everything this documentation template includes out of the box.

This page lists what the documentation template ships with. Use it as a checklist when you customize the starter or compare versions.

docs-features_wtkSGN7B

TIP

Editors own most of this surface from Elmapi. Change categories, articles, versions, and Default open without touching the Next.js app.

FeatureWhat it does
CMS sidebarCategories and articles from Elmapi, ordered by Sort Order
Category foldDefault open sets first visit. Clicks and chevrons remember open or collapsed state
Site title in sidebarLinks to the current version home
Version switcherHeader control that always opens the home of the selected version
Reading widthPage chrome capped at 97rem by default
Full width toggleOptional full-viewport layout, saved in localStorage
Sidebar surface bleedSidebar background continues into the left viewport gutter when centered
Mobile navSheet menu with the same sidebar tree on small screens
Dark modeSystem preference plus a manual light or dark toggle

Content and reading

FeatureWhat it does
Markdown bodiesArticles use richtext editor.mode: markdown with outputFormat: markdown
CalloutsGitHub-style NOTE, TIP, IMPORTANT, WARNING, and CAUTION
Code blocksSyntax highlighting via rehype-pretty-code with a hover copy button
Tables and listsGFM tables, ordered lists, and unordered lists
Images in markdownStandard markdown images from Elmapi asset URLs
Table of contentsHeading TOC with scroll spy on article pages
Prev and nextAdjacent articles within the same category
Category pagesList every article in a section
Version homeIntro copy from Site Settings plus category browse lists

Search and discovery

FeatureWhat it does
Client searchFilter by title, summary, and category name in the header
Open on navigateLanding on an article (including from search) expands its category
Deep linksStable routes at /v/{version}/{slug}

SEO and caching

FeatureWhat it does
Site settings SEODefaults for title, description, site URL, and optional OG image
Per-article SEOOptional seo-title and seo-description fields
Open Graph imageShared /opengraph-image route
robots.txtGenerated from the public site URL
SitemapVersion homes, categories, and articles
ISR baselinerevalidate = 3600 on the root layout
Webhook refreshOptional POST /api/revalidate with REVALIDATE_SECRET

Content model

CollectionRole
site-settingsSingleton for brand, intro, and SEO defaults
doc-versionsVersion labels, slugs, default flag
doc-categoriesSidebar sections, descriptions, Default open
doc-articlesMarkdown pages related to a category and version

Example callout and code

NOTE

Callouts render from GitHub alert syntax in the markdown body.

import { createClient } from '@elmapicms/js-sdk'
 
const elmapi = createClient({
  baseUrl: process.env.ELMAPI_BASE_URL!,
  projectId: process.env.ELMAPI_PROJECT_ID!,
  apiKey: process.env.ELMAPI_API_KEY!,
})

Next step

If you are setting up a new project, continue with Installation. To change sidebar structure, see the Guides section on organizing categories and articles.