summaryrefslogtreecommitdiffhomepage
path: root/website/defs.bzl
diff options
context:
space:
mode:
authorIan Lewis <ianlewis@google.com>2020-07-17 18:26:08 -0700
committergVisor bot <gvisor-bot@google.com>2020-07-17 18:27:41 -0700
commitfeb1d3d5a7d9c26ab1533b350a9d6088148641aa (patch)
tree13ef1f368b665116bedc90ddd0c96f43d5448498 /website/defs.bzl
parent5593320bee3e4ab215f501a723ef3ea92b20cf85 (diff)
Clean up html on the website.
- Fixes some html validation issues. - Fixes links on security basics blog post. - Adds rel=noopener to links with target=_blank and adds a check to htmlproofer. - Add favicon check to htmlproofer. Fixes #3286 Fixes #3284 PiperOrigin-RevId: 321892602
Diffstat (limited to 'website/defs.bzl')
-rw-r--r--website/defs.bzl4
1 files changed, 3 insertions, 1 deletions
diff --git a/website/defs.bzl b/website/defs.bzl
index ead6a3067..f52946c15 100644
--- a/website/defs.bzl
+++ b/website/defs.bzl
@@ -1,5 +1,7 @@
"""Wrappers for website documentation."""
+load("//tools:defs.bzl", "short_path")
+
# DocInfo is a provider which simple adds sufficient metadata to the source
# files (and additional data files) so that a jeyll header can be constructed
# dynamically. This is done the via BUILD system so that the plain
@@ -29,7 +31,7 @@ def _doc_impl(ctx):
category = ctx.attr.category,
subcategory = ctx.attr.subcategory,
weight = ctx.attr.weight,
- editpath = ctx.files.src[0].short_path,
+ editpath = short_path(ctx.files.src[0].short_path),
authors = ctx.attr.authors,
),
]