mirror of
https://github.com/twirl/The-API-Book.git
synced 2025-02-16 18:34:31 +02:00
build improvements
This commit is contained in:
parent
bd4ed099ef
commit
d6f1466175
@ -30,6 +30,7 @@ const targets = (
|
||||
}, {});
|
||||
|
||||
const chapters = process.argv[4];
|
||||
const noCache = process.argv[5] == '--no-cache';
|
||||
|
||||
console.log(`Building langs: ${langsToBuild.join(', ')}…`);
|
||||
langsToBuild.forEach((lang) => {
|
||||
@ -51,7 +52,9 @@ langsToBuild.forEach((lang) => {
|
||||
plugins.ast.h5Counter,
|
||||
plugins.ast.aImg,
|
||||
plugins.ast.imgSrcResolve,
|
||||
plugins.ast.mermaid,
|
||||
plugins.ast.highlighter({
|
||||
languages: ['javascript', 'typescript']
|
||||
}),
|
||||
plugins.ast.ref,
|
||||
plugins.ast.ghTableFix,
|
||||
plugins.ast.stat
|
||||
@ -70,7 +73,8 @@ langsToBuild.forEach((lang) => {
|
||||
postProcess: [plugins.html.imgDataUri]
|
||||
}
|
||||
},
|
||||
chapters
|
||||
chapters,
|
||||
noCache
|
||||
}).then((builder) => {
|
||||
Object.keys(targets).forEach((target) => {
|
||||
if (target !== 'landing') {
|
||||
|
@ -245,3 +245,16 @@ a.anchor {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-variable {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.hljs-string {
|
||||
color: #2a9292;
|
||||
}
|
||||
|
||||
.hljs-comment {
|
||||
color: #655f6d;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user