我能够遵循指南,并发表了以下页面:
现在,我想做一些小小的改变。在更改本地文件夹中的代码之后。我做了:
GIT_USER=chengtie \
CURRENT_BRANCH=master \
USE_SSH=true \
yarn run publish-gh-pages
然后,我发现了一个错误:
yarn run v1.16.0
error Command "publish-gh-pages" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this
我创建了一个金牛龙项目。一切都很顺利。我在登陆页面中添加了资料界面搜索栏。我正在使用github操作来部署项目(CI/CD)。现在,当我推送代码时,我得到了这个错误。
[ERROR] TypeError: dep.getModuleEvaluationSideEffectsState is not a function
at NormalModule.getSideEffectsConnectionState (/github/workspace/website/node_modules/webpack/lib/NormalModule.js:1126:23)
at /gith
阅读这些文档,我遵循了所有的步骤。这里有我的docusaurus.config.js文件。
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const math = r
背景
我正在使用金牛龙^1.14.0。我只用的是反应。在我的pages中,我试图通过使用基本的import语句从另一个文件导入组件来分离组件。然而,当我尝试yarn start时,我会得到以下错误:
'import' and 'export' may appear only with 'sourceType: "module"' (16:0)
已试过
我认为babel已经在正式的GitHub文档库中建立起来了,所以我希望它能很好地使用es2015+语法,而它没有。
文件
package.json 1.
{
"scrip
我想尝试使用博客标记文件"authorsMapPath“中的全局"authors”-- docusaurus.config.js文件中的这个参数。
然而,无论我在预置或插件中尝试了什么,我总是得到这个错误。
A validation error occured.
The validation system was added recently to Docusaurus as an attempt to avoid user configuration errors.
We may have made some mistakes.
If you think your confi
目前,我的og:title使用的是配置中定义的标题,而不是当前文档的标题。 ---
id: my_id
title: My Title ** I want it to pull in this
sidebar_label: My Title
--- 我已经将我的文件从.md更改为.mdx,并尝试在<Head>组件中定义它,但这不起作用。 import Head from '@docusaurus/Head';
<Head>
<meta property="og:title" content="My custom ti
试图启动egjs闪烁的文档,但我得到了一个错误。
我克隆了egjs闪烁的github链接,就像readme.md得到了我一样
在使用纱线之前,安装所有根路径包npm install。
和cd文档,
yarn install yarn start
我在使用CTRL的项目中找不到“侧栏-api.js”。但使用金刚龙会自动生成侧栏-api.js。
[ERROR] Sidebars file at "/egjs-flicking/egjs-flicking/docs/sidebars.js" failed to be loaded.
[ERROR] Loading of version
我正在使用Docusaurus构建一个文档站点。在一个react插件页面中,我使用了来自https://docusaurus.io/docs/using-themes的import Layout from '@theme/Layout'; 但是,当我为生产环境编写测试时,Jest无法获取该模块。 ● Test suite failed to run
Cannot find module '@theme/Layout' from 'src/pages/key-fields-filter.js'
Require stack:
在docus龙@1.5.1和Node 6上运行docusaurus build时,我遇到了一个错误:
$ docusaurus-build
/home/website/node_modules/docusaurus/lib/build-files.js:31
);
^
SyntaxError: Unexpected token )
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at O
当我在myproject.github.io/websites中键入yarn start时,我得到以下错误: yarn run v1.22.11
warning package.json: No license field
$ docusaurus-start
'docusaurus-start' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https
在我的文档库页面上,我有这样的标记,它呈现以下屏幕快照:
<table>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
<tr>
<td><code>organizationName</code></td>
<td>The GitHub user or organization that owns the repository. In the case
我只是在试验Docusaurus V2,我想用LUNR()搜索来启用离线搜索,就像在这篇博客中描述的那样。
我也在文档里找过了。
我使用"yarn swizzle @docusaurus/theme-classic SearchBar“命令安装了,但在使用"npm start”运行时没有出现搜索栏。
此外,在src/ this /SearchBar.js中创建了一个包含以下内容的文档:
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the
首先,让我说,我是新的文档龙,我正在使用版本2。
我正在构建我的文档项目,我得到了以下错误:
Docusaurus Node/SSR could not render static page with path=/docs/My_MDX_Page because of error: useBaseUrl is not defined
我正在使用MDX页面来获取baseURL来检索静态内容。
MDX页面:
---
title: title
hide_title: true
sidebar_label: item
---
import useBaseUrl from '@docusauru