Skip to content

Commit

Permalink
feat: fix Readme and assets
Browse files Browse the repository at this point in the history
  • Loading branch information
DecFox committed Jul 5, 2024
1 parent c5a39e2 commit 5977920
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- name: Update docs
run: |
mkdir -p ooni-docs/src/content/docs/probe-engine/
cp -R dist/docs/img/* ooni-docs/src/assets/
mkdir -p ooni-docs/src/assets/images-probe-engine/
cp -R dist/docs/img/* ooni-docs/src/assets/images-probe-engine/
rm -r dist/docs/img
cp -R dist/docs/* ooni-docs/src/content/docs/probe-engine/
Expand Down
6 changes: 4 additions & 2 deletions script/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ description: OONI Probe Engine documentation
slug: probe-engine
---
EOF
strip_title README.md >> $DOCS_ROOT/00-index.md
strip_title Readme.md >> $DOCS_ROOT/00-index.md
mkdir -p $DOCS_ROOT/img
cp docs/logo.png $DOCS_ROOT/img/
sed -i 's+docs/logo.png+../../../assets/images-probe-engine/logo.png' $DOC_PATH
# design docs
BASE_PATH=docs/design
Expand Down Expand Up @@ -79,7 +82,6 @@ slug: probe-engine/design/step-by-step
---
EOF
strip_title $BASE_PATH/dd-003-step-by-step.md >> $DOC_PATH
mkdir -p $DOCS_ROOT/img
cp -R $BASE_PATH/img/* $DOCS_ROOT/img/
sed -i 's+img/git-probe-cli-netx-deps.png+../../../assets/images-probe-engine/git-probe-cli-netx-deps.png+' $DOC_PATH
sed -i 's+img/git-probe-cli-change-histogram.png+../../../assets/images-probe-engine/git-probe-cli-change-histogram.png+' $DOC_PATH
Expand Down

0 comments on commit 5977920

Please sign in to comment.