Skip to content

Material for MkDocs 备注

参数设置

Color parameters

  • red
  • pink
  • purple
  • deep purple
  • indigo
  • blue
  • light blue
  • cyan
  • teal
  • green
  • light green
  • lime
  • yellow
  • amber
  • orange
  • deep orange
  • brown
  • grey
  • blue grey
  • black
  • white

Admonitions

  • note
  • abstract, summary, tldr
  • info, todo
  • tip, hint, important
  • success, check, done
  • question, help, faq
  • warning, caution, attention
  • failure, fail, missing
  • danger, error
  • bug
  • example
  • quote, cite

Annotations

Code blocks

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]

Data tables

Method Description
GET :material-check: Fetch resource
PUT :material-check-all: Update resource
DELETE :material-close: Delete resource

Grids

Content tabs

#include <stdio.h>

int main(void) {
  printf("Hello world!\n");
  return 0;
}
#include <iostream>

int main(void) {
  std::cout << "Hello world!" << std::endl;
  return 0;
}

拓展阅读