use go-bindata to embed static assets

This commit is contained in:
mappu 2017-07-09 12:12:47 +12:00
parent 7cb1f02423
commit 1b4720fca2
4 changed files with 570 additions and 279 deletions

10
Makefile Normal file
View File

@ -0,0 +1,10 @@
.PHONY: all clean
all: staticResources.go
clean:
rm staticResources.go
staticResources.go: static/ static/*
go-bindata -o staticResources.go -prefix static -pkg yatwiki3 static

27
static/highlight.js Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,3 @@
package yatwiki3
var tmplWikiCss []byte = []byte(`
/* wiki.css */ /* wiki.css */
html,body { html,body {
background:white;color:black;font-size:12px; background:white;color:black;font-size:12px;
@ -276,4 +273,3 @@ pre .vhdl .literal { color: rgb(163, 21, 21); }
pre .vhdl .attribute { color: #00B0E8; } pre .vhdl .attribute { color: #00B0E8; }
pre .xml .attribute { color: rgb(255, 0, 0); } pre .xml .attribute { color: rgb(255, 0, 0); }
`)

258
staticResources.go Normal file

File diff suppressed because one or more lines are too long