toc branch
TOC branch will contain
index.html
widgets.json
robots.txt
css/
js/
images/Widgets
Types
Version Switcher ( versions dropdown )
Notification - latest version available on prior versions.
Widget working
Widgets will consume data from the widgets.json file.
widgets.js file generates HTML for widgets and appends them in the empty widget placeholder divs.
widgets.json
It will provide data to the widgets
Whenever a new version doc is added or removed, this file will have to be updated.
{
"versions": [
{
"version": "2.0",
"latest": true
},
{
"version": "1.9",
"latest": false
},
{
"version": "1.8",
"latest": false
}
]
}Note
robots.txt - If any of the version is unpublished, then that directory will have to be disallowed to be indexed in Search engines.