File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,5 +25,4 @@ const (
25
25
questionDataFile = "question_data_%s.json"
26
26
questionArticleFile = "question_article_%s.html"
27
27
topicTagFile = "topic_tag_%s.json"
28
- tagsFile = "tag/tags.json"
29
28
)
Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ import (
11
11
"github.com/openset/leetcode/internal/client"
12
12
)
13
13
14
- var initTags []tagType
14
+ var (
15
+ initTags []tagType
16
+ tagsFile = path .Join ("tag" , "tags.json" )
17
+ )
15
18
16
19
func init () {
17
20
html := remember (problemsetAllFile , 7 , func () []byte {
@@ -124,7 +127,7 @@ func (tag tagType) SaveContents() {
124
127
})
125
128
var buf bytes.Buffer
126
129
buf .WriteString (authInfo ("tag" ))
127
- buf .WriteString (fmt .Sprintf ("\n ## %s\n \n " , tag .ShowName ()))
130
+ buf .WriteString (fmt .Sprintf ("\n ## [话题分类](https://github.com/openset/leetcode/blob/master/tag/README.md) > %s\n \n " , tag .ShowName ()))
128
131
buf .WriteString ("| # | 题名 | 标签 | 难度 |\n " )
129
132
buf .WriteString ("| :-: | - | - | :-: |\n " )
130
133
format := "| %s | [%s](https://github.com/openset/leetcode/tree/master/problems/%s)%s | %s | %s |\n "
You can’t perform that action at this time.
0 commit comments