Skip to content

Commit fef430b

Browse files
Copilothakman
andauthored
Fix Netlify build failure from template syntax error and PATH issues in documentation (#17767)
* Initial plan * Fix Netlify build by escaping Go template syntax in scaleway.md Co-authored-by: hakman <[email protected]> * Fix Netlify strict mode build by removing missing canal.md reference and excluding conflicting README.md Co-authored-by: hakman <[email protected]> * Simplify exclude_docs syntax in mkdocs.yml Co-authored-by: hakman <[email protected]> * Fix mkdocs command not found in Netlify by using python -m mkdocs Co-authored-by: hakman <[email protected]> * Revert exclude_docs change from mkdocs.yml Co-authored-by: hakman <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hakman <[email protected]>
1 parent b2c1a9e commit fef430b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ build-docs:
609609
.PHONY: build-docs-netlify
610610
build-docs-netlify:
611611
pip install -r ${KOPS_ROOT}/images/mkdocs/requirements.txt
612-
mkdocs build
612+
python -m mkdocs build
613613

614614
#-----------------------------------------------------------
615615
# development targets

docs/getting_started/scaleway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ for SERVER in "${TF_SERVERS[@]}"; do
160160
# We remove the stale instance from the state
161161
terraform state rm scaleway_instance_server.$SERVER
162162
# We fetch its new ID
163-
NEW_SERVER_ID=$(scw instance server list zone=$ZONE name=$SERVER -o template="{{ .ID }}")
163+
NEW_SERVER_ID=$(scw instance server list zone=$ZONE name=$SERVER -o template="{% raw %}{{ .ID }}{% endraw %}")
164164
if [ "$NEW_SERVER_ID" == "" ]; then
165165
echo "could not find new ID of the server $SERVER"
166166
fi

mkdocs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ nav:
123123
- CNI:
124124
- AWS VPC: "networking/aws-vpc.md"
125125
- Calico: "networking/calico.md"
126-
- Canal: "networking/canal.md"
127126
- Cilium: "networking/cilium.md"
128127
- Flannel: "networking/flannel.md"
129128
- Kube-Router: "networking/kube-router.md"

0 commit comments

Comments
 (0)