feat(generator): generate nav file
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / Prepare GO cache (pull_request) Successful in 4m57s
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 13m22s
CI Workflow / CI run build and linting (pull_request) Successful in 17m32s
CI Workflow / Code coverage report (pull_request) Successful in 12s
CI Workflow / CI run tests (pull_request) Failing after 19m11s
Some checks failed
CI Workflow / Check GoReleaser config (pull_request) Successful in 6s
CI Workflow / Prepare GO cache (pull_request) Successful in 4m57s
CI Workflow / Test readiness for publishing provider (pull_request) Successful in 13m22s
CI Workflow / CI run build and linting (pull_request) Successful in 17m32s
CI Workflow / Code coverage report (pull_request) Successful in 12s
CI Workflow / CI run tests (pull_request) Failing after 19m11s
This commit is contained in:
parent
f173fd54fe
commit
49ed600f7f
7 changed files with 307 additions and 10 deletions
27
generator/cmd/docs/templates/nav.md.gompl
vendored
Normal file
27
generator/cmd/docs/templates/nav.md.gompl
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
page_title: {{ .PageTitle }}
|
||||
description: {{ .Description }}
|
||||
---
|
||||
## {{ .NavigationTitle }}
|
||||
### {{ .ProviderTitle }}
|
||||
{{ if .IndexFound }}
|
||||
[Provider](/docs/docs/index.md)
|
||||
{{ end }}
|
||||
{{- range $index, $service := .Services }}
|
||||
### {{ $service.ServiceTitle }}
|
||||
<details>
|
||||
|
||||
#### data sources
|
||||
|
||||
{{- range $service.DataSources }}
|
||||
- [{{ .ItemName }}]({{ .ItemLink }})
|
||||
{{- end }}
|
||||
|
||||
#### resources
|
||||
|
||||
{{- range $service.Resources }}
|
||||
- [{{ .ItemName }}]({{ .ItemLink }})
|
||||
{{- end }}
|
||||
</details>
|
||||
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue