From 030538871d8c797fc9aeb3afd9b4e96fa461a832 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Tue, 3 Mar 2020 23:34:32 +0100 Subject: [PATCH] Fix `make site-docs` --- Makefile | 3 +-- cmd/gen-docs/main.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3b8aba5ea..5a93dac9b 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ test: .PHONY: test site: - git worktree add site gh-pages + git clone https://github.com/github/cli.github.com.git "$@" site-docs: site git -C site pull @@ -33,5 +33,4 @@ site-docs: site rm -f site/manual/*.bak git -C site add 'manual/gh*.md' git -C site commit -m 'update help docs' - git -C site push .PHONY: site-docs diff --git a/cmd/gen-docs/main.go b/cmd/gen-docs/main.go index 5369d9670..6607054a9 100644 --- a/cmd/gen-docs/main.go +++ b/cmd/gen-docs/main.go @@ -28,7 +28,7 @@ func main() { func filePrepender(filename string) string { return `--- -layout: page +layout: manual permalink: /:path/:basename ---