Markdown¶
Setting up markdown files with custom meta¶
Material provides some things you can add to the top of the markdown pages. They're called YAML Frontmatter, some of the most useful are:
---
title: your page title will show instead of filename
description: set's the page description, this is used for Social cards if enabled.
icon: material/emoticon-happy // You can set a icon that's shown in the side nav
status: new // as seen in the sidebar on this page it put's a ! sign next to it
hide:
- footer // hides the prev & next page footer at the bottom.
- toc // hides the table of contents (better known as right sidebar).
For more info on any markdown options, because i havent covered everything (such as buttons, content tabs, math, diagrams etc) follow the guides on material for Mkdocs.
H1¶
H2¶
H3¶
H4¶
H5¶
H6¶
This is bold text
This is bold text
This is italic text
This is italic text
Strikethrough
This is a subscript text
This is a superscript text
This is an underlined text
- H2O
- ATA
Ctrl+Alt+Del
- No installation needed in [Docker image]
- No installation needed in [GitHub Actions] (Ubuntu)
- Example of an unchecked box
Highlighted text¶
Text can be deleted and replacement text added. This can also be
combined into onea single operation. Highlighting is also
possible and comments can be added inline.
Formatting can also be applied to blocks by putting the opening and closing tags on separate lines and adding new lines between the tags and the content.
Ignore formatting¶
Ignore markdown formatting: Let's rename *our-new-project* to *our-old-project*.
Quote's¶
Text that is not a quote
Text that is a quote
If we pull together and commit ourselves, then we can push through anything.
— Mona the Octocat
Data tables¶
Example¶
Method | Description |
---|---|
GET |
Fetch resource |
PUT |
Update resource |
DELETE |
Delete resource |
Center aligned¶
Method | Description |
---|---|
GET |
Fetch resource |
PUT |
Update resource |
DELETE |
Delete resource |
More tabs¶
File | Section | Key | Value |
---|---|---|---|
printer.cfg |
stepper_y | position_max | 226 (K1) or 306 (K1M) |
cartotouch.cfg |
scanner | x_offset | -16.0 |
y_offset | 0.0 | ||
cartographer-k1.cfg |
bed_mesh | mesh_min | 10,10 |
mesh_max | 210,215 | ||
screws_tilt_adjust | screw1 | 42,20 | |
screw2 | 211,20 | ||
screw3 | 211,190 | ||
screw4 | 42,190 | ||
cartographer-k1m.cfg |
bed_mesh | mesh_min | 10,10 |
cartographer-k1m.cfg |
mesh_max | 290,280 | |
screws_tilt_adjust | screw1 | 35,23 | |
screw2 | 294,23 | ||
screw3 | 264,272 | ||
screw4 | 64,272 |
Footnotes¶
Footnotes are a great way to add supplemental or additional information to a specific word, phrase or sentence without interrupting the flow of a document. Material for MkDocs provides the ability to define, reference and render footnotes.
Lorem ipsum1 dolor sit amet, consectetur adipiscing elit.2 (example of these at the bottom)
Grids¶
-
Set up in 5 minutes
Install
mkdocs-material
withpip
and get up and running in minutes -
It's just Markdown
Focus on your content and generate a responsive and searchable static site
-
Made to measure
Change the colors, fonts, language, icons, logo and more with a few lines
-
Open Source, MIT
Material for MkDocs is licensed under MIT and available on [GitHub]
Lists¶
Unordered list¶
-
Nulla et rhoncus turpis. Mauris ultricies elementum leo. Duis efficitur accumsan nibh eu mattis. Vivamus tempus velit eros, porttitor placerat nibh lacinia sed. Aenean in finibus diam.
- Duis mollis est eget nibh volutpat, fermentum aliquet dui mollis.
- Nam vulputate tincidunt fringilla.
- Nullam dignissim ultrices urna non auctor.
Ordered list¶
-
Vivamus id mi enim. Integer id turpis sapien. Ut condimentum lobortis sagittis. Aliquam purus tellus, faucibus eget urna at, iaculis venenatis nulla. Vivamus a pharetra leo.
-
Vivamus venenatis porttitor tortor sit amet rutrum. Pellentesque aliquet quam enim, eu volutpat urna rutrum a. Nam vehicula nunc mauris, a ultricies libero efficitur sed.
-
Morbi eget dapibus felis. Vivamus venenatis porttitor tortor sit amet rutrum. Pellentesque aliquet quam enim, eu volutpat urna rutrum a.
- Mauris dictum mi lacus
- Ut sit amet placerat ante
- Suspendisse ac eros arcu
-
Defenition lists¶
Lorem ipsum dolor sit amet
-
Sed sagittis eleifend rutrum. Donec vitae suscipit est. Nullam tempus tellus non sem sollicitudin, quis rutrum leo facilisis.
Cras arcu libero
-
Aliquam metus eros, pretium sed nulla venenatis, faucibus auctor ex. Proin ut eros sed sapien ullamcorper consequat. Nunc ligula ante.
-
Duis mollis est eget nibh volutpat, fermentum aliquet dui mollis. Nam vulputate tincidunt fringilla. Nullam dignissim ultrices urna non auctor.
Task lists¶
- Lorem ipsum dolor sit amet, consectetur adipiscing elit
- Vestibulum convallis sit amet nisi a tincidunt
- In hac habitasse platea dictumst
- In scelerisque nibh non dolor mollis congue sed et metus
- Praesent sed risus massa
- Aenean pretium efficitur erat, donec pharetra, ligula non scelerisque
Grouped list¶
- Sed sagittis eleifend rutrum
- Donec vitae suscipit est
- Nulla tempor lobortis orci
- Sed sagittis eleifend rutrum
- Donec vitae suscipit est
- Nulla tempor lobortis orci