Skip to content

Commit

Permalink
Set default docs version to 0.25.0 instead of master
Browse files Browse the repository at this point in the history
Now, when a user visits https://docs.bazel.build, they will get redirected to https://docs.bazel.build/versions/0.25.0/bazel-overview.html.

Staging: https://bazel-docs-staging.netlify.com

Closes #8325.

Change-Id: I08dfa978ad543ede9cc2f04b8f66a5c0cb4e6b79
PiperOrigin-RevId: 248318528
  • Loading branch information
jin authored and copybara-github committed May 15, 2019
1 parent 33f7b77 commit 8b4c740
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ sass:
sass_dir: _sass
gems: [jekyll-paginate]

version: "master"
# Update this to the newest release for the default docs.bazel.build version.
version: "0.25.0"

# This must be kept in sync with //site/script/docs:versions.bzl
doc_versions:
Expand Down
10 changes: 8 additions & 2 deletions site/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
layout: redirect
redirect: bazel-overview.html
---

<html>
<head>
<script>
window.location.replace("/versions/{{ site.version }}/bazel-overview.html");
</script>
</head>
</html>

0 comments on commit 8b4c740

Please sign in to comment.