This is an automated email from the ASF dual-hosted git repository.
juzhiyuan 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 943e566 fix(doc): copy images to static files (#85)
943e566 is described below
commit 943e5663fedc863a24e3d42c165bb33e315189f9
Author: 琚致远 <[email protected]>
AuthorDate: Wed Nov 11 10:40:15 2020 +0800
fix(doc): copy images to static files (#85)
* fix(doc): copy images to static files
* fix: update images' link
* feat: update checker
* feat: update link
---
.github/workflows/deploy.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 0b9acb5..501bc95 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -20,10 +20,14 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
access it
- uses: actions/checkout@v2
- - name: Clone apisix's docs from repo
+ - name: Clone apisix's docs from repo & update image's link
run: |
git clone https://github.com/apache/apisix.git
+ cp -r apisix/doc/images ./website/static && rm -rf apisix/doc/images
cp -r apisix/doc ./docs/apisix
+ cd ./docs/apisix
+ find . -type f -name "*.md" -print0 | xargs -0 sed -i '' -e
's/\.\.\/images/https\:\/\/apisix\.apache\.org\/images/g'
+ find . -type f -name "*.md" -print0 | xargs -0 sed -i '' -e
's/\.\/images/https\:\/\/apisix\.apache\.org\/images/g'
- name: Build
run: cd website && yarn && yarn build