Skip to content

Commit

Permalink
chore(docs): fix build, prepare for google analytics v4 (argoproj#10850
Browse files Browse the repository at this point in the history
…) (argoproj#11248)

* fix docs build. prepare for google analytics v4

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

* fix build

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

* fix build codegen check

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>

Signed-off-by: Alex Eftimie <alex.eftimie@getyourguide.com>
Signed-off-by: emirot <emirot.nolan@gmail.com>
  • Loading branch information
alexef authored and emirot committed Jan 27, 2023
1 parent 99bb8c8 commit 5dc0266
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -512,15 +512,15 @@ build-docs-local:

.PHONY: build-docs
build-docs:
docker run ${MKDOCS_RUN_ARGS} --rm -it -p 8000:8000 -v ${CURRENT_DIR}:/docs ${MKDOCS_DOCKER_IMAGE} build
docker run ${MKDOCS_RUN_ARGS} --rm -it -v ${CURRENT_DIR}:/docs --entrypoint "" ${MKDOCS_DOCKER_IMAGE} sh -c 'pip install -r docs/requirements.txt; mkdocs build'

.PHONY: serve-docs-local
serve-docs-local:
mkdocs serve

.PHONY: serve-docs
serve-docs:
docker run ${MKDOCS_RUN_ARGS} --rm -it -p 8000:8000 -v ${CURRENT_DIR}:/docs ${MKDOCS_DOCKER_IMAGE} serve -a 0.0.0.0:8000
docker run ${MKDOCS_RUN_ARGS} --rm -it -p 8000:8000 -v ${CURRENT_DIR}/site:/site -w /site --entrypoint "" ${MKDOCS_DOCKER_IMAGE} python3 -m http.server --bind 0.0.0.0 8000


# Verify that kubectl can connect to your K8s cluster from Docker
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mkdocs==1.2.3
mkdocs-material==7.1.7
mkdocs-material==7.1.8
markdown_include==0.6.0
pygments==2.7.4
jinja2==3.0.3
Expand Down
7 changes: 4 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
extra:
analytics:
property: UA-105170809-2
provider: google
extra_css:
- assets/versions.css
extra_javascript:
- assets/versions.js
google_analytics:
- UA-105170809-2
- auto
markdown_extensions:
- markdown_include.include
- codehilite
Expand Down

0 comments on commit 5dc0266

Please sign in to comment.