Merged in feature/docGen (pull request #88)

Basic Generate

* basicgenerate

* basic
This commit is contained in:
Michael McGuinness
2025-03-05 13:50:43 +00:00
parent 0815cb35fb
commit 0af049e96f
8 changed files with 210 additions and 33 deletions
+40
View File
@@ -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