Skip to content

Commit

Permalink
Upload documentation and add links
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryk committed Sep 12, 2024
1 parent c75626c commit 6a815a5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/gh-pages-pr-remove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ jobs:
run: |
rm -rf ${{ env.ROOT_DIR }}/html/dev/${{ steps.PR.outputs.number }}
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 }}
- name: Add redirect index page
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/publish-webpage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ jobs:
- name: Update webpage
if: github.event_name != 'pull_request'
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
- 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 }}
- name: Add redirect index page
Expand Down
2 changes: 1 addition & 1 deletion tools/SiteSpawner/template/webpage/dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
{%- for branch in branches %}
* {{ branch }}
* [Coverage]({{ branch }}_coverage_dashboard)
<!-- * [Documentation](external:dev/{{ branch }}/docs_rendered/html/index.html) -->
* [Documentation](external:dev/{{ branch }}/docs_rendered/html/index.html)
{%- endfor %}
2 changes: 1 addition & 1 deletion tools/SiteSpawner/template/webpage/main.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Main branch

* [Coverage](main_coverage_dashboard)
<!-- * [Documentation](external:main/docs_rendered/html/index.html) -->
* [Documentation](external:main/docs_rendered/html/index.html)

0 comments on commit 6a815a5

Please sign in to comment.