Documentation
Welcome to the NextKit documentation.
Introduction
an example of a doc site built using the amazing Velite and MDX.
Velite
is great because it allows you to process many different file types, such as MD, MDX, JSON, YAML, and more with Zod validation to build a type-safe data layer for your site.
We support Velite
with several Remark
and Rehype
plugins from the Unified
ecosystem to process and transform content.
This page is pure MDX that utilizes GitHub flavored markdown and is meant to show off the power of using these tools together.
While browsing this page, you may notice that many elements have default styles applied to them, or that we've used components that aren't typically found in traditional markdown files. why MDX is so powerful! It allows you to use JSX to create custom components and styles that can then be used and applied directly in your markdown files!
Note: The following markdown cheatsheet is adapted from GitHub's Markdown Cheatsheet
What is Markdown?
Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown. Mostly, Markdown is just regular text with a few non-alphabetic characters thrown in, like #
or *
.
Markdown Syntax
Headings
To create a heading, add one to six #
symbols before your heading text. The number of #
you use will determine the hierarchy level and typeface size of the heading.
First-Level Heading (h1)
Second-Level Heading (h2)
Third-Level Heading (h3)
Fourth-Level Heading (h4)
Fifth-Level Heading (h5)
Sixth-Level Heading (h6)
Styling Text
With markdown, it's really easy to add bold, italic, strikethrough, subscript, or superscript styles to text.
Quotes
You can quote text with a >
.
In the words of Abraham Lincoln:
Pardon my French
Lists
Unordered Lists
You can make an unordered list by preceding one or more lines of text with -
, *
, or +
. Sub-lists are made by indenting two spaces.
- Item 1
- Item 2
- Item 2a
- Item 2b
- Item 3
- Item 4
- Item 4a
- Item 4a1
- Item 4a2
- Item 4a3
- Item 4a
Ordered Lists
You can make an ordered list by preceding one or more lines of text with a number. Markdown automatically increments the list correctly. Sub-lists of ordered lists need to be indented three spaces.
- Item 1
- Item 2
- Item 2a
- Item 2b
- Item 3
- Item 4
- Item 4a
- Item 4a1
- Item 4a2
- Item 4a3
- Item 4a
Mixed Lists
You can mix and match ordered and unordered lists, and even the characters you use to construct them. Sub-lists follow the same rules of their parent lists - sub-lists of ordered lists need to be indented three spaces, while sub-lists of unordered lists need to be indented two spaces.
- Item 1
- Item 2
- Item 2a
- Item 2b
- Item 3
- Item 4
- Item 4a
- Item 4a1
- Item 4a2
- Item 4a3
- Item 4a
Footnotes
Here is a simple footnote1, with some additional text after it.
Line Highlight
Footnotes
Footnotes
-
My reference. ↩