diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f0a5279 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +/_book \ No newline at end of file diff --git a/Makefile b/Makefile index 192cc83..d4049fa 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,14 @@ -all: build - -build: pdf +build: gitbook build +all: build pdf + run: gitbook serve --port 8080 -pdf: - gitbook pdf . VCV-Rack-manual.pdf +pdf: build + gitbook pdf . _book/VCV-Rack-manual.pdf upload: all rsync _book/ vcvrack.com:vcvrack.com/manual/ -ruvz --delete - diff --git a/README.md b/README.md index 2953176..b1c462c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,11 @@ Install [gitbook](https://github.com/GitbookIO/gitbook) with npm install gitbook-cli -g -Run +Install gitbook plugins with + + gitbook install + +Build with make run diff --git a/book.json b/book.json index 1346db3..de99463 100644 --- a/book.json +++ b/book.json @@ -1,4 +1,13 @@ { + "plugins": [ + "insert-logo-link" + ], + "pluginsConfig": { + "insert-logo-link": { + "src": "images/logo.png", + "url": "https://vcvrack.com/" + } + }, "structure": { "readme": "Introduction.md", "summary": "TOC.md", diff --git a/images/logo.png b/images/logo.png new file mode 100644 index 0000000..3cf1629 Binary files /dev/null and b/images/logo.png differ