Skip to main content

Docusaurus特性与模板

​ 本文主要是对Docusaurus的基本特性及基本语法的演示。


告示框模板

note

Some content with Markdown syntax. Check this api.

tip

Some content with Markdown syntax. Check this api.

info

Some content with Markdown syntax. Check this api.

caution

Some content with Markdown syntax. Check this api.

danger

Some content with Markdown syntax. Check this api.


React 组件

Docusaurus green and Facebook blue are my favorite colors.

I can write Markdown alongside my JSX!


Tabs 组件

This is an apple 🍎

公式

I=02πsin(x)dxI = \int_0^{2\pi} \sin(x)\,dx

插入图片并居中


代码相关

void Screen1View::handleTickEvent()
{
this->tickCounter++;
static uint8_t change = 0;
/* 高亮测试 */
if (this->tickCounter % 50 == 0)
{
if (change)
{
change = 0;
textArea1.setTypedText(TypedText(T_RESOURCEID2));
}
/* 高亮测试 */
else
{
change = 1;
textArea1.setTypedText(TypedText(T_RESOURCEID1));
}
/* 高亮测试 */
textArea1.invalidate();
}
}

模型插入


PCB插入


BOM插入

   
Loading Comments...