yakivmospan / github-wikito-converter

Generate HTML & PDF documentation from Github wiki or any other markdown-based wiki.
Other
293 stars 52 forks source link

TOC items and page headers contain "-" and ".md" #56

Open rowansharman opened 4 years ago

rowansharman commented 4 years ago

In both output modes, page headers and links are named identically to the .md files cloned from the wiki (spaces are replaced with dashes and .md is appended) unlike in the the sample PDF.

tombuben commented 4 years ago

I assume the sample wiki had a custom _sidebar file defined, which contained a manually set table of content. Sadly, that repo no longer uses its wiki as the main page, so who knows :/

0x8BADFOOD commented 4 years ago

Workarounds:

  1. Add _sidebar.md to wiki repo with following content:

OR

  1. Add custom toc with same content and use option --toc

    gwtc --toc testwiki_toc.md --title "My Title" --pdf-page-count --format pdf ./TestWiki.wiki

Revadike commented 3 years ago

Please fix this. It should try to mimmick GitHub's default sidebar style, which is what users expect.