Skip to content

Commit

Permalink
Fix haddock documentation for cardano-constitution (#6284)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored Jul 5, 2024
1 parent e5c0e76 commit 7a24d97
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cardano-constitution-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
jobs:
run:
name: Run
runs-on: [self-hosted, plutus-benchmark]
runs-on: [self-hosted, plutus-shared]
steps:
- name: Checkout
uses: actions/checkout@main
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/docusaurus-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
name: "🦕 Docusaurus Site"

on:
push:
branches:
- master
workflow_dispatch:

jobs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/haddock-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
push:
branches:
- master

workflow_dispatch:
inputs:
ref:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/metatheory-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
name: "🔮 Metatheory Site"

on:
push:
branches:
- master

workflow_dispatch:
inputs:
ref:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly-testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:
jobs:
run:
name: Run
runs-on: [self-hosted, plutus-benchmark]
runs-on: [self-hosted, plutus-shared]
steps:
- name: Checkout
uses: actions/checkout@main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
{-# OPTIONS_GHC -fplugin PlutusTx.Plugin #-}
{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:target-version=1.1.0 #-}
{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:remove-trace #-}
{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:defer-errors #-}

module Cardano.Constitution.Validator.Sorted
( constitutionValidator
, defaultConstitutionValidator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
{-# OPTIONS_GHC -fplugin PlutusTx.Plugin #-}
{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:target-version=1.1.0 #-}
{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:remove-trace #-}
{-# OPTIONS_GHC -fplugin-opt PlutusTx.Plugin:defer-errors #-}

module Cardano.Constitution.Validator.Unsorted
( constitutionValidator
, defaultConstitutionValidator
Expand Down
5 changes: 5 additions & 0 deletions scripts/combined-haddock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ PLUTUS_VERSION="$(find ${BUILD_CONTENTS}/plutus-core-* -printf '%f\n' -quit | se

GIT_REV="$(git rev-parse HEAD)"

GIT_REV_SHORT="$(git rev-parse --short HEAD)"


# Here we merge each package's internal libraries into a single folder, for example:
# Merge:
Expand Down Expand Up @@ -125,6 +127,9 @@ done

echo "Writing the prologue"
cat << EOF > "${BUILD_DIR}/haddock.prologue"
Last updated on $(date +"%F") from [IntersectMBO/plutus@\`$GIT_REV_SHORT\`](https://github.com/IntersectMBO/plutus/tree/$GIT_REV)
== Handy module entrypoints
* "PlutusTx": Compiling Haskell to PLC (Plutus Core; on-chain code).
Expand Down

0 comments on commit 7a24d97

Please sign in to comment.