Code Monkey home page Code Monkey logo

github-wiki-sidebar's People

Contributors

adriantanasa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

github-wiki-sidebar's Issues

Add option to exclude pages from the menu

As a github-wiki-sidebar user I want to be able to exclude pages from the generated menu so I can remove irrelevant content from the main menu of my wiki.

Proposed implementation:

  • in init/tutorial mode provide an exclude pages query as per ordering (comma separated indexes list)
  • if a page is excludes all subpages are to be excluded as well
  • ordering enquire should exclude the pages above from the list

One common usage could be to remove the Home.md page from the menu

Error generating _Sidebar.md:

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.      

Unable to specify category separators

Just tried out github-wiki-sidebar in enquire-mode and am unable to specify a category separator.

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

(Running this within the latest PowerShell Core 6.2.2)

Originally posted by @tillik in #5 (comment)

Make submenus collapsible

It would be nice (in particular for wikis with a lot of content) to make subsections collapsible using javascript.

Cannot start filenames with numbers

All markdown files beginning with a number are not added to the sidebar when generated. Seems it cannot be solved in the "menu" configuration.

options.json:

{
  "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
}

File tree (markdown files):

Home
1-Le Dépôt_1-Backend_Outils tiers utilisés
I-Le Dépôt
I-Le Dépôt_1-Backend_Utiliser les services
2-Le Wiki

Terminal:

$ github-wiki-sidebar --silent
//-- github-wiki-sidebar: enquire mode

_Sidebar.md generated.

//-- Job completed.

Generated _Sidebar.md:

  * [[Home|Home]]
  * [[I Le Dépôt|I-Le Dépôt]]
    * 1 Backend
      * [[Utiliser les services|I-Le Dépôt_1-Backend_Utiliser les services]]


[//]: # (generated by https://www.npmjs.com/package/github-wiki-sidebar)

P.S.: @adriantanasa This project is still useful, please make it up to date.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.