-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start working on fixing image paths (#1635)
This diff moves assets used in docs to `src/assets` in `ooni/docs` and also replaces the doc references in markdown files to the appropriate location. --------- Co-authored-by: decfox <[email protected]> Co-authored-by: decfox <[email protected]>
- Loading branch information
1 parent
bb1017a
commit e41f245
Showing
3 changed files
with
17 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,9 @@ jobs: | |
- name: Update docs | ||
run: | | ||
mkdir -p ooni-docs/src/content/docs/probe-engine/ | ||
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/ | ||
- name: Check for conflicting slugs | ||
|
@@ -36,6 +39,9 @@ jobs: | |
- name: Print the lines of the generated docs | ||
run: wc -l ooni-docs/src/content/docs/probe-engine/* | ||
|
||
- name: Print assets used in docs | ||
run: ls ooni-docs/src/assets | ||
|
||
- name: Commit changes | ||
# Only push the docs update when we are in master | ||
if: github.ref == 'refs/heads/master' | ||
|
@@ -44,5 +50,5 @@ jobs: | |
git config --global user.email "[email protected]" | ||
git config --global user.name "OONI Github Actions Bot" | ||
git add . | ||
git commit -m "auto: update backend docs to ${{ steps.rev_parse.outputs.COMMIT_HASH }}" || echo "No changes to commit" | ||
git commit -m "auto: update probe-engine docs to ${{ steps.rev_parse.outputs.COMMIT_HASH }}" || echo "No changes to commit" | ||
git push origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ | |
/probe-cli.cov | ||
/tinyjafar | ||
/tmp-* | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters