commit | d985bcceb3210661106c1f6900fa9c533fe35a20 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Sep 14 17:53:36 2021 -0700 |
committer | Yifan Hong <elsk@google.com> | Thu Sep 16 15:20:51 2021 -0700 |
tree | d613dc4082516eadcf9f9930cc763ea64e4e38cc | |
parent | b2f7e72c0b9a2838e1ff50e2401a51adf200b7f6 [diff] |
Add rules for generating docs. These rules are moved from build/kleaf, with slight modifications to make them generic: - run_server.sh is generated to infer the subpath named with the name of the "docs" rule, in case there are multiple "docs" rule in a package - flatten the contents; all markdown files are shown at once. - Integrate "Directory" into "Table of contents". This removes directory.frag.html (but still needs default_file.frag.html, see below) - index.html figures out the default file to show by checking the <a> tag with id "default_file", which is calculated from the "default" attribute of the docs rule Test: pass Bug: 199788453 Change-Id: I9bb4c3543f253f8ff88a19cea8238170cb113b3f
This directory contains common Bazel rules and tools shared between the Platform and Kernel builds.
For platform-specific rules, place them in the platform checkout's //build/bazel/rules directory.
For kernel-specific rules, place them in kernel checkout's //build/kleaf directory.