Get started with writing docs.
Firstly create a markdown file (.md or .mdx) and name it so it corresponds to the SidebarSchema
we covered earlier.
It must be in kebab-case.
Let’s create a markdown file called get-started.mdx
Inside every markdown file you must put title
, description
, and layout
.
In each markdown file put this frontmatter at the top of the file:
Layout
value should always be the same.
The title
and description
should
be translated into the same language as the language of the folder in which they
are located.
e.g.
English translation
Serbian translation
Now just start writing below that frontmatter.
I suggest you to only use h2 (##
) or smaller since there is already a h1 at the top of the page (title).
This project uses expressive-code for code blocks.
If you want to add syntax highlighting to the codeblock add language code next to the opening tics:
```ts
const name: string = ‘John’
```
It will look like this:
If you want to add file name to the top of the code block type title=“file-name.js” next to the language code at the opening tics:
```ts title=“index.ts”
const name: string = ‘John’
```
It will look like this:
Edit this page