tui.jsdoc-template
tui.jsdoc-template copied to clipboard
Add an option to switch versions of the docs
Hej,
I would love to add a version switcher for the yeoman docs: https://github.com/yeoman/yeoman/issues/1485
Proposal
Add a versionSwitcher
property into the template settings like:
"templates": {
"name": "Doc Template",
"footerText": "NHN Entertainment Frontend Development Lab",
"versionSwitcher": true
}
If templates.versionSwitcher
is true
and we have the version number from the package.json
via opts.package
we replace the version number in the left column with a select
element to switch versions.