Skip to content

Commit 0984047

Browse files
committed
Fix kroxylicious#1954: Generate asciidoc entrypoint file for kroxylicious-proxy book.
The way the release works right now, we need to generate a asciidoc entrypoint file. As we've split out kroxylicious-proxy into a separate book, we need this entrypoint point file to allow the plugin to serve the content. Signed-off-by: Keith Wall <[email protected]>
1 parent 6a03f7a commit 0984047

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/stage-docs.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ include::_files/index.adoc[leveloffset=0]
133133
"
134134
echo "${RELEASE_DOCS_INDEX_TEMPLATE}" > "${WEBSITE_DOCS_LOCATION}/index.adoc"
135135

136+
echo "Creating AsciiDoc entrypoint file at ${WEBSITE_DOCS_LOCATION}/kroxylicious-proxy/index.adoc"
137+
RELEASE_DOCS_INDEX_TEMPLATE="---
138+
title: Kroxylicious Proxy ${RELEASE_TAG}
139+
---
140+
141+
include::../_files/kroxylicious-proxy/index.adoc[leveloffset=0]
142+
"
143+
echo "${RELEASE_DOCS_INDEX_TEMPLATE}" > "${WEBSITE_DOCS_LOCATION}/kroxylicious-proxy/index.adoc"
144+
136145
echo "Update _data/kroxylicious.yml to add new version to website navigation"
137146
match="url: '\/kroxylicious'"
138147
insert=" - title: '${RELEASE_TAG}'\n url: '\/docs\/${RELEASE_TAG}\/'"

0 commit comments

Comments
 (0)