aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/_includes/header.html
diff options
context:
space:
mode:
authorGravatar dzc <dzc@google.com>2017-06-07 21:51:52 -0400
committerGravatar John Cater <jcater@google.com>2017-06-08 10:52:56 -0400
commit5596d3bd9e938a3592c4e873763baec0953c9434 (patch)
treea30349414f1f1fea1e2a99f4f1aac5d103fc5827 /site/_includes/header.html
parent7dec00574aa91327693f6ba7e90bff5bc834253e (diff)
Fix paths in Bazel docs, removing references to versions/master.
Follow-up to https://github.com/bazelbuild/bazel/commit/22b85a2a3c79c6f3aef1e0a61e485bb135be4551. This change updates paths and URLs to Bazel docs, removing the versions/master directory and changing bazel.build/docs to docs.bazel.build. For clarification on the convention of the docs site, links referencing docs.bazel.build/foo.html will be redirected to docs.bazel.build/versions/master/foo.html. The versions/master directory will contain the documentation pages pushed from HEAD. Once versioned documentation is ready, then docs.bazel.build/foo.html will instead be redirected to docs.bazel.build/x.y.z/foo.html, where x.y.z is the directory for the latest stable Bazel version. Follow-ups to this change: * Add script that will be used by the daily push job that pushes the latest documentation from HEAD to docs.bazel.build. This script will do the following: * Build the Jekyll tree, run jekyll build, and modify the resulting site tree, moving the docs/ directory into versions/master. * Add redirects for each of the site pages from the root of the site to the corresponding page in versions/master. * This should give us the minimum viable product for the new docs site. * Add script for cutting a release of the docs and pushing to a new versioned directory on the docs.bazel.build bucket. RELNOTES: None PiperOrigin-RevId: 158347197
Diffstat (limited to 'site/_includes/header.html')
-rw-r--r--site/_includes/header.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/site/_includes/header.html b/site/_includes/header.html
index d3b473a609..55cd13d087 100644
--- a/site/_includes/header.html
+++ b/site/_includes/header.html
@@ -8,7 +8,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
- <a class="navbar-brand" href="/">
+ <a class="navbar-brand" href="{{ site.main_site_url }}">
<img src="/images/bazel-navbar.png" height="30px">
</a>
</div>
@@ -28,15 +28,15 @@
</form>
<ul class="nav navbar-nav navbar-right">
<li{% if page.nav == "docs" %} class="active"{% endif %}>
- <a href="/versions/master/docs/bazel-overview.html">Docs</a>
+ <a href="/">Docs</a>
</li>
<li{% if page.nav == "contribute" %} class="active"{% endif %}>
- <a href="/contributing.html">Contribute!</a>
+ <a href="{{ site.main_site_url }}/contributing.html">Contribute!</a>
</li>
<li{% if page.nav == "faq" %} class="active"{% endif %}>
- <a href="/faq.html">FAQ</a></li>
+ <a href="{{ site.main_site_url }}/faq.html">FAQ</a></li>
<li{% if page.nav == "blog" %} class="active"{% endif %}>
- <a href="/blog">Blog</a>
+ <a href="{{ site.blog_site_url }}">Blog</a>
</li>
<li><a href="http://stackoverflow.com/questions/tagged/bazel" class="nav-icon"><i class="fa fa-stack-overflow"></i></a></li>
<li><a href="https://groups.google.com/forum/#!forum/bazel-discuss" class="nav-icon"><i class="fa fa-envelope"></i></a></li>