Skip to content

Commit

Permalink
fix(templates): fix inconsistent spacing (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
princjef committed Feb 24, 2023
1 parent bbe4470 commit 7d0c2ca
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 deletions.
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

0 comments on commit 7d0c2ca

Please sign in to comment.