diff options
Diffstat (limited to 'src/main/java/com/google')
5 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html b/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html index e447335010..0e7ab18d05 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html +++ b/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html @@ -10,7 +10,7 @@ <i>Tags</i> on non-test rules are used to control sandboxed execution of <code>genrule</code>s and -<a href="/docs/skylark/index.html">Skylark</a> +<a href="{{ page.version_prefix }}/docs/skylark/index.html">Skylark</a> actions, and for parsing by humans and/or external tools. </p> diff --git a/src/main/java/com/google/devtools/build/docgen/templates/be/be-nav.vm b/src/main/java/com/google/devtools/build/docgen/templates/be/be-nav.vm index cd7eabb1bc..c8951e6c3c 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/be/be-nav.vm +++ b/src/main/java/com/google/devtools/build/docgen/templates/be/be-nav.vm @@ -1,4 +1,4 @@ -#set ($path = "/docs/be") +#set ($path = "{{ page.version_prefix }}/docs/be") #set ($bazelbuildGithub = "https://github.com/bazelbuild") <h3>Build Encyclopedia</h3> diff --git a/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm b/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm index 780716cfe1..07a666da68 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm +++ b/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm @@ -40,7 +40,7 @@ build_test(name = ...) <p>This will execute the - <a href="/docs/skylark/index.html">Skylark</a> + <a href="{{ page.version_prefix }}/docs/skylark/index.html">Skylark</a> module <code>tools/build_rules/build_test.bzl</code> and import the symbol <code>build_test</code> in the local environment. This is useful for using macros or for sharing values between multiple BUILD files. By @@ -684,7 +684,7 @@ sh_binary( com_example_some_project as the workspace name. </p> -<p><a href="/docs/be/workspace.html">Remote repository</a> rule names must be +<p><a href="workspace.html">Remote repository</a> rule names must be valid workspace names. For example, you could have <code>maven_jar(name = "foo")</code>, but not <code>maven_jar(name = "foo.bar")</code>, as Bazel would attempt to write a diff --git a/src/main/java/com/google/devtools/build/docgen/templates/skylark-category.vm b/src/main/java/com/google/devtools/build/docgen/templates/skylark-category.vm index b635e48e7d..604f89abf5 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/skylark-category.vm +++ b/src/main/java/com/google/devtools/build/docgen/templates/skylark-category.vm @@ -10,7 +10,7 @@ ${category.description} <ul> #foreach ($module in $modules) -<li><a href="/docs/skylark/lib/${module.name}.html">${module.title}</a></li> +<li><a href="{{ page.version_prefix }}/docs/skylark/lib/${module.name}.html">${module.title}</a></li> #end </ul> </div> diff --git a/src/main/java/com/google/devtools/build/docgen/templates/skylark-nav.vm b/src/main/java/com/google/devtools/build/docgen/templates/skylark-nav.vm index 96730fefdc..82e8240b82 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/skylark-nav.vm +++ b/src/main/java/com/google/devtools/build/docgen/templates/skylark-nav.vm @@ -1,5 +1,5 @@ -<li><a href="/docs/skylark/lib/skylark-builtin.html">Builtin Types and Modules</a></li> -<li><a href="/docs/skylark/lib/skylark-configuration-fragment.html">Configuration fragments</a></li> -<li><a href="/docs/skylark/lib/skylark-provider.html">Providers</a></li> -<li><a href="/docs/skylark/lib/globals.html">Globals</a></li> -<li><a href="/docs/skylark/lib/native.html">Native Module</a></li> +<li><a href="{{ page.version_prefix }}/docs/skylark/lib/skylark-builtin.html">Builtin Types and Modules</a></li> +<li><a href="{{ page.version_prefix }}/docs/skylark/lib/skylark-configuration-fragment.html">Configuration fragments</a></li> +<li><a href="{{ page.version_prefix }}/docs/skylark/lib/skylark-provider.html">Providers</a></li> +<li><a href="{{ page.version_prefix }}/docs/skylark/lib/globals.html">Globals</a></li> +<li><a href="{{ page.version_prefix }}/docs/skylark/lib/native.html">Native Module</a></li> |