Merge "Add a filename to anchor links in build docs."

This commit is contained in:
Jaewoong Jung
2019-02-27 22:38:19 +00:00
committed by Gerrit Code Review

View File

@@ -241,7 +241,7 @@ li a:hover:not(.active) {
{{- /* Fixed sidebar with module types */ -}} {{- /* Fixed sidebar with module types */ -}}
<ul> <ul>
<li><h3>{{.Name}} package</h3></li> <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 -}} {{end -}}
</ul> </ul>
{{/* Main panel with H1 section per module type */}} {{/* Main panel with H1 section per module type */}}
@@ -255,7 +255,7 @@ li a:hover:not(.active) {
<div class="breadcrumb"> <div class="breadcrumb">
{{range $i,$prop := $moduleType.Properties }} {{range $i,$prop := $moduleType.Properties }}
{{ if gt $i 0 }},&nbsp;{{end -}} {{ 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 -}} {{- end -}}
</div> </div>
{{- /* Property description */ -}} {{- /* Property description */ -}}