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

Can't set %3A- or : as seperator #5

Open
Bluscream opened this issue Oct 17, 2019 · 3 comments
Open

Can't set %3A- or : as seperator #5

Bluscream opened this issue Oct 17, 2019 · 3 comments

Comments

@Bluscream
Copy link

Bluscream commented Oct 17, 2019

I tried setting %3A , %3A-, : and :- and neither of them worked:

this is the folder structure:

@Bluscream
Copy link
Author

Trying to set the config manually to

{
  "menu": {
    "item": "{{#levelRepeat}}  {{/levelRepeat}}* [{{{title}}}]({{{link}}})\n",
    "category": "{{#levelRepeat}}  {{/levelRepeat}}* {{#link}}[{{{title}}}]({{{link}}}){{/link}}{{^link}}{{{title}}}{{/link}}\n{{{subitems}}}",
    "category-1": "{{{subitems}}}\n"
  },
  "rules": {
    "exclude": [],
    "order": []
  },
  "separator": "%3A-",
  "linkTemplate": "./%s",
  "menuFile": "_Sidebar.md",
  "multilang": false,
  "menuOnly": true
}

makes the sidebar working, but the pages itself have the undecoded HTML in their title (eg. Tricks%3A Open URLs in myTube)

@tillik
Copy link

tillik commented Nov 26, 2019

I still have exactly the same problem, regardless if I try to choose the default (just hitting enter) or manually defining a category separator.
I am always being prompted that "The following characters are allowed a-z#~ @_!".

@jrkarnes
Copy link

jrkarnes commented Jan 9, 2024

The - character is reserved by the Github Wiki Pages specification. It is used to denote a whitespace in the name of the page rather than the conventional %20 in HTML.

Therefore you cannot use :- as a separator. You use : as the separator. When you see :- that is read as : by the parser for both the sidebar generator and the github wiki.

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

3 participants