docsifyjs / docsifyjs/docsify

Ability to render documentation versions from git branch or tag

Đang mở
#341 11 bình luận 30 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
JavaScript
Star
31.5k
Fork
5.8k
Merge trung bình
9 ngày 8 giờ
Pull request đã merge (30 ngày)
2

Mô tả

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')
}
// ...
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.