github-wiki-sidebar icon indicating copy to clipboard operation
github-wiki-sidebar copied to clipboard

Error generating _Sidebar.md:

Open sps-software opened this issue 2 years ago • 2 comments

Command fails. No debug output.

options file:

{
  "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": [
      "Home.md"
    ]
  },
  "separator": "#",
  "linkTemplate": "./%s",
  "menuFile": "_Sidebar.md",
  "multilang": false,
  "menuOnly": true
}

job output:

export DEBUG=github-wiki-sidebar; npx github-wiki-sidebar --silent
  github-wiki-sidebar Executing job silent +0ms
//-- github-wiki-sidebar: enquire mode
  github-wiki-sidebar Generating the custom options.json file ... +2ms
  github-wiki-sidebar Build the _Sidebar.md file ... +0ms
Error generating _Sidebar.md: 

//-- Job completed.      

sps-software avatar Jun 04 '22 23:06 sps-software

Got the same problem. Installed and run it with yarn:

yarn exec github-wiki-sidebar

UPD: installing it globally with npm install -g github-wiki-sidebar helped. I still would be glad to use it with yarn and local install.

ololobus avatar Jun 08 '22 15:06 ololobus

I see the same error when using npx, but it works when installed globally.

ipmb avatar Sep 16 '22 18:09 ipmb