Skip to content

Commit cf8e9f5

Browse files
committed
prepare release
1 parent a6ac196 commit cf8e9f5

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

bumpver.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ tag = true
77
push = true
88

99
[bumpver.file_patterns]
10-
"webtex_render/main.go" = [
10+
"webtex_api/version.go" = [
1111
'const VERSION = "{version}"',
1212
]
1313
"bumpver.toml" = [

webtex_api/version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package webtex_api
2+
3+
const VERSION = "v23.1"

webtex_render/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@ package main
22

33
import (
44
"flag"
5+
"github.com/naboj-org/webtex-render/webtex_api"
56
"log"
67
"os"
78
"text/template"
89
)
910

10-
const VERSION = "v23.1"
11-
1211
func main() {
1312
var config Config
1413
inputFilename := flag.String("input", "-", "input file or - for stdin")
@@ -22,7 +21,7 @@ func main() {
2221
flag.Parse()
2322

2423
if *version {
25-
log.Printf("WebTeX Render version %v\n", VERSION)
24+
log.Printf("WebTeX Render version %v\n", webtex_api.VERSION)
2625
os.Exit(0)
2726
}
2827

webtex_web/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
var Renderers RendererMap
1616

1717
func getRoot(c *gin.Context) {
18-
c.String(http.StatusOK, "https://github.com/naboj-org/webtex-render")
18+
c.String(http.StatusOK, "https://github.com/naboj-org/webtex-render %s", webtex_api.VERSION)
1919
}
2020

2121
func getRender(c *gin.Context) {

0 commit comments

Comments
 (0)