Skip to content

Commit 1984a3f

Browse files
committed
Build docs against the merged website
1 parent 05676d2 commit 1984a3f

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎.github/workflows/docs-website.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ on:
99
inputs:
1010
site_repo:
1111
description: Website repository
12-
default: rois1995/su2code.github.io
12+
default: su2code/su2code.github.io
1313
site_ref:
1414
description: Website commit SHA or branch (use a SHA to reproduce a build)
15-
default: docs/user-guides
15+
default: develop
1616

1717
permissions:
1818
contents: read
@@ -37,8 +37,8 @@ jobs:
3737
- name: Checkout website
3838
uses: actions/checkout@v4
3939
with:
40-
repository: ${{ inputs.site_repo || 'rois1995/su2code.github.io' }}
41-
ref: ${{ inputs.site_ref || 'docs/user-guides' }}
40+
repository: ${{ inputs.site_repo || 'su2code/su2code.github.io' }}
41+
ref: ${{ inputs.site_ref || 'develop' }}
4242
path: site
4343
fetch-depth: 0
4444
filter: blob:none

‎Docs/website/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ For a reproducible rebuild, check out the two recorded SHAs, select the recorded
7373

7474
## CI and publishing
7575

76-
`.github/workflows/docs-website.yml` checks pushes to `docs_site` and `docs/developer-guides`, and pull requests targeting `develop` or `docs_site`. The PR preparation uses website branch `docs/user-guides` by default. Pull requests and pushes to the preparation branch upload checked previews without deploying. Publishing is restricted to `docs_site` runs in `rois1995/SU2`; the workflow does not publish from the official SU2 repository. Checkout references are resolved once; the manifest records the exact revisions used.
76+
`.github/workflows/docs-website.yml` checks pushes to `docs_site` and `docs/developer-guides`, and pull requests targeting `develop` or `docs_site`. It uses the official website's `develop` branch by default. Pull requests and pushes to the preparation branch upload checked previews without deploying. Publishing is restricted to `docs_site` runs in `rois1995/SU2`; the workflow does not publish from the official SU2 repository. Checkout references are resolved once; the manifest records the exact revisions used.
7777

7878
The website repository's `docs-check.yml` checks pushes to `docs_site`, `docs/user-guides` and `docs/naca0021`, and pull requests targeting `develop`, `docs_site` or `docs/user-guides`. It uses SU2 branch `docs/developer-guides` by default and uploads a checked preview. Website-only changes therefore get checks without cross-repository write credentials. After those checks pass, publish from the SU2 **Docs Website** workflow, choosing the website commit SHA as `site_ref`:
7979

@@ -83,4 +83,4 @@ gh workflow run docs-website.yml --repo rois1995/SU2 --ref docs_site -f site_rep
8383

8484
To reproduce a historical deployment, select its SU2 revision as well. Normal branch builds follow the current website branch; use a commit SHA when reviewing or reproducing a particular pair of changes. Changes to workflow files require GitHub credentials allowed to update workflows; ordinary repository-only OAuth scopes may reject them.
8585

86-
The paired sources currently use the `rois1995` forks. Publish both preparation branches to the forks before relying on their combined checks; a run started before the other branch is available may need to be repeated. Official website publishing remains a separate integration decision. Do not push these development branches directly to the official repositories.
86+
For fork previews, select the website repository and commit explicitly when needed. Official website publishing remains a separate integration decision. Do not push preparation branches directly to the official repositories.

0 commit comments

Comments
 (0)