diff --git a/.github/workflows/gradle-wrapper-validation.yml b/.github/workflows/gradle-wrapper-validation.yml new file mode 100644 index 0000000..46d709f --- /dev/null +++ b/.github/workflows/gradle-wrapper-validation.yml @@ -0,0 +1,29 @@ +name: Gradle Wrapper validation + +# `migrate` distributes this workflow only to Hugo-only repositories that carry a +# Gradle Wrapper. They keep the wrapper merely to run Hugo through Gradle tasks, and +# none of their workflows sets Gradle up through `gradle/actions/setup-gradle`, so +# nothing else checks that the wrapper JAR is genuine. A JVM repository does not +# receive it: `setup-gradle`, used by every workflow that runs Gradle there, +# validates the wrapper itself. +on: + push: + branches: + - master + pull_request: + branches: + - '**' + +permissions: + contents: read + +jobs: + validation: + name: Validate Gradle Wrapper + runs-on: ubuntu-latest + steps: + - name: Checkout latest code + uses: actions/checkout@v6 + + - name: Validate Gradle Wrapper + uses: gradle/actions/wrapper-validation@v6 diff --git a/SPINE_RELEASE.md b/SPINE_RELEASE.md index 372a68e..3742bce 100644 --- a/SPINE_RELEASE.md +++ b/SPINE_RELEASE.md @@ -156,6 +156,18 @@ versioned folder and configured via `module.mounts`. item_visible: false ``` +3. If you moved the content in step 1, update `docs-path` in + `docs/_settings/v1.embed-code.yml`, the code embedding config for version 1, + so that it follows the moved content: + + ```yml + code-path: "../_code" + docs-path: "../content/docs/1" # Change the path from `../content/docs` to `../content/docs/1`. + ``` + + The `checkSamples` and `embedCode` Gradle tasks read this file and fail + if `docs-path` points to a folder that does not exist. + Now version 2 will be available at the `https://spine.io/docs/` URL. Get updates into the main website: diff --git a/config b/config index 3210ca6..94a9e08 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit 3210ca6cc05c77ee59961721cf5c1c08327aa86b +Subproject commit 94a9e08b70625d251dc3ecc0b7241d557a4b9586 diff --git a/docs/_bin/embed-code-macos b/docs/_bin/embed-code-macos index 6ff4302..f12e8a0 100755 Binary files a/docs/_bin/embed-code-macos and b/docs/_bin/embed-code-macos differ diff --git a/docs/_bin/embed-code-macos-x86_64 b/docs/_bin/embed-code-macos-x86_64 index 545abc6..2a6276c 100755 Binary files a/docs/_bin/embed-code-macos-x86_64 and b/docs/_bin/embed-code-macos-x86_64 differ diff --git a/docs/_bin/embed-code-ubuntu b/docs/_bin/embed-code-ubuntu index fb0125c..e68cae0 100755 Binary files a/docs/_bin/embed-code-ubuntu and b/docs/_bin/embed-code-ubuntu differ diff --git a/docs/_bin/embed-code-windows.exe b/docs/_bin/embed-code-windows.exe new file mode 100755 index 0000000..d561a3e Binary files /dev/null and b/docs/_bin/embed-code-windows.exe differ diff --git a/docs/_settings/v1.embed-code.yml b/docs/_settings/v1.embed-code.yml index 09c5480..f1c1c5a 100644 --- a/docs/_settings/v1.embed-code.yml +++ b/docs/_settings/v1.embed-code.yml @@ -1,5 +1,2 @@ code-path: "../_code" -docs-path: "../content/docs/1" -embed-mappings: - - code-path: "../_code" - docs-path: "../content/docs/1" +docs-path: "../content/docs" diff --git a/docs/assets/js/docs/architecture-diagram.js b/docs/assets/js/docs/architecture-diagram.js index d2cb437..faa5108 100644 --- a/docs/assets/js/docs/architecture-diagram.js +++ b/docs/assets/js/docs/architecture-diagram.js @@ -15,7 +15,7 @@ /** * This is a JavaScript file that backs the Spine architecture diagram. * - * Please see `/docs/1/introduction/architecture.md` for usage. + * Please see `/docs/introduction/architecture.md` for usage. */ $(