Files
kopia/site/Makefile
Jarek Kowalski e8a1eaa9ee htmlui: added experimental HTML-based UI
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).
2019-11-20 14:41:38 -08:00

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