Skip to content

Commit 7f723a9

Browse files
fix(generate_docs): Replace "Globals" with {{name}} in breadcrumbs.
1 parent bf488d7 commit 7f723a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

generate_docs.js

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const cleanupFns = [];
3232
_.defaultsDeep(TSCONFIG_COPY, DOCGENCONFIG.tsconfig);
3333
fs.writeFileSync(TSCONFIG_PATH, JSON.stringify(TSCONFIG_COPY, null, 2));
3434
cleanupFns.push(() => fs.writeFileSync(TSCONFIG_PATH, TSCONFIG_ORIG_BINARY));
35+
_exec(`sed -i'' -e 's/Globals/{{name}}/' node_modules/typedoc-default-themes/bin/default/partials/breadcrumb.hbs`);
3536
_exec(`cat ${TSCONFIG_PATH}`);
3637

3738
function getDocgenConfig() {

publish_docs.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const GIT_URL = "[email protected]:ui-router/ui-router.github.io.git";
1919
const installTargetDir = path.join(".downstream_cache", "ui-router.gihub.io");
2020
const PAGES_DIR = path.join(installTargetDir, CONFIG.publishDir);
2121

22-
publishYalcPackage(installTargetDir, GIT_URL, { noInstall: true, noBuild: true, noPublish: true });
22+
sh.rm('-rf', installTargetDir);
23+
_exec(`git clone ${GIT_URL} ${installTargetDir}`);
2324

2425
util.packageDir();
2526

0 commit comments

Comments
 (0)