Skip to content

Commit

Permalink
Revert antora branch changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Dec 3, 2024
1 parent 89aaf0f commit 19eab71
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,35 @@ jobs:
LATEST=$(git tag -l | grep 2023.9 | sort | tail -n 1) && \
git checkout ${LATEST} && \
npx typedoc --name "Corteza JS 2023.9" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2023.9 src/api-clients/index.ts
LATEST=$(git tag -l | grep 2023.3 | sort | tail -n 1) && \
git checkout ${LATEST} && \
npx typedoc --name "Corteza JS 2023.3" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2023.3 src/api-clients/index.ts
LATEST=$(git tag -l | grep 2022.9 | sort | tail -n 1) && \
git checkout ${LATEST} && \
npx typedoc --name "Corteza JS 2022.9" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2022.9 src/api-clients/index.ts
LATEST=$(git tag -l | grep 2022.3 | sort | tail -n 1) && \
git checkout ${LATEST} && \
npx typedoc --name "Corteza JS 2022.3" --hideGenerator --skipErrorChecking --out corteza-api-docs/corteza-js/2022.3 src/api-clients/index.ts
- name: Build corteza-server api docs
run: |
cd corteza/server
mkdir -p ../lib/js/corteza-api-docs/corteza-server/{2024.9,2023.9}
mkdir -p ../lib/js/corteza-api-docs/corteza-server/{2024.9,2023.9,2023.3,2022.9,2022.3}
LATEST=$(git tag -l | grep 2024.9 | sort | tail -n 1) && \
git checkout ${LATEST} && \
cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2024.9
LATEST=$(git tag -l | grep 2023.9 | sort | tail -n 1) && \
git checkout ${LATEST} && \
cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2023.9
LATEST=$(git tag -l | grep 2023.3 | sort | tail -n 1) && \
git checkout ${LATEST} && \
cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2023.3
LATEST=$(git tag -l | grep 2022.9 | sort | tail -n 1) && \
git checkout ${LATEST} && \
cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2022.9
LATEST=$(git tag -l | grep 2022.3 | sort | tail -n 1) && \
git checkout ${LATEST} && \
cp -r docs/* ../lib/js/corteza-api-docs/corteza-server/2022.3
- run: docker build --build-arg ALGOLIA_APP_ID="$ALGOLIA_APP_ID" --build-arg ALGOLIA_API_KEY="$ALGOLIA_API_KEY" --build-arg ALGOLIA_INDEX_NAME="$ALGOLIA_INDEX_NAME" -t cortezaproject/corteza-docs:${{ env.BUILD_VERSION }} .
- run: docker push cortezaproject/corteza-docs:${{ env.BUILD_VERSION }}
2 changes: 1 addition & 1 deletion antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ site:
content:
sources:
- url: https://github.com/cortezaproject/corteza-docs
branches: [ 2023.9.x, 2024.9.x ]
branches: [ 2019.12.x, 2020.6.x, 2020.9.x, 2020.12.x, 2021.3.x, 2021.9.x, 2022.3.x, 2022.9.x, 2023.3.x, 2023.9.x, 2024.9.x ]
start_path: src

ui:
Expand Down

0 comments on commit 19eab71

Please sign in to comment.