You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@ Flags:
49
49
--repository.default-branch string Manual override for the git repository URL used in place of automatic detection.
50
50
--repository.path string Manual override for the path from the root of the git repository used in place of automatic detection.
51
51
--repository.url string Manual override for the git repository URL used in place of automatic detection.
52
+
--tags strings Set of build tags to apply when choosing which files to include for documentation generation.
52
53
-t, --template stringToString Custom template string to use for the provided template name instead of the default template. (default [])
53
54
--template-file stringToString Custom template file to use for the provided template name instead of the default template. (default [])
54
55
-v, --verbose count Log additional output from the execution of the command. Can be chained for additional verbosity.
@@ -131,6 +132,12 @@ As with the godoc tool itself\, only exported symbols will be shown in documenta
131
132
gomarkdoc -u -o README.md .
132
133
```
133
134
135
+
If you would like to include files that are part of a build tag\, you can specify build tags with the \-\-tags flag\. Tags are also supported through GOFLAGS\, though command line and configuration file definitions override tags specified through GOFLAGS\.
136
+
137
+
```
138
+
gomarkdoc --tags sometag .
139
+
```
140
+
134
141
You can also run gomarkdoc in a verification mode with the \-\-check/\-c flag\. This is particularly useful for continuous integration when you want to make sure that a commit correctly updated the generated documentation\. This flag is only supported when the \-\-output/\-o flag is specified\, as the file provided there is what the tool is checking:
0 commit comments