mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
updated docs to not include drone javascript files when generated
This commit is contained in:
parent
cd86948cff
commit
5ba7dad0dc
5 changed files with 10 additions and 24 deletions
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/
|
||||
|
|
|
@ -29,4 +29,8 @@ block content
|
|||
ul
|
||||
#{Site.Nav.HTML}
|
||||
div.content-main
|
||||
#{Page.HTML}
|
||||
#{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"]
|
||||
|
|
|
@ -67,4 +67,8 @@ block content
|
|||
if $res.IsArray
|
||||
pre [#{$res.Example}]
|
||||
else if $res.IsObject
|
||||
pre #{$res.Example}
|
||||
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 a new issue