-
Notifications
You must be signed in to change notification settings - Fork 472
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broken links in docusaurus docs (#6232)
- Loading branch information
Showing
6 changed files
with
52 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# This workflow builds and publishes the Docusaurus site to: | ||
# https://intersectmbo.github.io/plutus/docs | ||
|
||
name: "🦕 Docusaurus Site" | ||
name: "🦕 Deploy Docusaurus Site" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
deploy: | ||
name: Deploy | ||
runs-on: [self-hosted, plutus-shared] | ||
permissions: | ||
contents: write | ||
|
@@ -20,7 +20,7 @@ jobs: | |
|
||
- name: Build Site | ||
working-directory: doc/docusaurus | ||
run: nix develop --command bash -c 'yarn && yarn build' | ||
run: nix develop --accept-flake-config --command bash -c 'yarn && yarn build' | ||
|
||
- name: Deploy Site | ||
uses: JamesIves/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,31 +3,38 @@ | |
# And optionally to: | ||
# https://intersectmbo.github.io/plutus/haddock/latest | ||
|
||
name: "📜 Haddock Site" | ||
name: "📜 Deploy Haddock Site" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
ref: | ||
description: | | ||
The release version tag. For example if $version == "1.29.0.0" then the | ||
current contents of the branch tagged "1.29.0.0" will be deployed to: | ||
https://intersectmbo.github.io/plutus/haddock/$version | ||
The $ref to build off of, e.g. "1.29.0.0", "master", or any other valid git ref. | ||
When making a release, this is usually the version tag, e.g. "1.29.0.0", and will be | ||
equal to the $destination input below. When back-porting this could be a commit sha instead. | ||
required: true | ||
type: string | ||
|
||
destination: | ||
description: | | ||
The $destination folder, e.g. when "1.29.0.0" the haddock will be deploy to: | ||
https://intersectmbo.github.io/plutus/haddock/1.29.0.0 | ||
required: true | ||
type: string | ||
|
||
latest: | ||
description: | | ||
If true, then the $version branch will also be deployed to: | ||
If true, then the haddock site will also be deploy to: | ||
https://intersectmbo.github.io/plutus/haddock/latest. | ||
You want to leave this to true unless you are deploying old versions. | ||
You want to leave this to true unless you are deploying old versions or back-porting. | ||
type: boolean | ||
required: true | ||
default: true | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
deploy: | ||
name: Deploy | ||
runs-on: [self-hosted, plutus-shared] | ||
permissions: | ||
contents: write | ||
|
@@ -37,17 +44,17 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
ref: ${{ inputs.version }} | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Build Site | ||
run: | | ||
nix develop --command ./scripts/combined-haddock.sh _haddock all | ||
nix develop --accept-flake-config --command ./scripts/combined-haddock.sh _haddock all | ||
- name: Deploy Site | ||
uses: JamesIves/[email protected] | ||
with: | ||
folder: _haddock | ||
target-folder: haddock/${{ inputs.version }} | ||
target-folder: haddock/${{ inputs.destination }} | ||
single-commit: true | ||
|
||
- name: Deploy Site (latest) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,31 +4,38 @@ | |
# Optionally the $version branch can also be deployed to: | ||
# https://intersectmbo.github.io/plutus/metatheory/latest | ||
|
||
name: "🔮 Metatheory Site" | ||
name: "🔮 Deploy Metatheory Site" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
ref: | ||
description: | | ||
The release version tag. For example if $version == "1.29.0.0" then the | ||
current contents of the branch tagged "1.29.0.0" will be deployed to: | ||
https://intersectmbo.github.io/plutus/metatheory/$version | ||
The $ref to build off of, e.g. "1.29.0.0", "master", or any other valid git ref. | ||
When making a release, this is usually the version tag, e.g. "1.29.0.0", and will be | ||
equal to the $destination input below. When back-porting this could be a commit sha instead. | ||
required: true | ||
type: string | ||
|
||
destination: | ||
description: | | ||
The $destination folder, e.g. when "1.29.0.0" the metatheory will be deploy to: | ||
https://intersectmbo.github.io/plutus/metatheory/1.29.0.0 | ||
required: true | ||
type: string | ||
|
||
latest: | ||
description: | | ||
If true, then the $version branch will also be deployed to: | ||
If true, then the metatheory site will also be deploy to: | ||
https://intersectmbo.github.io/plutus/metatheory/latest. | ||
You want to leave this to true unless you are deploying old versions. | ||
You want to leave this to true unless you are deploying old versions or back-porting. | ||
type: boolean | ||
required: true | ||
default: true | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
deploy: | ||
name: Deploy | ||
runs-on: [self-hosted, plutus-shared] | ||
permissions: | ||
contents: write | ||
|
@@ -38,7 +45,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@main | ||
with: | ||
ref: ${{ inputs.version }} | ||
ref: ${{ inputs.ref }} | ||
|
||
- name: Build Site | ||
run: | | ||
|
@@ -50,7 +57,7 @@ jobs: | |
uses: JamesIves/[email protected] | ||
with: | ||
folder: _site | ||
target-folder: metatheory/${{ inputs.version }} | ||
target-folder: metatheory/${{ inputs.destination }} | ||
single-commit: true | ||
|
||
- name: Deploy Latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters