Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rowansharman opened this issue Jan 10, 2020 · 3 comments
Open

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

rowansharman opened this issue Jan 10, 2020 · 3 comments

Comments

@rowansharman
Copy link

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
Copy link

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
Copy link

Workarounds:

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

    - [  ](#your_file.md)
    

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
Copy link

Revadike commented Jul 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants