Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
chore: squash
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranroneill committed Nov 27, 2023
1 parent 3ed8dd9 commit bb8f79f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 53 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/build_documentation.yml

This file was deleted.

21 changes: 13 additions & 8 deletions .github/workflows/deploy_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,30 @@ on:
- main

jobs:
install:
name: "Install"
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v3
- name: "🔧 Setup"
uses: ./.github/actions/use-dependencies

deploy:
name: Deploy
name: "Deploy"
needs: install
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v3
- name: "🔧 Setup"
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: yarn
- name: "📦 Install"
run: yarn install --ignore-scripts --frozen-lockfile
uses: ./.github/actions/use-dependencies
- name: "🏗️ Build"
run: yarn docs:build
- name: "🚀 Deploy"
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.WRITE_REPOS_TOKEN }}
publish_dir: ./.docs
user_name: agoralabs-bot
user_email: tech@agoralabs.sh
18 changes: 15 additions & 3 deletions .github/workflows/pull_request_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: ./.github/actions/use-dependencies

##
# lint, build and test
# lint, build documentation, build package and test
##

lint:
Expand All @@ -33,8 +33,20 @@ jobs:
- name: "👕 Lint"
run: yarn lint

build_chrome:
name: "Build"
build_documenation:
name: "Build Documentation"
needs: install
runs-on: ubuntu-latest
steps:
- name: "🛎 Checkout"
uses: actions/checkout@v3
- name: "🔧 Setup"
uses: ./.github/actions/use-dependencies
- name: "🏗️ Build"
run: yarn docs:build

build_pakage:
name: "Build Package"
needs: install
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 3 additions & 3 deletions docs/api-reference/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# API Reference

* [`AlgorandProvider`](algorand-provider) - injected as `window.algorand` by wallets and is used by dApps to interact with any installed wallets.
* [`BaseWalletManger`](base-wallet-manager) - the interface for wallets.
* [`Errors`](errors) - various error responses that can be thrown.
* [`AlgorandProvider`](api-reference/algorand-provider) - injected as `window.algorand` by wallets and is used by dApps to interact with any installed wallets.
* [`BaseWalletManger`](api-reference/base-wallet-manager) - the interface for wallets.
* [`Errors`](api-reference/errors) - various error responses that can be thrown.
14 changes: 7 additions & 7 deletions docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

For dApp developers.

* [Initialization](dapps/initialization)
* [Enabling a wallet](dapps/enabling-a-wallet)
* [Signing transactions](dapps/signing-transactions)
* [Sending transactions](dapps/sending-transactions)
* [Signing data](dapps/signing-data)
* [Initialization](getting-started/dapps/initialization)
* [Enabling a wallet](getting-started/dapps/enabling-a-wallet)
* [Signing transactions](getting-started/dapps/signing-transactions)
* [Sending transactions](getting-started/dapps/sending-transactions)
* [Signing data](getting-started/dapps/signing-data)

## Wallets

For wallets.

* [Installation](wallets/installation)
* [Usage](wallets/usage)
* [Installation](getting-started/wallets/installation)
* [Usage](getting-started/wallets/usage)
4 changes: 2 additions & 2 deletions src/errors/NetworkNotSupportedError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { ErrorCodeEnum } from '../enums';
// Errors
import BaseError from './BaseError';

export default class NetworkNotSupported extends BaseError {
export default class NetworkNotSupportedError extends BaseError {
public readonly code: ErrorCodeEnum = ErrorCodeEnum.NetworkNotSupportedError;
public readonly genesisHash: string;
public readonly name: string = 'NetworkNotSupported';
public readonly name: string = 'NetworkNotSupportedError';

constructor(genesisHash: string, message?: string) {
super(
Expand Down

0 comments on commit bb8f79f

Please sign in to comment.