Skip to content

Every page of this example site is built with Docsheaf’s own blocks.Start for free

Code

Highlighted code with titles and line numbers, code groups and diagrams.

npm install
docsheaf.config.ts
export default {
  site: 'docsheaf',
  sections: ['docs', 'developers', 'changelog'],
};
Long lines wrap
This block wraps long lines instead of scrolling them sideways, which suits prose-like output such as logs and error messages that run on and on.

Code group#

One sample in several languages, as tabs:

curl
curl https://petstore3.swagger.io/api/v3/store/inventory

Diagrams#

A mermaid code block is drawn as a diagram:

flowchart LR
  Draft --> Review --> Publish

Was this helpful?

Last updated

View as Markdown