fix: docs asset links should follow specified docsUrl (#1204)

This commit is contained in:
Marvin Chin 2019-01-29 01:20:00 +08:00 committed by Yangshun Tay
parent 1888e0fb92
commit 487fd573e5
2 changed files with 5 additions and 2 deletions

View file

@ -101,7 +101,7 @@ async function execute() {
if (fs.existsSync(join(CWD, '..', readMetadata.getDocsPath(), 'assets'))) {
fs.copySync(
join(CWD, '..', readMetadata.getDocsPath(), 'assets'),
join(buildDir, 'docs', 'assets'),
join(buildDir, siteConfig.docsUrl, 'assets'),
);
}