diff options
author | David Chen <dzc@google.com> | 2016-07-26 20:54:03 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-07-27 11:15:14 +0000 |
commit | 3e8bcae69a0718cf6972be086706b1841e0ed6b7 (patch) | |
tree | ce6b37e16350f164d9ef937a69ba51558c99e53d /site/_includes | |
parent | 3b47b1fdc6b24bb2c947d02316c1cf4e6a02cf09 (diff) |
Move Bazel docs into versioned directory.
* Move all Bazel docs (excluding main page, search page, and blog)
into versions/master directory.
* Replace all original pages with redirects.
* Add Jekyll config with default_version setting to specify the default
version to redirect docs to.
* Add Jekyll config with version_prefix setting specific to pages under
each version directory.
* Update layouts to generate links to pages for the same version with the
version_prefix.
* Update Blaze release script to copy docs from
third_party/bazel/site/versions/master
Changes to follow this CL:
* Separate navigation from layouts so that navigation can be versioned
as well.
* Add tool for cutting a release of Bazel docs and copies them into a new
version directory.
Bug: #579
--
MOS_MIGRATED_REVID=128510319
Diffstat (limited to 'site/_includes')
-rw-r--r-- | site/_includes/header.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/site/_includes/header.html b/site/_includes/header.html index 5af2024ea9..933583564b 100644 --- a/site/_includes/header.html +++ b/site/_includes/header.html @@ -25,13 +25,13 @@ </form> <ul class="nav navbar-nav navbar-right"> <li{% if page.nav == "docs" %} class="active"{% endif %}> - <a href="/docs/install.html">Docs</a> + <a href="{{ page.version_prefix }}/docs/install.html">Docs</a> </li> <li{% if page.nav == "contribute" %} class="active"{% endif %}> - <a href="/contributing.html">Contribute!</a> + <a href="{{ page.version_prefix }}/contributing.html">Contribute!</a> </li> <li{% if page.nav == "faq" %} class="active"{% endif %}> - <a href="/faq.html">FAQ</a></li> + <a href="{{ page.version_prefix }}/faq.html">FAQ</a></li> <li{% if page.nav == "blog" %} class="active"{% endif %}> <a href="/blog">Blog</a> </li> |