Skip to content

Commit 25f87e6

Browse files
committed
fix docs
1 parent b483d5e commit 25f87e6

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.yfm-docs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
allowHTML: true
22
staticContent: true
33
addSystemMeta: true
4-
assetsPublicPath: /docs
4+
assetsPublicPath: /opensource/docs
55
lang: ru
66
langs:
77
- ru

scripts/build-fix.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,8 @@ const fixFile = async (filePath, basePath) => {
206206
tag.text(STYLE_FIX);
207207
head.append(tag);
208208

209-
const docsPath = BUILD_SETTINGS.docsPath;
210-
211209
let html = $.html();
212210
html = html
213-
.replace(/"[^"]+?\/_bundle\/app\.client\.js"/g, `"${docsPath}/_bundle/app.client.js"`)
214-
.replace(/"[^"]+?\/_bundle\/app\.client\.css"/g, `"${docsPath}/_bundle/app.client.css"`)
215-
.replace(/href="_bundle\/([^"]+?)"/g, `href="${docsPath}/_bundle/$1"`)
216-
.replace(/src="_bundle\/([^"]+?)"/g, `src="${docsPath}/_bundle/$1"`)
217-
.replace(/src="_search\/([^"]+?)"/g, `src="${docsPath}/_search/$1"`)
218-
.replace(/src="([^"]+?)\/toc\.js"/g, `src="${docsPath}/$1/toc.js"`)
219-
// fix double load bundled resources
220-
.replace(/,"style":\[[^\]]+?\],"script":\[[^\]]+?\],/g, ',"style":[],"script":[],')
221211
.replace(
222212
/ *?<link type="text\/css" rel="stylesheet" href="_assets\/cut-extension.css">\n/g,
223213
'',

0 commit comments

Comments
 (0)