From 2b1ca80e0908dac5f69aa12a2ec180c62004d6fa Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Fri, 20 May 2016 11:28:59 -0400 Subject: [PATCH] Link back to the main page in documentation. Also give the main page a title. Change-Id: I6db588a9454d90a5974de5446d58d709f84d1906 Reviewed-on: https://boringssl-review.googlesource.com/8020 Reviewed-by: Adam Langley --- util/doc.css | 5 ++++- util/doc.go | 8 +++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/util/doc.css b/util/doc.css index ab653e4e..a868e444 100644 --- a/util/doc.css +++ b/util/doc.css @@ -7,12 +7,15 @@ h2 { font-family: monospace; - margin-bottom: 2em; background-color: #b2c9db; padding: 7px; border-radius: 7px; } +div.title { + margin-bottom: 2em; +} + ol { list-style: none; margin-bottom: 4em; diff --git a/util/doc.go b/util/doc.go index 50da8d2d..681b8349 100644 --- a/util/doc.go +++ b/util/doc.go @@ -544,7 +544,10 @@ func generate(outPath string, config *Config) (map[string]string, error) {
-

{{.Name}}

+
+

{{.Name}}

+ All headers +
{{range .Preamble}}

{{. | html | markupPipeWords}}

{{end}} @@ -637,6 +640,9 @@ func generateIndex(outPath string, config *Config, headerDescriptions map[string
+
+

BoringSSL Headers

+
{{range .Sections}}
{{.Name}}