Skip to content

Mkdocs-website

For full documentation visit mkdocs.org

List

Code Annotation Examples

Codeblocks 代码块

Some Code goes here.

Plain codeblock 普通代码块

Some code here
def myfunction()
// some comment

Code for a specific language 特定语言的代码

Some more code with the py at the start:

import tensorflow as tf
def whatever()

With a title 带标题

bubble_sort.py
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]

With line numbers 有行号

1
2
3
4
5
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]

Highlighting lines 突出显示行

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]

Icons and Emojs

😄