From ca2b58bd623db141125febf4faa1f407bbda44d5 Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Sun, 13 Jun 2021 19:19:20 +0800 Subject: [PATCH] remove GoSourceFile/GoSourceLine configs as they're formatted in template.html in fact --- config.json | 2 -- main.go | 5 ----- 2 files changed, 7 deletions(-) diff --git a/config.json b/config.json index 67be731..4473dbe 100644 --- a/config.json +++ b/config.json @@ -2,8 +2,6 @@ "__comment__": "What comment? Just go read the code.", "GitServerPrefix": "https://git.edgaru089.ml", - "GoSourceFile": "https://git.edgaru089.ml/{/path}/src/branch/master{/dir}", - "GoSourceLine": "https://git.edgaru089.ml/{/path}/src/branch/master{/dir}/{file}#L{line}", "Repos": { "go/gl02": { diff --git a/main.go b/main.go index 8378d81..38eeb61 100644 --- a/main.go +++ b/main.go @@ -23,11 +23,6 @@ type Repo struct { type Config struct { GitServerPrefix string // Like https://github.com or https://git.example.com (without ending slash) - // go-source tag strings. Example: - // GoSourceFile: https://git.example.com/{/path}/src/branch/master{/dir} - // GoSourceLine: https://git.example.com/{/path}/src/branch/master{/dir}/{file}#L{line} - GoSourceFile, GoSourceLine string - Repos map[string]*Repo // mapped by ShortPath, like package/code }