Skip to content

Commit

Permalink
Merge pull request #11 from yakivmospan/features/file-name
Browse files Browse the repository at this point in the history
Added possibility to customize output file name
  • Loading branch information
yakivmospan authored Dec 6, 2017
2 parents c9a65c6 + 7a1df19 commit c01f5ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ gwtc ./github-wikito-converter.wiki
-V, --version output the version number
-f, --format <format> Format to convert to. Either html, pdf, or all [default: html]
-o, --output <output-dir> Output dir [default: './']
-n, --file-name <file-name> Output file name [default: documentation]
-t, --title <title> Wiki title [default: Documentation]
-d, --disable-inline-assets Disable inlining of images, css and js in html document
--logo-img <logo-file> Logo image file
Expand Down
3 changes: 2 additions & 1 deletion dist/cli/gwtc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/cli/gwtc.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-wikito-converter",
"version": "1.2.0",
"version": "1.3.0",
"description": "Generate HTML & PDF documentation from Github wiki or any other markdown-based wiki.",
"keywords": [
"wiki",
Expand Down
2 changes: 2 additions & 0 deletions src/cli/gwtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Cli {

.option("-f, --format <format>", "Format to convert to. Either html, pdf, or all [default: html]", 'html')
.option("-o, --output <output-dir>", "Output dir [default: './']", './')
.option("-n, --file-name <file-name>", "Output file name [default: 'documentation']", 'documentation')

.option("-t, --title <title>", "Wiki title [default: Documentation]", 'Documentation ')
.option("-d, --disable-inline-assets", "Disable inlining of css & js in html document")
Expand Down Expand Up @@ -43,6 +44,7 @@ class Cli {
var options = {
format: this.program.format,
output: this.program.output,
filename: this.program.fileName,
title: this.program.title,
logoImage: this.program.logoImg,
footer: this.program.footer,
Expand Down

0 comments on commit c01f5ef

Please sign in to comment.