forked from openwallet-foundation/acapy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/w3c-implementation' into kene-feat/w3c-implementation
Signed-off-by: Orjiene Kenechukwu <[email protected]>
- Loading branch information
Showing
70 changed files
with
1,939 additions
and
527 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: publish-docs | ||
|
||
on: | ||
push: | ||
# Publish `main` as latest, and when pushes are done to branches with "v-doc" prefix | ||
branches: | ||
- main | ||
- docs-v* | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # fetch all commits/branches | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: actions/cache@v4 | ||
with: | ||
key: ${{ github.ref }} | ||
path: .cache | ||
- name: Install Python dependencies | ||
run: pip install -r ./mkdocs-requirements.txt | ||
- name: Configure git user | ||
run: | | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
- name: Deploy docs | ||
run: | | ||
# Strip git ref prefix from version | ||
echo "${{ github.ref }}" | ||
# Extract the version and if it is in `docs-v` form, strip that off the version | ||
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,' -e 's/^docs-v//') | ||
# Copy all of the root level md files into the docs folder for deployment, tweaking the relative paths | ||
for i in *.md; do sed -e "s#docs/#./#g" $i >docs/$i; done | ||
# Fix references in DevReadMe.md to moved files | ||
sed -e "s#\.\./\.\./#../#" docs/features/DevReadMe.md >tmp.md; mv tmp.md docs/features/DevReadMe.md | ||
# Populate overrides for the current version, and then remove to not apply if VERSION is main branch | ||
OVERRIDE=overrides/main.html | ||
echo -e "{% extends \"base.html\" %}\n\n{% block outdated %}\n You are viewing the documentation for ACA-Py Release $ALIAS.\n{% endblock %}" >$OVERRIDE | ||
# If building from main, use latest as ALIAS and remove the override | ||
[ "$VERSION" == "main" ] && ALIAS=latest && rm $OVERRIDE | ||
echo $VERSION $ALIAS | ||
mike deploy --push --update-aliases $VERSION $ALIAS | ||
mike set-default latest |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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
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
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
Oops, something went wrong.