PJCHENder 未整理筆記

[Note] Docusaurus 使用筆記

2020-06-16

[Note] Docusaurus 使用筆記

V2.0.0-alpha.56

建立專案

1
$ npx @docusaurus/init@next init <website-name> classic

設定

1
2
3
4
5
6
// docusaurus.config.js
themes: [
require.resolve('@docusaurus/theme-live-codeblock'),
require.resolve('@docusaurus/theme-search-algolia'),
require.resolve('@docusaurus/theme-classic'), // 不加有些程式碼高亮無法正常顯示
],

theme

@docusaurus/theme-classic

@docusaurus/theme-classic @ v2.alpha

1
2
// docusaurus.config.js
themes: [require.resolve('@docusaurus/theme-search-algolia')];

掃描二維條碼,分享此文章