Browse Source

Mount ~/.gitconfig when running make docs (#2421)

* Mount ~/.gitconfig when running make docs

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>

* Use GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>

* Update hack/api-docs/requirements.txt

Signed-off-by: Moritz Johner <moolen@users.noreply.github.com>

---------

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>
Signed-off-by: Moritz Johner <moolen@users.noreply.github.com>
Co-authored-by: Moritz Johner <moolen@users.noreply.github.com>
Shuhei Kitagawa 2 years ago
parent
commit
7ca43a7c84
2 changed files with 3 additions and 1 deletions
  1. 2 0
      hack/api-docs/Makefile
  2. 1 1
      hack/api-docs/requirements.txt

+ 2 - 0
hack/api-docs/Makefile

@@ -52,6 +52,8 @@ build: image generate $(SOURCES)
 		--sig-proxy=true \
 		--rm \
 		--user $(UID):$(GID) \
+		--env GIT_COMMITTER_NAME=$(shell git config user.name) \
+		--env GIT_COMMITTER_EMAIL=$(shell git config user.email) \
 		$(MKDOCS_IMAGE) \
 		/bin/bash -c "cd /repo && $(MIKE) deploy --ignore --update-aliases -F hack/api-docs/mkdocs.yml $(DOCS_VERSION) $(DOCS_ALIAS);"
 .PHONY: build.publish

+ 1 - 1
hack/api-docs/requirements.txt

@@ -6,7 +6,7 @@ livereload==2.6.3
 Markdown==3.3.6
 MarkupSafe==2.0.1
 mkdocs==1.4.3
-mike==1.1.2
+mike @ git+https://github.com/jimporter/mike@300593c
 mkdocs-material==9.1.9
 mkdocs-minify-plugin==0.5.0
 pep562==1.1