You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/xlog.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ jobs:
51
51
--activitypub.username=app \
52
52
--activitypub.summary="Xlog is a static site generator for digital gardening written in Go. It serves markdown files as HTML and allows editing files online. It focuses on enriching markdown files and surfacing implicit links between pages." \
Copy file name to clipboardExpand all lines: extensions/github/main.go
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,22 +4,23 @@ import (
4
4
"flag"
5
5
"fmt"
6
6
"html/template"
7
-
"net/url"
8
7
9
8
. "github.com/emad-elsaid/xlog"
10
9
)
11
10
11
+
vareditUrlstring
12
12
varrepostring
13
13
varbranchstring
14
14
15
15
funcinit() {
16
-
flag.StringVar(&repo, "github.repo", "", "Github repository to use for 'edit on Github' quick action e.g https://github.com/emad-elsaid/xlog")
17
-
flag.StringVar(&branch, "github.branch", "master", "Github repository branch to use for 'edit on Github' quick action")
16
+
flag.StringVar(&editUrl, "github.url", "", "Repository url for 'edit on Github' quick action e.g https://github.com/emad-elsaid/xlog/edit/master/docs")
17
+
flag.StringVar(&repo, "github.repo", "", "[Deprecated] Github repository to use for 'edit on Github' quick action e.g https://github.com/emad-elsaid/xlog")
18
+
flag.StringVar(&branch, "github.branch", "master", "[Deprecated] Github repository branch to use for 'edit on Github' quick action")
18
19
RegisterQuickCommand(quickCommands)
19
20
}
20
21
21
22
funcquickCommands(pPage) []Command {
22
-
iflen(repo) ==0 {
23
+
iflen(repo) ==0&&len(editUrl) ==0{
23
24
returnnil
24
25
}
25
26
@@ -37,7 +38,11 @@ func (e editOnGithub) Name() string {
0 commit comments