Skip to content

Commit

Permalink
Merge pull request tobilg#9 from BitSuisse/pass-on-custom-css
Browse files Browse the repository at this point in the history
Added support for --customCss
  • Loading branch information
tobilg authored Aug 31, 2018
2 parents 1cfc650 + 7ede790 commit 5119f3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/api2html.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ program
.option("-o, --out <outputPath>", "output path for the resulting HTML document")
.option("-t, --theme <themeName>", "theme to use (see https://highlightjs.org/static/demo/ for a list)")
.option("-c, --customLogo <logoPath>", "use custom logo at the respective path")
.option("-s, --customCss", "use custom css")
.option("-i, --includes <includesList>", "comma-separated list of files to include")
.option("-l, --languages <languageList>", "comma-separated list of languages to use for the language tabs (out of " + Object.getOwnPropertyNames(languageMap).join(", ") + ")")
.option("-s, --search", "enable search")
Expand Down Expand Up @@ -118,6 +119,11 @@ if (program.args.length === 0) {
shinOptions.logo = program.customLogo;
}

// Check for custom css option
if (program.customCss) {
shinOptions.customCss = true;
}

let api = null;

try {
Expand Down

0 comments on commit 5119f3c

Please sign in to comment.