mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 08:02:18 +02:00
updated docs to not include drone javascript files when generated
This commit is contained in:
parent
cd86948cff
commit
5ba7dad0dc
1
Makefile
1
Makefile
@ -55,6 +55,5 @@ docs:
|
||||
mkdir -p /drone/tmp/docs
|
||||
mkdir -p /drone/tmp/static
|
||||
cp -a static/docs_gen/* /drone/tmp/docs/
|
||||
cp -a static/scripts_gen /drone/tmp/static/
|
||||
cp -a static/styles_gen /drone/tmp/static/
|
||||
cp -a static/images /drone/tmp/static/
|
||||
|
@ -30,3 +30,7 @@ block content
|
||||
#{Site.Nav.HTML}
|
||||
div.content-main
|
||||
#{Page.HTML}
|
||||
|
||||
block scripts
|
||||
script[type="text/javascript"][src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"]
|
||||
script[type="text/javascript"][src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/js/bootstrap.min.js"]
|
||||
|
@ -68,3 +68,7 @@ block content
|
||||
pre [#{$res.Example}]
|
||||
else if $res.IsObject
|
||||
pre #{$res.Example}
|
||||
|
||||
block scripts
|
||||
script[type="text/javascript"][src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"]
|
||||
script[type="text/javascript"][src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/js/bootstrap.min.js"]
|
||||
|
10
vendor/github.com/bugagazavr/go-gitlab-client/util.go
generated
vendored
10
vendor/github.com/bugagazavr/go-gitlab-client/util.go
generated
vendored
@ -1,10 +0,0 @@
|
||||
package gogitlab
|
||||
|
||||
import (
|
||||
"net/url"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func encodeParameter(value string) string {
|
||||
return strings.Replace(url.QueryEscape(value), "/", "%2F", 0)
|
||||
}
|
11
vendor/github.com/bugagazavr/go-gitlab-client/util_test.go
generated
vendored
11
vendor/github.com/bugagazavr/go-gitlab-client/util_test.go
generated
vendored
@ -1,11 +0,0 @@
|
||||
package gogitlab
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestParameterEncoding(t *testing.T) {
|
||||
assert.Equal(t, encodeParameter("namespace/project"), "namespace%2Fproject")
|
||||
assert.Equal(t, encodeParameter("14"), "14")
|
||||
}
|
Loading…
Reference in New Issue
Block a user