Do not replace .md with .html in non-relative links in docs.

Until now, we had docs pointing to non-existent .html files in github and even
wrongly replaced README.md with README.html in some code examples.

For example, in configurable-attributes doc, we had:

<a href="https://github.com/bazelbuild/bazel-skylib/blob/master/docs/selects_doc.html"><code class="highlighter-rouge">selects</code></a>

After the fix, we will have:

<a href="https://github.com/bazelbuild/bazel-skylib/blob/master/docs/selects_doc.md"><code class="highlighter-rouge">selects</code></a>

Full recursive diff of `./scripts/serve-docs.sh --target` output
with the result of this fix:
https://gist.github.com/tetromino/fa590eff74db10ac0815773cb46d821b

Note that parsing markdown or html with sed is generally impossible to
get right, but since we're already doing it, we may for now continue; the
alternative would be to add an intelligent markdown and html parser to
the pipeline.

Fixes https://github.com/bazelbuild/bazel/issues/6285

RELNOTES: None.
PiperOrigin-RevId: 316705091
1 file changed
tree: 58dc52909eb9553b26e1b45019695bb5d2acbfc7
  1. .bazelci/
  2. examples/
  3. scripts/
  4. site/
  5. src/
  6. third_party/
  7. tools/
  8. .bazelrc
  9. .gitattributes
  10. .gitignore
  11. AUTHORS
  12. BUILD
  13. CHANGELOG.md
  14. CODEOWNERS
  15. combine_distfiles.py
  16. combine_distfiles_to_tar.sh
  17. compile.sh
  18. CONTRIBUTING.md
  19. CONTRIBUTORS
  20. distdir.bzl
  21. ISSUE_TEMPLATE.md
  22. LICENSE
  23. README.md
  24. WORKSPACE
README.md

Bazel

{Fast, Correct} - Choose two

Build and test software of any size, quickly and reliably.

  • Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.

  • One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.

  • Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.

  • Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.

Getting Started

Documentation

Contributing to Bazel

See CONTRIBUTING.md

Build status