Skip to content

Commit 13af459

Browse files
committed
Make docs
1 parent b25c5ea commit 13af459

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

Makefile

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR = $(PWD)
44
# Go parameters
55
GOCMD = go
66
GOTEST = $(GOCMD) test -v
7-
7+
[email protected]:dpordomingo/go-git.git
88
# Git config
99
GIT_VERSION ?=
1010
GIT_DIST_PATH ?= $(PWD)/.git-dist
@@ -19,6 +19,30 @@ ifneq ($(origin CI), undefined)
1919
WORKDIR := $(GOPATH)/src/gopkg.in/src-d/go-git.v4
2020
endif
2121

22+
23+
# list of languages to build the documentation for
24+
# example: LANGUAGES = python cpp
25+
LANGUAGES = go
26+
# destination output of the built docs
27+
DESTINATION_FOLDER ?= ./output
28+
# name of the version docs being built
29+
VERSION_NAME ?= $(git name-rev --tags --name-only `git rev-parse HEAD`)
30+
# repository name
31+
REPOSITORY ?= "go-git"
32+
# user or organization who owns the repository
33+
REPOSITORY_OWNER ?= "dpordomingo"
34+
35+
# do not edit this
36+
SHARED_FOLDER ?= /etc/shared
37+
MAKEFILE = Makefile.docs
38+
39+
$(MAKEFILE):
40+
cp "$(SHARED_FOLDER)/ci/Makefile.docs" .;
41+
42+
-include $(MAKEFILE)
43+
44+
45+
2246
build-git:
2347
@if [ -f $(GIT_DIST_PATH)/git ]; then \
2448
echo "nothing to do, using cache $(GIT_DIST_PATH)"; \
@@ -49,4 +73,4 @@ test-coverage:
4973
done; \
5074

5175
clean:
52-
rm -rf $(GIT_DIST_PATH)
76+
rm -rf $(GIT_DIST_PATH)

0 commit comments

Comments
 (0)