Merged in feature/docGen (pull request #88)
Basic Generate * basicgenerate * basic
This commit is contained in:
Vendored
+40
@@ -0,0 +1,40 @@
|
||||
{{if .Header -}}
|
||||
{{- .Header -}}
|
||||
{{- spacer -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- header 1 "Query Orchestration" -}}
|
||||
{{- spacer -}}
|
||||
|
||||
{{- range .Packages -}}
|
||||
{{- if eq .Name "main" -}}
|
||||
{{- header 2 .Dirname -}}
|
||||
{{- else -}}
|
||||
{{- header 2 .Name -}}
|
||||
{{- end -}}
|
||||
{{- spacer -}}
|
||||
|
||||
{{- range (iter .Doc.Blocks) -}}
|
||||
{{- if eq .Entry.Kind "paragraph" -}}
|
||||
{{- range .Entry.Spans -}}
|
||||
{{- if eq .Kind "text" -}}
|
||||
{{- .Text -}}
|
||||
{{- else if eq .Kind "rawText" -}}
|
||||
{{- .Text -}}
|
||||
{{- else if eq .Kind "autolink" -}}
|
||||
{{- .Text -}}
|
||||
{{- else if eq .Kind "link" -}}
|
||||
{{- link (escape .Text) .URL -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- spacer -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Footer -}}
|
||||
{{- .Footer -}}
|
||||
{{- spacer -}}
|
||||
{{- end -}}
|
||||
|
||||
Generated by Doczy
|
||||
Reference in New Issue
Block a user