Skip to content

Commit

Permalink
modifies workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
r-akemii committed Nov 21, 2024
1 parent e93d918 commit c7cec34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,18 @@ jobs:
SOURCE_DIR: 'docs/build/htmlv/' # optional: defaults to entire repository
DEST_DIR: 'latest/' # optional: defaults to entire repository

- name: Upload to dev/python on S3
if: ${{ (github.event_name == 'pull_request') && (env.HAS_SECRETS == 'true') }}
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'docs/build/html/python/' # optional: defaults to entire repository
DEST_DIR: 'test/${{ github.event.number }}/python/' # optional: defaults to entire repository
# - name: Upload to dev/python on S3
# if: ${{ (github.event_name == 'pull_request') && (env.HAS_SECRETS == 'true') }}
# uses: jakejarvis/s3-sync-action@master
# with:
# args: --acl public-read --follow-symlinks --delete
# env:
# AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
# SOURCE_DIR: 'docs/build/html/python/' # optional: defaults to entire repository
# DEST_DIR: 'test/${{ github.event.number }}/python/' # optional: defaults to entire repository

- name: Upload to dev/home on S3
if: ${{ (github.event_name == 'pull_request') && (env.HAS_SECRETS == 'true') }}
Expand All @@ -169,4 +169,4 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'docs/build/html/' # optional: defaults to entire repository
DEST_DIR: 'test/${{ github.event.number }}/' # optional: defaults to entire repository
DEST_DIR: 'test/' # optional: defaults to entire repository
6 changes: 3 additions & 3 deletions docs/source/_templates/navigation_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<ul id="pst-nav-more-links" class="dropdown-menu" data-bs-popper="static">
<li class=" ">
<a class="nav-link dropdown-item nav-internal"
href="https://www.aequilibrae.com/test/python.html">
href="https://www.aequilibrae.com/test/python/python.html">
Main menu
</a>
</li>
Expand All @@ -33,7 +33,7 @@
</ul>
</li>
<li class="nav-item" id="index-nav-item" style="display: none;">
<a class="nav-link" href="https://www.aequilibrae.com/test/python.html">Python</a>
<a class="nav-link" href="https://www.aequilibrae.com/test/python/python.html">Python</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://www.aequilibrae.com/qgis">QGIS</a>
Expand All @@ -43,7 +43,7 @@

<script>
document.addEventListener("DOMContentLoaded", function () {
const isIndex = window.location.pathname.endsWith("aequilibrae.html");
const isIndex = window.location.pathname.endsWith("home.html");
if (isIndex) {
document.getElementById("index-nav-item").style.display = "block";
} else {
Expand Down

0 comments on commit c7cec34

Please sign in to comment.