Skip to content

Commit 13ffafe

Browse files
committed
doc: Add ctags to README, ignore tags file in git
1 parent 9d9afe5 commit 13ffafe

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@
66
.vscode
77
.hugo_build.lock
88
*.swp
9+
10+
# ctags
11+
tags
12+
*.tags
13+
TAGS

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,12 @@ Local development
8989
# add to go.mod for local development
9090
# replace github.com/manid2/hugo-xterm => ../hugo-xterm
9191
hugo server --source exampleSite
92+
93+
# generate tags
94+
ctags -R assets/ layouts/ config.toml theme.toml
95+
96+
# generate tags for exampleSite
97+
ctags -R exampleSite/layouts/ exampleSite/scripts/ exampleSite/config
9298
```
9399

94100
Credits

0 commit comments

Comments
 (0)