Introduction
Ruskin is a modern distributed open source message queuing system built with Go.
Commands¶
mkdocs new [dir-name]- Create a new project.mkdocs serve- Start the live-reloading docs server.mkdocs build- Build the documentation site.mkdocs -h- Print help message and exit.
Project layout¶
Text Only
mkdocs.yml # The configuration file.
docs/
index.md # The documentation homepage.
... # Other markdown pages, images and other files.
Markdown Extension Examples¶
This page demonstrates some of the built-in markdown extensions provided by VitePress.
Syntax Highlighting¶
VitePress provides Syntax Highlighting powered by Shiki, with additional features like line-highlighting:
Input
JavaScript
export default {
data () {
return {
msg: 'Highlighted!'
}
}
}
Output
| JavaScript | |
|---|---|
1 2 3 4 5 6 7 | |
Python
def bubble_sort(items):
for i in range(len(items)):
for j in range(len(items) - 1 - i):
if items[j] > items[j + 1]:
items[j], items[j + 1] = items[j + 1], items[j]
Custom Containers¶
Input
Markdown
::: info
This is an info box.
:::
::: tip
This is a tip.
:::
::: warning
This is a warning.
:::
::: danger
This is a dangerous warning.
:::
::: details
This is a details block.
:::
Output
::: info This is an info box. :::
::: tip This is a tip. :::
::: warning This is a warning. :::
::: danger This is a dangerous warning. :::
::: details This is a details block. :::
More¶
Check out the documentation for the full list of markdown extensions.