File tree Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 3
3
TODO.md
4
4
/gh-md-toc
5
5
build
6
- e2e-tests /got.md
6
+ e2e-tests /got * .md
7
7
dist /
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ BUILD_DIR=build
4
4
BUILD_OS ="windows darwin linux"
5
5
BUILD_ARCH ="amd64"
6
6
E2E_DIR =e2e-tests
7
+ E2E_RUN =go run cmd/gh-md-toc/main.go ./README.md
7
8
8
9
clean :
9
10
@rm -f ${EXEC}
@@ -25,8 +26,13 @@ test: clean lint
25
26
@go test -cover -o ${EXEC}
26
27
27
28
e2e :
28
- go run cmd/gh-md-toc/main.go ./README.md > ${E2E_DIR} /got.md
29
+ echo " >> Local MD & options ..."
30
+ ${E2E_RUN} > ${E2E_DIR} /got.md
29
31
diff ${E2E_DIR} /want.md ${E2E_DIR} /got.md
32
+ ${E2E_RUN} --hide-header --hide-footer --depth=1 --no-escape > ${E2E_DIR} /got2.md
33
+ diff ${E2E_DIR} /want2.md ${E2E_DIR} /got2.md
34
+ ${E2E_RUN} --hide-header --hide-footer --indent=4 > ${E2E_DIR} /got3.md
35
+ diff ${E2E_DIR} /want3.md ${E2E_DIR} /got3.md
30
36
31
37
release : test
32
38
@git tag v` grep " \tVersion" internals.go | grep -o -E ' [0-9]\.[0-9]\.[0-9]{1,2}' `
Original file line number Diff line number Diff line change
1
+ * [ github-markdown-toc] ( #github-markdown-toc )
2
+ * [ Table of Contents] ( #table-of-contents )
3
+ * [ Installation] ( #installation )
4
+ * [ Tests] ( #tests )
5
+ * [ Usage] ( #usage )
6
+ * [ Alpine Linux] ( #alpine-linux )
7
+ * [ LICENSE] ( #license )
8
+
Original file line number Diff line number Diff line change
1
+ * [ github\- markdown\- toc] ( #github-markdown-toc )
2
+ * [ Table of Contents] ( #table-of-contents )
3
+ * [ Installation] ( #installation )
4
+ * [ Precompiled binaries] ( #precompiled-binaries )
5
+ * [ Compiling from source] ( #compiling-from-source )
6
+ * [ Go Install] ( #go-install )
7
+ * [ Homebew (Mac only)] ( #homebew-mac-only )
8
+ * [ Tests] ( #tests )
9
+ * [ Usage] ( #usage )
10
+ * [ STDIN] ( #stdin )
11
+ * [ Local files] ( #local-files )
12
+ * [ Remote files] ( #remote-files )
13
+ * [ Multiple files] ( #multiple-files )
14
+ * [ Combo] ( #combo )
15
+ * [ Starting Depth] ( #starting-depth )
16
+ * [ Depth] ( #depth )
17
+ * [ No escape] ( #no-escape )
18
+ * [ GitHub token] ( #github-token )
19
+ * [ GitHub Enterprise Server] ( #github-enterprise-server )
20
+ * [ Bash/ZSH auto\- complete] ( #bashzsh-auto-complete )
21
+ * [ Alpine Linux] ( #alpine-linux )
22
+ * [ LICENSE] ( #license )
23
+
You can’t perform that action at this time.
0 commit comments