Build doc improvements.

Bring property type strings to the start of property comments. This is
how source.android.com shows variables and paratemeters, and it is also
easier to read, especially when a comment ends with a code example.

Test: m soong_docs
Change-Id: Ic3e9db3a3711495998919ee95bbef6c7cb33b215
This commit is contained in:
Jaewoong Jung 2019-03-12 13:28:25 -07:00
parent 66184450d5
commit 12c02a63d0
1 changed files with 3 additions and 2 deletions

View File

@ -276,8 +276,9 @@ li a:hover:not(.active) {
{{- else -}}
<div class="simple" id="{{getModule}}.{{.Name}}">
<span class="fixed">&nbsp;</span><b>{{.Name}} {{range .OtherNames}}, {{.}}{{end -}}</b>
{{- if .Text -}}{{.Text}}{{- end -}}
{{- with .OtherTexts -}}{{.}}{{- end -}}<i>{{.Type}}</i>
<i>{{.Type}}</i>
{{- if .Text -}}{{if ne .Text "\n"}}, {{end}}{{.Text}}{{- end -}}
{{- with .OtherTexts -}}{{.}}{{- end -}}
{{- if .Default -}}<i>Default: {{.Default}}</i>{{- end -}}
</div>
{{- end}}