Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(templates): fix inconsistent spacing #88

Merged
merged 1 commit into from
Feb 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gomarkdoc.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
output: "{{.Dir}}/README.md"
header: |+
header: |-
[![Go Report Card](https://goreportcard.com/badge/github.com/princjef/gomarkdoc)](https://goreportcard.com/report/github.com/princjef/gomarkdoc)
[![GitHub Actions](https://github.com/princjef/gomarkdoc/workflows/Test/badge.svg)](https://github.com/princjef/gomarkdoc/actions?query=workflow%3ATest+branch%3Amaster)
[![Go Reference](https://pkg.go.dev/badge/github.com/princjef/gomarkdoc.svg)](https://pkg.go.dev/github.com/princjef/gomarkdoc)
[![codecov](https://codecov.io/gh/princjef/gomarkdoc/branch/master/graph/badge.svg?token=171XNH5XLT)](https://codecov.io/gh/princjef/gomarkdoc)

repository:
url: https://github.com/princjef/gomarkdoc
defaultBranch: master
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/princjef/gomarkdoc.svg)](https://pkg.go.dev/github.com/princjef/gomarkdoc)
[![codecov](https://codecov.io/gh/princjef/gomarkdoc/branch/master/graph/badge.svg?token=171XNH5XLT)](https://codecov.io/gh/princjef/gomarkdoc)



# gomarkdoc

```go
Expand Down
6 changes: 4 additions & 2 deletions templates.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions templates/package.gotxt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
{{- template "import" . -}}
{{- spacer -}}

{{- template "doc" .Doc -}}
{{- spacer -}}
{{- if len .Doc.Blocks -}}
{{- template "doc" .Doc -}}
{{- spacer -}}
{{- end -}}

{{- range (iter .Examples) -}}
{{- template "example" .Entry -}}
Expand Down
2 changes: 0 additions & 2 deletions testData/lang/function/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import "github.com/princjef/gomarkdoc/testData/lang/function"
```



## Index

- [Constants](<#constants>)
Expand Down
2 changes: 0 additions & 2 deletions testData/nested/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import "github.com/princjef/gomarkdoc/testData/nested"
```



## Index

- [func Parent() int](<#func-parent>)
Expand Down
2 changes: 0 additions & 2 deletions testData/nested/inner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import "github.com/princjef/gomarkdoc/testData/nested/inner"
```



## Index

- [func Child() int](<#func-child>)
Expand Down