mirror of
https://github.com/kopia/kopia.git
synced 2026-02-02 18:54:15 -05:00
This is enabled by `kopia server --ui` and can be viewed in a browser at http://localhost:51515/ Right now it can only list snapshots and policies (barely).
25 lines
655 B
Makefile
25 lines
655 B
Makefile
# don't put tools under current directory, otherwise 'make server' fails because there are too
|
|
# many open files due to 'node_modules'
|
|
WATCH=true
|
|
|
|
all: build
|
|
|
|
include ../tools/tools.mk
|
|
|
|
build: gen-cli-reference-pages $(HUGO_TOOL) node_modules
|
|
PATH=$(TOOL_PATH) $(HUGO_TOOL)
|
|
|
|
server: $(HUGO_TOOL)
|
|
PATH=$(TOOL_PATH) $(HUGO_TOOL) server --watch=$(WATCH)
|
|
|
|
node_modules: $(NPM_TOOL)
|
|
PATH=$(TOOL_PATH) $(NPM_TOOL) install
|
|
|
|
clean:
|
|
rm -rf public/ resources/ node_modules/ $(TOOLS_DIR)/
|
|
|
|
gen-cli-reference-pages:
|
|
rm -rf content/docs/Reference/Command-Line/Advanced
|
|
rm -rf content/docs/Reference/Command-Line/Common
|
|
go run github.com/kopia/kopia/site/cli2md
|