fix(ssr): clean files
This commit is contained in:
parent
23590fa7e7
commit
0014895c19
3 changed files with 1 additions and 63 deletions
|
|
@ -1,33 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
config: {
|
|
||||||
alias: {
|
|
||||||
'/de-de/changelog': '/changelog',
|
|
||||||
'/zh-cn/changelog': '/changelog',
|
|
||||||
'/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG'
|
|
||||||
},
|
|
||||||
auto2top: true,
|
|
||||||
coverpage: true,
|
|
||||||
executeScript: true,
|
|
||||||
loadSidebar: true,
|
|
||||||
loadNavbar: true,
|
|
||||||
mergeNavbar: true,
|
|
||||||
maxLevel: 4,
|
|
||||||
subMaxLevel: 2,
|
|
||||||
basePath: '/docs/',
|
|
||||||
name: 'docsify',
|
|
||||||
search: {
|
|
||||||
noData: {
|
|
||||||
'/de-de/': 'Keine Ergebnisse!',
|
|
||||||
'/zh-cn/': '没有结果!',
|
|
||||||
'/': 'No results!'
|
|
||||||
},
|
|
||||||
paths: 'auto',
|
|
||||||
placeholder: {
|
|
||||||
'/de-de/': 'Suche',
|
|
||||||
'/zh-cn/': '搜索',
|
|
||||||
'/': 'Search'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
template: './docs/ssr.html'
|
|
||||||
}
|
|
||||||
|
|
@ -1,29 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>docsify</title>
|
|
||||||
<link rel="icon" href="_media/favicon.ico">
|
|
||||||
<meta name="keywords" content="doc,docs,documentation,gitbook,creator,generator,github,jekyll,github-pages">
|
|
||||||
<meta name="description" content="A magical documentation generator.">
|
|
||||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css" title="vue">
|
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dark.css" title="dark" disabled>
|
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css" title="buble" disabled>
|
|
||||||
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/pure.css" title="pure" disabled>
|
|
||||||
<style>
|
|
||||||
nav.app-nav li ul {
|
|
||||||
min-width: 100px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<!--inject-app-->
|
|
||||||
<!--inject-config-->
|
|
||||||
</body>
|
|
||||||
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
|
|
||||||
<script src="//unpkg.com/docsify/lib/plugins/search.min.js"></script>
|
|
||||||
<script src="//unpkg.com/prismjs/components/prism-bash.min.js"></script>
|
|
||||||
<script src="//unpkg.com/prismjs/components/prism-markdown.min.js"></script>
|
|
||||||
<script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script>
|
|
||||||
</html>
|
|
||||||
|
|
@ -96,7 +96,7 @@ export default class Renderer {
|
||||||
case 'sidebar':
|
case 'sidebar':
|
||||||
html = this.compiler.sidebar(html, maxLevel) +
|
html = this.compiler.sidebar(html, maxLevel) +
|
||||||
`<script>window.__SUB_SIDEBAR__ = ${JSON.stringify(
|
`<script>window.__SUB_SIDEBAR__ = ${JSON.stringify(
|
||||||
this.compiler.subSidebar(html, subMaxLevel)
|
this.compiler.subSidebar(subMaxLevel)
|
||||||
)}</script>`
|
)}</script>`
|
||||||
break
|
break
|
||||||
case 'cover':
|
case 'cover':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue