aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJaewoong Jung <jungjw@google.com>2019-02-27 11:15:00 -0800
committerJaewoong Jung <jungjw@google.com>2019-02-27 11:15:00 -0800
commitd10f484eeefd18d3c05621e284901696dd73127e (patch)
treeb368e179d040f5fce0b7820830421f3d8ee6f86e /cmd
parent6bd446620c663de2aba60f1dde554e8ebca39f6a (diff)
downloadbuild_soong-d10f484eeefd18d3c05621e284901696dd73127e.tar.gz
build_soong-d10f484eeefd18d3c05621e284901696dd73127e.tar.bz2
build_soong-d10f484eeefd18d3c05621e284901696dd73127e.zip
Add a filename to anchor links in build docs.
The href base added by I8a8ac0f9ba6c0d57ed83db2155955a95e070a265 doesn't really play nice with anchor links. This fixes the issue. Fixes: 126550408 Test: m soong_docs Change-Id: If62411a6391fd8151fa40cb2ecf32c5006797d6c
Diffstat (limited to 'cmd')
-rw-r--r--cmd/soong_build/writedocs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/soong_build/writedocs.go b/cmd/soong_build/writedocs.go
index e86ef827..4b2dc14f 100644
--- a/cmd/soong_build/writedocs.go
+++ b/cmd/soong_build/writedocs.go
@@ -241,7 +241,7 @@ li a:hover:not(.active) {
{{- /* Fixed sidebar with module types */ -}}
<ul>
<li><h3>{{.Name}} package</h3></li>
-{{range $moduleType := .Modules}}<li><a href="#{{$moduleType.Name}}">{{$moduleType.Name}}</a></li>
+{{range $moduleType := .Modules}}<li><a href="{{$.Name}}.html#{{$moduleType.Name}}">{{$moduleType.Name}}</a></li>
{{end -}}
</ul>
{{/* Main panel with H1 section per module type */}}
@@ -255,7 +255,7 @@ li a:hover:not(.active) {
<div class="breadcrumb">
{{range $i,$prop := $moduleType.Properties }}
{{ if gt $i 0 }},&nbsp;{{end -}}
- <a href=#{{getModule}}.{{$prop.Name}}>{{$prop.Name}}</a>
+ <a href={{$.Name}}.html#{{getModule}}.{{$prop.Name}}>{{$prop.Name}}</a>
{{- end -}}
</div>
{{- /* Property description */ -}}