Skip to content

Commit

Permalink
Restructure site/ directory into docs/ which only contains Bazel docu…
Browse files Browse the repository at this point in the history
…mentation.

The new docs/ directory in the bazel source tree will only contain the Bazel
docs site, which is hosted at docs.bazel.build. This change deletes the
marketing site and blog, which have been migrated to the bazel-website and
bazel-blog GitHub repositories respectively.

This change also updates the serve-docs.sh and ci/build.sh under scripts/ in
preparation for publishing the docs site.

Note that to help make reviews more manageable, this change is limited to
moving files to their new locations. Here are the follow-up changes:

* Update all links in docs to remove versions/master in paths and to add
  correct bazel.build subdomain when linking to pages on the marketing site
  or the blog.
* Set up versioned directories on GCS bucket and add tooling for versioning
  docs

This change is also coordinated with
https://bazel-review.googlesource.com/c/11568/ to have the PublishSite job
publish to docs.bazel.build rather than www.bazel.build.

Issue #2397

RELNOTES: None
PiperOrigin-RevId: 157612651
  • Loading branch information
davidzchen authored and laszlocsomor committed Jun 1, 2017
1 parent 40d6429 commit 22b85a2
Show file tree
Hide file tree
Showing 157 changed files with 6,116 additions and 13,416 deletions.
2 changes: 1 addition & 1 deletion scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function bazel_build() {
cp bazel-genfiles/bazel-distfile.zip $1/bazel-${release_label}-dist.zip
fi
fi
cp bazel-genfiles/site/jekyll-tree.tar $1/www.bazel.build.tar
cp bazel-genfiles/site/jekyll-tree.tar $1/docs.bazel.build.tar
cp bazel-bin/src/tools/benchmark/webapp/site.tar $1/perf.bazel.build.tar.nobuild
cp bazel-genfiles/scripts/packages/README.md $1/README.md
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/serve-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ build_static() {

build_and_serve() {
build_tree
echo "Serving bazel.build site at $HOST:$PORT"
echo "Serving docs.bazel.build site at $HOST:$PORT"
jekyll serve --host "$HOST" --detach --quiet --port "$PORT" --source "$WORKING_DIR"
}

Expand Down
6 changes: 3 additions & 3 deletions site/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")

exports_files(
[
"versions/master/docs/bazel-user-manual.html",
"docs/bazel-user-manual.html",
"command-line-reference-prefix.html",
"command-line-reference-suffix.html",
],
)

DOT_GRAPH_HTML_FILES = [
"versions/master/docs/query.html",
"versions/master/docs/build-ref.html",
"docs/query.html",
"docs/build-ref.html",
]

filegroup(
Expand Down
20 changes: 0 additions & 20 deletions site/_includes/blog-sidebar.html

This file was deleted.

6 changes: 0 additions & 6 deletions site/_includes/blog-twitter-js.html

This file was deleted.

30 changes: 0 additions & 30 deletions site/_layouts/blog.html

This file was deleted.

55 changes: 0 additions & 55 deletions site/_layouts/contribute.html

This file was deleted.

11 changes: 0 additions & 11 deletions site/_layouts/home.html

This file was deleted.

54 changes: 0 additions & 54 deletions site/_layouts/posts.html

This file was deleted.

53 changes: 0 additions & 53 deletions site/bazel-release.pub.gpg

This file was deleted.

37 changes: 0 additions & 37 deletions site/blog/_posts/2015-04-06-Simplified-Workspace-Creation.md

This file was deleted.

51 changes: 0 additions & 51 deletions site/blog/_posts/2015-04-10-bash-completion.md

This file was deleted.

18 changes: 0 additions & 18 deletions site/blog/_posts/2015-04-15-share-your-project.md

This file was deleted.

0 comments on commit 22b85a2

Please sign in to comment.