何去何从?
恭喜! 你已经理解了 Docusaurus 的大部分核心功能了。 你已经完成了这些工作:
- Used the pages plugin to create a standalone React / Markdown page
- Used the docs plugin to create documentation pages. This includes configuring the sidebar, and even versioning
- 使用博客插件创建了一个功能繁多的博客
- 尝试了一系列在所有内容插件都通用的 Markdown 特性
- Used stylesheets or swizzling to customize your site's appearance
- Included images and other assets in your pages
- Added search to your site
- Understood how browser support and SEO are done through standard Docusaurus APIs
- Learned about how individual plugins are installed and configured
- 把你的网站部署到了某个托管商上
- Internationalized your site to include multiple languages
到了这时候,你大概率已经有一个长长的 docusaurus.config.js
了😄 然而,你还没写过多少代码呢! 大多数功能都是通过调用封装好的 Docusaurus API 实现的。 接下来,要继续你的旅程,面前有三条路:
- 学习更高级的 Docusaurus 概念。 这会有助于你更深入地理解这些 API 是做什么的。
- Read about all existing APIs. 其中许多还没有在教程中涵盖到呢!
- Learn to develop a plugin to extend the functionality of your site.