diff options
| author | Chris Young <chris.young@gotinder.com> | 2017-01-22 19:16:21 -0800 |
|---|---|---|
| committer | Tobias Nießen <tniessen@tnie.de> | 2017-08-28 11:17:08 +0200 |
| commit | cacce304cbce79ff878aaedf946f16f03ec91b8a (patch) | |
| tree | 36269b5edcd53f1e6ff080f3e1d09306045911f7 /doc/template.html | |
| parent | 79773f8af940912264b55e5255db9f50e25ac16a (diff) | |
| download | node-new-cacce304cbce79ff878aaedf946f16f03ec91b8a.tar.gz | |
doc: add links to alternative versions of doc
Each page of the API documentation should have links to other versions
of the same page. This will make it easier to switch between the current
"live" release at nodejs.org and LTS versions.
PR-URL: https://github.com/nodejs/node/pull/10958
Fixes: https://github.com/nodejs/node/issues/10726
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'doc/template.html')
| -rw-r--r-- | doc/template.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/doc/template.html b/doc/template.html index 572197beff..d65b56ca5e 100644 --- a/doc/template.html +++ b/doc/template.html @@ -23,11 +23,21 @@ <header> <h1>Node.js __VERSION__ Documentation</h1> <div id="gtoc"> - <p> - <a href="index.html" name="toc">Index</a> | - <a href="all.html">View on single page</a> | - <a href="__FILENAME__.json">View as JSON</a> - </p> + <ul> + <li> + <a href="index.html" name="toc">Index</a> | + </li> + <li> + <a href="all.html">View on single page</a> | + </li> + <li> + <a href="__FILENAME__.json">View as JSON</a> | + </li> + <li class="version-picker"> + <a href="#">View another version <span>▼</span></a> + __ALTDOCS__ + </li> + </ul> </div> <hr> </header> |
