Skip to content

Commit

Permalink
Pass project name to doc generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryk committed Sep 13, 2024
1 parent a01e747 commit 60b2969
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/gh-pages-pr-remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ jobs:
rm -rf ${{ env.ROOT_DIR }}/doctrees/dev/${{ steps.PR.outputs.number }}
mkdir -p public.new/html/dev/${{ steps.PR.outputs.number }}/docs_rendered
cp -arf ./docs_rendered/* public.new/html/dev/${{ steps.PR.outputs.number }}/docs_rendered
sis -d webpage --loc-github-ref-name ${{ github.ref_name }} --loc-github-event-name ${{ github.event_name }} --pr-number ${{ steps.PR.outputs.number }}
sis -d webpage \
--src-project-name "Cores VeeR EL2" \
--doc-project-name "Cores VeeR EL2" \
--loc-github-ref-name ${{ github.ref_name }} \
--loc-github-event-name ${{ github.event_name }} \
--pr-number ${{ steps.PR.outputs.number }}
- name: Add redirect index page
run: |
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/publish-webpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,24 @@ jobs:
run: |
mkdir -p public.new/html/main/docs_rendered
cp -arf ./docs_rendered/* public.new/html/main/docs_rendered
sis -d webpage --loc-github-ref-name ${{ github.ref_name }} --loc-github-event-name ${{ github.event_name }} --pr-number 0
sis -d webpage \
--src-project-name "Cores VeeR EL2" \
--doc-project-name "Cores VeeR EL2" \
--loc-github-ref-name ${{ github.ref_name }} \
--loc-github-event-name ${{ github.event_name }} \
--pr-number 0
- name: Update webpage PR
if: github.event_name == 'pull_request'
run: |
mkdir -p public.new/html/dev/${{ github.event.number }}/docs_rendered
cp -arf ./docs_rendered/* public.new/html/dev/${{ github.event.number }}/docs_rendered
sis -d webpage --loc-github-ref-name ${{ github.ref_name }} --loc-github-event-name ${{ github.event_name }} --pr-number ${{ github.event.number }}
sis -d webpage \
--src-project-name "Cores VeeR EL2" \
--doc-project-name "Cores VeeR EL2" \
--loc-github-ref-name ${{ github.ref_name }} \
--loc-github-event-name ${{ github.event_name }} \
--pr-number ${{ github.event.number }}
- name: Add redirect index page
run: |
Expand Down

0 comments on commit 60b2969

Please sign in to comment.