Skip to content

Ability to render documentation versions from git branch or tag #341

Open
@alek13

Description

@alek13

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:

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions