docs: 修复 ci 出错 (#1320)

This commit is contained in:
吴多益 2021-01-04 23:36:39 +08:00 committed by GitHub
parent c1d91c8ac8
commit ebbc1fb67d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 11 deletions

View File

@ -1,5 +1,8 @@
{ {
"editor.formatOnSave": true, "editor.formatOnSave": true,
"typescript.tsdk": "node_modules/typescript/lib", "typescript.tsdk": "node_modules/typescript/lib",
"gitHistory.showEditorTitleMenuBarIcons": false "gitHistory.showEditorTitleMenuBarIcons": false,
"search.exclude": {
"examples/docs.json": true
}
} }

File diff suppressed because one or more lines are too long

View File

@ -743,6 +743,7 @@ if (fis.project.currentMedia() === 'publish') {
const indexHtml = ret.src['/examples/index.html']; const indexHtml = ret.src['/examples/index.html'];
const appJs = ret.src['/examples/components/App.tsx']; const appJs = ret.src['/examples/components/App.tsx'];
const DocJs = ret.src['/examples/components/Doc.tsx']; const DocJs = ret.src['/examples/components/Doc.tsx'];
const DocNavCN = ret.src['/examples/components/DocNavCN.ts'];
const DocCSS = ret.src['/examples/components/CssDocs.tsx']; const DocCSS = ret.src['/examples/components/CssDocs.tsx'];
const ExampleJs = ret.src['/examples/components/Example.tsx']; const ExampleJs = ret.src['/examples/components/Example.tsx'];
@ -750,6 +751,7 @@ if (fis.project.currentMedia() === 'publish') {
const source = [ const source = [
appJs.getContent(), appJs.getContent(),
DocJs.getContent(), DocJs.getContent(),
DocNavCN.getContent(),
DocCSS.getContent(), DocCSS.getContent(),
ExampleJs.getContent() ExampleJs.getContent()
].join('\n'); ].join('\n');