summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Ponciroli <ponch78@gmail.com>2024-02-05 12:43:44 +0000
committerFabio Ponciroli <ponch78@gmail.com>2024-03-25 22:11:58 +0000
commitf6b7ffdbf4702aa92c2a449ce0c1705b9342a83a (patch)
tree70fd2372790f671dda1085f864c64cf61b9f94bb
parent028584eb77a9d7e6480e360d9bb9ce4fda4b851e (diff)
Add Documentation:html_safe with local-only fonts and search box
Similarly to Ide4369ca, this change adds a new `html_safe` target to allow generating safe local-only documentation, but including the search box. This is not currently possible with the `searchfree_safe` target. Release-Notes: Add Documentation:html_safe with local-only fonts and search box Change-Id: Ieee2d07a8360c062eff48e24fa0b0afcef937a0b
-rw-r--r--Documentation/BUILD12
-rw-r--r--Documentation/dev-bazel.txt12
2 files changed, 23 insertions, 1 deletions
diff --git a/Documentation/BUILD b/Documentation/BUILD
index 9ff4d70de2..beeaa1e1ba 100644
--- a/Documentation/BUILD
+++ b/Documentation/BUILD
@@ -110,4 +110,14 @@ genasciidoc_zip(
directory = DOC_DIR,
searchbox = False,
webfonts = False,
-) \ No newline at end of file
+)
+
+genasciidoc_zip(
+ name = "html_safe",
+ srcs = SRCS,
+ attributes = documentation_attributes(),
+ backend = "html5",
+ directory = DOC_DIR,
+ searchbox = True,
+ webfonts = False,
+)
diff --git a/Documentation/dev-bazel.txt b/Documentation/dev-bazel.txt
index f21ffae1c5..186d3f508a 100644
--- a/Documentation/dev-bazel.txt
+++ b/Documentation/dev-bazel.txt
@@ -267,6 +267,18 @@ The html files will be bundled into `searchfree.zip` in this location:
bazel-bin/Documentation/searchfree.zip
----
+To use local fonts and keep the search box with the html_safe target:
+
+----
+ bazel build Documentation:html_safe
+----
+
+The html files will be bundled into `html_safe.zip` in this location:
+
+----
+ bazel-bin/Documentation/html_safe.zip
+----
+
To build the executable WAR with the documentation included:
----