aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/serve-docs.sh
Commit message (Collapse)AuthorAge
* Shell code cleanupGravatar Androbin2017-12-14
| | | | | | | | | | | | - Argument mixes string and array. Use * or separate argument. - Quote the grep pattern so the shell won't interpret it. - Use "${var:?}" to ensure this never expands to /* . - > is for string comparisons. Use -gt instead. - Quote the parameter to -name so the shell won't interpret it. Closes #4163. PiperOrigin-RevId: 179042046
* scripts/serve-docs.sh: allow overriding PORT/HOSTGravatar Klaus Aehlig2017-12-05
| | | | | | | | | ...through the corresponding environment variables. In this way, more than one documentation version can be served, e.g., to simplify comparing. Change-Id: I4ae069a4a48f12e9bd48210ee3bd22299149f59d PiperOrigin-RevId: 177959891
* Restructure site/ directory into docs/ which only contains Bazel documentation.Gravatar dzc2017-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix scripts/serve-docs.shGravatar hlopko2017-05-31
| | | | | RELNOTES: None. PiperOrigin-RevId: 157463020
* Make serve-docs script more robustGravatar kchodorow2017-04-24
| | | | | | | | | | * Make quit & reload actually kill the server, to prevent bind errors. * Added an arg to bind to $HOSTNAME, instead of just localhost, for ease of code review. * Makes option parsing a little more robust. * Moves "build the jekyll tree" out of the "serve forever" loop. PiperOrigin-RevId: 153840306
* scripts/serve-docs.sh: ask bazel for the genfiles path Gravatar Klaus Aehlig2017-03-01
| | | | | | | | | | | | ...instead of assuming bazel-genfiles in `pwd`. In this way, the script will also work with --symlink-prefix=/ set in the rc file. -- Change-Id: I848a2e9791b4b8a8c1d6d0cea1f10117717935bd Reviewed-on: https://cr.bazel.build/9118 PiperOrigin-RevId: 148894206 MOS_MIGRATED_REVID=148894206
* Change our URL to bazel.buildGravatar Damien Martin-Guillerez2016-10-28
| | | | | -- MOS_MIGRATED_REVID=137500893
* Display all allowed types for SkylarkSignature Params that allow multipleGravatar David Chen2016-07-05
| | | | | | | | | | | | | | | | | | | types. Fixes #921 Certain parameters, such as the `executable` and `command` parameters of ctx.action, allow multiple types. However, the allowed types are not enumerated in the SkylarkSignature annotation, causing the generated Skylark Library document to not display any type information for those params. This change adds a new field, `allowedTypes`, to `SkylarkSignature` that is a list of `ParamType` objects. If the param can accept multiple types, then `type` is set to `Object.class`, and `allowedTypes` is set to the list of types that can be accepted. -- MOS_MIGRATED_REVID=126617047
* Teach serve-docs.sh to generate a static web site.Gravatar Dmitry Lomov2016-06-27
| | | | | | | -- Change-Id: Ic75d8f1d05b0ccba2faaad6527ab2719612325d8 Reviewed-on: https://bazel-review.googlesource.com/#/c/3892/ MOS_MIGRATED_REVID=125779082
* Update serve-docs.sh to allow easily rebuilding the docs and restarting ↵Gravatar Alex Humesky2016-06-23
| | | | | | | jekyll by pressing "r". -- MOS_MIGRATED_REVID=125593474
* Make serve-doc script work with the version of jekyll that comes with apt-getGravatar Kristina Chodorow2016-06-21
| | | | | -- MOS_MIGRATED_REVID=125449782
* Add generated docs to Jekyll tree build target. Add script for bringing upGravatar David Chen2016-05-09
local instance of bazel.io site. * Add a new genrule rule that runs the new jekyll-tree.sh to do the following: * Combine the generated docs for the Build Encyclopedia and Skylark Library with the static site docs * Combine the README.md files for the Docker and Packaging rules with the Jekyll tree * Process the generated docs, replaces instances of "blaze" with "bazel", etc. * Add scripts/serve-docs.sh script that can be used to bring up a local instance of the bazel.io website. As of this patch, it is possible to construct the full Bazel.io site tree from the master branch. -- MOS_MIGRATED_REVID=121813688