简体   繁体   English

Docusaurus 初学者:自定义侧边栏条目

[英]Docusaurus beginner : customizing sidebar entries

beginner on docusaurus, I want to start writing doc folders: having autogenerated sidebar by defaut, just trying to remove or rename demonstration folders bring the following error, can't find why docusaurus 的初学者,我想开始编写文档文件夹:默认自动生成侧边栏,只是试图删除或重命名演示文件夹会带来以下错误,找不到原因

Module not found: Error: Can't resolve '@site/docs/tutorial-basic/congratulations.md' in.....my-website/.docusaurus'

thanks guys多谢你们

I had the same problem today, and fixed it by我今天遇到了同样的问题,并通过

  1. Terminate your docusaurus Project in terminal by "cmd+c";通过“cmd+c”在终端中终止您的 docusaurus 项目;
  2. reBuild your docusaurus Project by "yarn start";通过“yarn start”重建你的 docusaurus 项目;

Also, if it doesn't work, please check the file called "docusaurus.config.js" in your Project root path.另外,如果它不起作用,请检查项目根路径中名为“docusaurus.config.js”的文件。 Make sure you have the correct "themeConfig" setting.确保您有正确的“themeConfig”设置。 You can also find the instruction on how to modify your "themeConfig" in the docusaurus documentation您还可以在docusaurus 文档中找到有关如何修改“themeConfig”的说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM