This is an automated email from the ASF dual-hosted git repository.
young pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git
The following commit(s) were added to refs/heads/master by this push:
new 45775b12c4a fix(scripts): solve ingress document mdx render (#1718)
45775b12c4a is described below
commit 45775b12c4afbd52c6d51e0d3e2abe3cbda04132
Author: Young <[email protected]>
AuthorDate: Tue Oct 31 21:47:23 2023 +0800
fix(scripts): solve ingress document mdx render (#1718)
---
scripts/package.json | 3 ++-
scripts/special-process-v2md.sh | 2 ++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/package.json b/scripts/package.json
index 546e9688c12..48303d57e5d 100644
--- a/scripts/package.json
+++ b/scripts/package.json
@@ -3,6 +3,7 @@
"version": "1.0.0",
"scripts": {
"sync-docs": "node sync-docs.js && sh special-process-v2md.sh",
+ "process-ingress-mdx": "sh special-process-v2md.sh",
"link-checker": "node link-checker.js",
"generate-repos-info": "node generate-repos-info.js",
"update-sitemap": "node update-sitemap-loc.js",
@@ -23,4 +24,4 @@
"remark": "^14.0.2",
"unist-util-visit": "^4.1.0"
}
-}
+}
\ No newline at end of file
diff --git a/scripts/special-process-v2md.sh b/scripts/special-process-v2md.sh
index 836a1bc78e2..ee8dd0c0c82 100644
--- a/scripts/special-process-v2md.sh
+++ b/scripts/special-process-v2md.sh
@@ -6,3 +6,5 @@
BASEDIR=$(dirname $0)/..
sed -i '/<!--\s*markdown-link-check-disable\s*-->/I,+1d;
/<!--\s*markdown-link-check-enable\s*-->/I,+1d;'
$BASEDIR/doc/docs/apisix-ingress-controller/references/v2.mdx
+sed -i '/<!--\s*markdown-link-check-disable\s*-->/I,+1d;
/<!--\s*markdown-link-check-enable\s*-->/I,+1d;'
$BASEDIR/doc/docs-apisix-ingress-controller_versioned_docs/version-1.7.0/references/v2.mdx
+sed -i '/<!--\s*markdown-link-check-disable\s*-->/I,+1d;
/<!--\s*markdown-link-check-enable\s*-->/I,+1d;'
$BASEDIR/doc/docs-apisix-ingress-controller_versioned_docs/version-1.7.0-release/references/v2.mdx