docsifyjs / docsifyjs/docsify

Ability to render documentation versions from git branch or tag

Aperta
#341 11 commenti 30 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
JavaScript
Stelle
31.5k
Fork
5.8k
Merge medio
9g 8h
PR unite (30g)
2

Descrizione

It would be awesome to have options to:
- render from only specified branches/tags
- specify url prefix for document version
- render some switcher (like for translations in _navbar.md)

----
something like this:
```js
window.$docsify = {
// ...
versions: {
'master': 'latest', // <-- branch 'master' will render by accessing url '/en/latest'
'1.5.1': '1.0', // <-- its just the tag '1.5.1' in git & no branch created (url '/en/1.0')
'2.0': '2.0' // <-- this is created branch (url '/en/2.0')
}
// ...
}
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.