Skip to content

Commit

Permalink
Add auto-generated docs to the monorepo (#197)
Browse files Browse the repository at this point in the history
* Squash

* Structure

* Fixes

* README

* README

* Update CODEOWNERS

* Delete legacy/sdk/src/tsconfig.json

* Delete legacy/sdk/tests/tsconfig.json

* Build fix

* Squash

* Box

* `constraint` instead of `address` for expressions

* Readme files

* Build before test

* Sdk changes

* Tweak

* Test

* Tweaks

* Small fixes

* Readme update

* Fix failing build and tests

* Squash

* Squash

* Rename folders

* Template labels

* Tweak

* Version bumps

* Get program accounts

* Tweak

* Tweaks

* Tweaks

* Improve tests

* Docs packages

* Scripts

* Lockfile fix

* Merge branch 'wjthieme/anchor-0.30.1' into wjthieme/kinobi

# Conflicts:
#	Cargo.lock
#	package.json
#	yarn.lock

* Tweaks

* Fix

* Tweaks

* Docusaurus

* File location

* Move folder

* Tweak

* Fix

* Tweak

* Docusaurus

* Location

* Format

* Fix?

* Fix failing test

* Tweak

* Spell fix

* Editurl

* Tweaks

* Rust pinned version

* Rust version in gh actions
  • Loading branch information
wjthieme authored Aug 16, 2024
1 parent 84c385b commit db0bbd4
Show file tree
Hide file tree
Showing 231 changed files with 13,190 additions and 7,008 deletions.
8 changes: 7 additions & 1 deletion .github/actions/anchor/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
description: 'The version of anchor to use.'
required: false
default: 'v0.29.0'
rust-version:
description: 'The version of rust to use.'
required: false
default: '1.78'
solana-key:
description: 'The private key to use for the solana sdk.'
required: false
Expand All @@ -29,14 +33,16 @@ runs:
chmod +x run
echo "#!/bin/bash" >> run
echo "set -xeo pipefail" >> run
echo "export RUST_LOG=" >> run
shell: bash
- name: Install Dependencies
run: |
echo "yarn" >> run
shell: bash
- name: Update rustc
run: |
echo "rustup update" >> run
echo "rustup install ${{ inputs.rust-version }}" >> run
echo "rustup default ${{ inputs.rust-version }}" >> run
shell: bash
- name: Configure Solana
run: |
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
uses: ./.github/actions/anchor
with:
run: |
export RUST_LOG=
yarn build --output-style static
test:
Expand All @@ -27,7 +26,6 @@ jobs:
uses: ./.github/actions/anchor
with:
run: |
export RUST_LOG=
yarn test --exclude legacy-sdk/whirlpool --output-style static
lint:
Expand All @@ -39,5 +37,4 @@ jobs:
uses: ./.github/actions/anchor
with:
run: |
export RUST_LOG=
yarn lint --output-style static
29 changes: 29 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docs

on:
push:
branches: [main]

jobs:

build:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docs
uses: ./.github/actions/anchor
with:
run: |
yarn build docs/whirlpool --output-style static
- name: Upload Artifact
uses: actions/upload-artifact@master
with:
name: github-pages
path: ./utility/docs/dist
- name: Deploy Artifact
id: deployment
uses: actions/deploy-pages@v4
3 changes: 0 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
uses: ./.github/actions/anchor
with:
run: |
export RUST_LOG=
# TODO: Copy over keys from root package.json
cd ts-sdk/${{ matrix.package }} && yarn version $(basename ${{ github.ref }})
yarn install
Expand All @@ -44,7 +43,6 @@ jobs:
uses: ./.github/actions/anchor
with:
run: |
export RUST_LOG=
# deploy cargo
verifiable:
Expand All @@ -61,7 +59,6 @@ jobs:
uses: ./.github/actions/anchor
with:
run: |
export RUST_LOG=
# verifiable build and add to release
release:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ generated
!.yarn/versions
.nx
generated
.docusaurus
.cache-loader
1 change: 0 additions & 1 deletion docs/.nojekyll

This file was deleted.

43 changes: 0 additions & 43 deletions docs/assets/highlight.css

This file was deleted.

Loading

0 comments on commit db0bbd4

Please sign in to comment.