You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by yo...@apache.org on 2023/02/01 10:45:40 UTC
[apisix-website] branch master updated: feat: special process ingress v2md (#1490)
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 ee493358227 feat: special process ingress v2md (#1490)
ee493358227 is described below
commit ee4933582270c38dd022f9965f975f86a0c5908b
Author: Young <is...@outlook.com>
AuthorDate: Wed Feb 1 18:45:35 2023 +0800
feat: special process ingress v2md (#1490)
fix https://github.com/apache/apisix-ingress-controller/pull/1638
---
scripts/package.json | 2 +-
scripts/special-process-v2md.sh | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/scripts/package.json b/scripts/package.json
index 305de92f7ec..5e723a95f3b 100644
--- a/scripts/package.json
+++ b/scripts/package.json
@@ -2,7 +2,7 @@
"name": "scripts",
"version": "1.0.0",
"scripts": {
- "sync-docs": "node sync-docs.js",
+ "sync-docs": "node sync-docs.js && 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",
diff --git a/scripts/special-process-v2md.sh b/scripts/special-process-v2md.sh
new file mode 100644
index 00000000000..836a1bc78e2
--- /dev/null
+++ b/scripts/special-process-v2md.sh
@@ -0,0 +1,8 @@
+#!/usr/bin/env sh
+# remove <!--\s*markdown-link-check-disable\s*--> and <!--\s*markdown-link-check-enable\s*-->
+# in /apisix-ingress-controller/references/v2.mdx
+# after synced docs
+
+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