Writing Content
Add a page
- Create the file
Add
docs/user-manuals/uc2/my-page.mdx(or any section folder) with front matter:docs/user-manuals/uc2/my-page.mdx---id: my-pagetitle: My Pagedescription: One-line summary used in search results and link previews.---Your content here. - Register it in the sidebar
Open
sidebars.tsand add'user-manuals/uc2/my-page'to the list (or to a category'sitems). - Preview
Run
npm start. The page appears instantly; search is rebuilt onnpm run build.
The offline search index is generated during npm run build. In npm start (dev mode) the search box is visible but returns results only after you have built and served the site once with npm run build && npm run serve.
Adding real screenshots
Put the image in static/img/ and pass src to the component:
<Screenshot n={3} src="/img/fig3-scenario-settings.png" caption="Scenario Settings panel" />
Change colours and fonts
All design tokens are at the top of src/css/custom.css. Change --ifm-color-primary (and its shades) for the light theme and the block under [data-theme='dark'] for the dark theme.
Add a global component
- Create
src/components/MyThing.tsx(and an optionalMyThing.module.css). - Register it in
src/theme/MDXComponents.tsx. - Use
<MyThing />in any.mdxfile.
Change the logo and favicon
Replace static/img/logo.svg and static/img/favicon.svg.