forked from keptn/lifecycle-toolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update HtmlTest and API docs generator for new docs page (keptn…
…#2651) Signed-off-by: Arya Soni <[email protected]>
- Loading branch information
1 parent
081889d
commit cdf7b7e
Showing
31 changed files
with
173 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
.github/scripts/generate-crd-docs/templates/index-template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
--- | ||
title: $API_GROUP API | ||
description: Reference information about the $API_GROUP API | ||
--- | ||
# $API_GROUP API | ||
|
||
Reference information about the $API_GROUP API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
bin/ | ||
site/ | ||
.cache/ | ||
tmp/ | ||
|
||
# Binaries for programs and plugins | ||
*.exe | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
CheckDoctype: false | ||
IgnoreDirectoryMissingTrailingSlash: true | ||
IgnoreDirs: | ||
- favicons | ||
- community/ | ||
IgnoreURLs: | ||
- "linkedin.com" | ||
- "localhost" | ||
- "twitter.com" | ||
- "fonts.gstatic.com" | ||
- "github.com/keptn/lifecycle-toolkit/edit/main/docs-new" | ||
StripQueryString: false | ||
OutputDir: /tmp/.htmltest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
|
||
# renovate: datasource=docker depName=squidfunk/mkdocs-material | ||
MKDOCS_DOCKER_IMAGE_VERSION=9.5.1 | ||
MKDOCS_DOCKER_IMAGE=squidfunk/mkdocs-material | ||
|
||
INTERACTIVE:=$(shell [ -t 0 ] && echo 1) | ||
PORT := 8000 | ||
|
||
DOCKER_CMD := docker run --rm $(INTERACTIVE_FLAG) | ||
|
||
ifdef INTERACTIVE | ||
# is a terminal | ||
INTERACTIVE_FLAG := -it | ||
else | ||
INTERACTIVE_FLAG := -t | ||
endif | ||
|
||
PWD=$(shell pwd) | ||
|
||
.PHONY: docs-build | ||
docs-build: | ||
$(DOCKER_CMD) -v ${PWD}/docs-new:/docs-new \ | ||
-v ${PWD}/mkdocs.yml:/mkdocs.yml \ | ||
-v ${PWD}/requirements.txt:/requirements.txt \ | ||
-v ${PWD}/site:/site \ | ||
-v ${PWD}/.git:/.git \ | ||
--entrypoint "" \ | ||
${MKDOCS_DOCKER_IMAGE}:${MKDOCS_DOCKER_IMAGE_VERSION} \ | ||
sh -c 'cd /; pip install -r requirements.txt -q; mkdocs build' | ||
|
||
.PHONY: docs-serve | ||
docs-serve: | ||
$(DOCKER_CMD) -p $(PORT):$(PORT) \ | ||
-v ${PWD}/docs-new:/docs-new \ | ||
-v ${PWD}/mkdocs.yml:/mkdocs.yml \ | ||
-v ${PWD}/requirements.txt:/requirements.txt \ | ||
-v ${PWD}/site:/site \ | ||
-v ${PWD}/.git:/.git \ | ||
--entrypoint "" \ | ||
${MKDOCS_DOCKER_IMAGE}:${MKDOCS_DOCKER_IMAGE_VERSION} \ | ||
sh -c 'cd /; pip install -r requirements.txt -q; mkdocs serve -a 0.0.0.0:$(PORT)' | ||
|
||
.PHONY: htmltest | ||
|
||
# renovate: datasource=docker depName=wjdp/htmltest | ||
HTMLTEST_VERSION := v0.17.0 | ||
htmltest: docs-build | ||
$(DOCKER_CMD) \ | ||
-v $(PWD)/docs-new/.htmltest.yml:/.htmltest.yml \ | ||
-v ${PWD}/site:/site \ | ||
-v ${PWD}/tmp/.htmltest:/tmp/.htmltest \ | ||
wjdp/htmltest:$(HTMLTEST_VERSION) -c /.htmltest.yml /site | ||
|
||
.PHONY: lint lint-fix | ||
lint: markdownlint | ||
lint: lint-fix | ||
|
||
# Markdown lint configuration | ||
# | ||
# - .markdownlintignore holds the configuration for files to be ignored | ||
# - .markdownlint.yaml contains the rules for markdownfiles | ||
# renovate: datasource=docker depName=davidanson/markdownlint-cli2-rules | ||
MDL_DOCKER_VERSION := v0.11.0 | ||
MDL_CMD := docker run -v $(ROOT_DIR)../:/workdir --rm | ||
|
||
.PHONY: markdownlint markdownlint-fix | ||
markdownlint: | ||
$(MDL_CMD) davidanson/markdownlint-cli2-rules:${MDL_DOCKER_VERSION} "**/*.md" | ||
|
||
markdownlint-fix: | ||
$(MDL_CMD) --entrypoint="markdownlint-cli2-fix" davidanson/markdownlint-cli2-rules:${MDL_DOCKER_VERSION} "**/*.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.