Skip to content

Commit

Permalink
🐛 fix: Typedoc doc generation bugs (#604)
Browse files Browse the repository at this point in the history
## Description

- Bad public path
- More explicit entrypoints

## Testing

Explain the quality checks that have been done on the code changes

## Additional Information

- [ ] I read the [contributing docs](../docs/contributing.md) (if this
is your first contribution)

Your ENS/address:

Co-authored-by: Will Cory <[email protected]>
  • Loading branch information
roninjin10 and Will Cory authored Oct 24, 2023
1 parent 408b942 commit 43d6702
Show file tree
Hide file tree
Showing 87 changed files with 1,371 additions and 852 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,21 @@ jobs:
with:
name: "@evmts/blockexplorer"
working-directory: "./blockexplorer"
- name: 'Report @evmts/runtime Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/runtime"
working-directory: "./runtime"
- name: 'Report @evmts/solc Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/solc"
working-directory: "./solc"
- name: 'Report @evmts/unplugin Coverage'
if: always() # Also generate the report if tests are failing
uses: davelosert/vitest-coverage-report-action@v2
with:
name: "@evmts/unplugin"
working-directory: "./bundlers/unplugin"
2 changes: 1 addition & 1 deletion blockexplorer/doc/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/blockexplorer / [Exports](/reference/blockexplorer/modules.md)
@evmts/blockexplorer / [Exports](modules.md)

<p align="center">
<a href="https://evmts.dev/">
Expand Down
20 changes: 10 additions & 10 deletions blockexplorer/doc/classes/SafeStandardBlockExplorer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[@evmts/blockexplorer](/reference/blockexplorer/README.md) / [Exports](/reference/blockexplorer/modules.md) / SafeStandardBlockExplorer
[@evmts/blockexplorer](../README.md) / [Exports](../modules.md) / SafeStandardBlockExplorer

# Class: SafeStandardBlockExplorer

Expand All @@ -22,20 +22,20 @@ const txUrlEffect = etherscan.getTxUrl('0x1234')

### Constructors

- [constructor](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#constructor)
- [constructor](SafeStandardBlockExplorer.md#constructor)

### Properties

- [chainId](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#chainid)
- [name](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#name)
- [url](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#url)
- [ERRORS](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#errors)
- [chainId](SafeStandardBlockExplorer.md#chainid)
- [name](SafeStandardBlockExplorer.md#name)
- [url](SafeStandardBlockExplorer.md#url)
- [ERRORS](SafeStandardBlockExplorer.md#errors)

### Methods

- [getAddressUrl](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#getaddressurl)
- [getBlockUrl](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#getblockurl)
- [getTxUrl](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md#gettxurl)
- [getAddressUrl](SafeStandardBlockExplorer.md#getaddressurl)
- [getBlockUrl](SafeStandardBlockExplorer.md#getblockurl)
- [getTxUrl](SafeStandardBlockExplorer.md#gettxurl)

## Constructors

Expand All @@ -47,7 +47,7 @@ const txUrlEffect = etherscan.getTxUrl('0x1234')

| Name | Type | Description |
| :------ | :------ | :------ |
| `options` | [`BlockExplorerOptions`](/reference/blockexplorer/interfaces/BlockExplorerOptions.md) | The options for the BlockExplorer. |
| `options` | [`BlockExplorerOptions`](../interfaces/BlockExplorerOptions.md) | The options for the BlockExplorer. |

#### Defined in

Expand Down
24 changes: 12 additions & 12 deletions blockexplorer/doc/classes/StandardBlockExplorer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[@evmts/blockexplorer](/reference/blockexplorer/README.md) / [Exports](/reference/blockexplorer/modules.md) / StandardBlockExplorer
[@evmts/blockexplorer](../README.md) / [Exports](../modules.md) / StandardBlockExplorer

# Class: StandardBlockExplorer

Expand All @@ -21,21 +21,21 @@ const txUrl = etherscan.getTxUrl('0x1234')

### Constructors

- [constructor](/reference/blockexplorer/classes/StandardBlockExplorer.md#constructor)
- [constructor](StandardBlockExplorer.md#constructor)

### Properties

- [chainId](/reference/blockexplorer/classes/StandardBlockExplorer.md#chainid)
- [name](/reference/blockexplorer/classes/StandardBlockExplorer.md#name)
- [safeBlockExplorer](/reference/blockexplorer/classes/StandardBlockExplorer.md#safeblockexplorer)
- [url](/reference/blockexplorer/classes/StandardBlockExplorer.md#url)
- [ERRORS](/reference/blockexplorer/classes/StandardBlockExplorer.md#errors)
- [chainId](StandardBlockExplorer.md#chainid)
- [name](StandardBlockExplorer.md#name)
- [safeBlockExplorer](StandardBlockExplorer.md#safeblockexplorer)
- [url](StandardBlockExplorer.md#url)
- [ERRORS](StandardBlockExplorer.md#errors)

### Methods

- [getAddressUrl](/reference/blockexplorer/classes/StandardBlockExplorer.md#getaddressurl)
- [getBlockUrl](/reference/blockexplorer/classes/StandardBlockExplorer.md#getblockurl)
- [getTxUrl](/reference/blockexplorer/classes/StandardBlockExplorer.md#gettxurl)
- [getAddressUrl](StandardBlockExplorer.md#getaddressurl)
- [getBlockUrl](StandardBlockExplorer.md#getblockurl)
- [getTxUrl](StandardBlockExplorer.md#gettxurl)

## Constructors

Expand All @@ -47,7 +47,7 @@ const txUrl = etherscan.getTxUrl('0x1234')

| Name | Type | Description |
| :------ | :------ | :------ |
| `options` | [`BlockExplorerOptions`](/reference/blockexplorer/interfaces/BlockExplorerOptions.md) | The options for the BlockExplorer. |
| `options` | [`BlockExplorerOptions`](../interfaces/BlockExplorerOptions.md) | The options for the BlockExplorer. |

#### Defined in

Expand Down Expand Up @@ -77,7 +77,7 @@ ___

### safeBlockExplorer

**safeBlockExplorer**: [`SafeStandardBlockExplorer`](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md)
**safeBlockExplorer**: [`SafeStandardBlockExplorer`](SafeStandardBlockExplorer.md)

#### Defined in

Expand Down
8 changes: 4 additions & 4 deletions blockexplorer/doc/interfaces/BlockExplorerOptions.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[@evmts/blockexplorer](/reference/blockexplorer/README.md) / [Exports](/reference/blockexplorer/modules.md) / BlockExplorerOptions
[@evmts/blockexplorer](../README.md) / [Exports](../modules.md) / BlockExplorerOptions

# Interface: BlockExplorerOptions<\>

## Table of contents

### Properties

- [chainId](/reference/blockexplorer/interfaces/BlockExplorerOptions.md#chainid)
- [name](/reference/blockexplorer/interfaces/BlockExplorerOptions.md#name)
- [url](/reference/blockexplorer/interfaces/BlockExplorerOptions.md#url)
- [chainId](BlockExplorerOptions.md#chainid)
- [name](BlockExplorerOptions.md#name)
- [url](BlockExplorerOptions.md#url)

## Properties

Expand Down
12 changes: 6 additions & 6 deletions blockexplorer/doc/modules.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
[@evmts/blockexplorer](/reference/blockexplorer/README.md) / Exports
[@evmts/blockexplorer](README.md) / Exports

# @evmts/blockexplorer

## Table of contents

### Classes

- [SafeStandardBlockExplorer](/reference/blockexplorer/classes/SafeStandardBlockExplorer.md)
- [StandardBlockExplorer](/reference/blockexplorer/classes/StandardBlockExplorer.md)
- [SafeStandardBlockExplorer](classes/SafeStandardBlockExplorer.md)
- [StandardBlockExplorer](classes/StandardBlockExplorer.md)

### Interfaces

- [BlockExplorerOptions](/reference/blockexplorer/interfaces/BlockExplorerOptions.md)
- [BlockExplorerOptions](interfaces/BlockExplorerOptions.md)

### Type Aliases

- [Address](/reference/blockexplorer/modules.md#address)
- [Hex](/reference/blockexplorer/modules.md#hex)
- [Address](modules.md#address)
- [Hex](modules.md#hex)

## Type Aliases

Expand Down
3 changes: 1 addition & 2 deletions blockexplorer/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"$schema": "https://typedoc.org/schema.json",
"out": "./doc",
"entryPoints": ["./src/index.js"],
"publicPath": "/reference/blockexplorer/",
"entryPoints": ["./src/blockExplorer.js"],
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
2 changes: 1 addition & 1 deletion bundlers/bun/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/bun-plugin / [Exports](/reference/bun-plugin/modules.md)
@evmts/bun-plugin / [Exports](modules.md)

# @evmts/plugin-bun

Expand Down
4 changes: 2 additions & 2 deletions bundlers/bun/docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[@evmts/bun-plugin](/reference/bun-plugin/README.md) / Exports
[@evmts/bun-plugin](README.md) / Exports

# @evmts/bun-plugin

## Table of contents

### Functions

- [evmtsBunPlugin](/reference/bun-plugin/modules.md#evmtsbunplugin)
- [evmtsBunPlugin](modules.md#evmtsbunplugin)

## Functions

Expand Down
1 change: 0 additions & 1 deletion bundlers/bun/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://typedoc.org/schema.json",
"out": "./docs",
"entryPoints": ["./src/index.js"],
"publicPath": "/reference/bun-plugin/",
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
6 changes: 1 addition & 5 deletions bundlers/bundler/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@
"entryPoints": [
"./src/bundler.js",
"./src/createCache.js",
"./src/unplugin.js",
"./src/runtime/index.js",
"./src/solc/index.js",
"./src/utils/index.js"
"./src/solc/types.js"
],
"publicPath": "/reference/bundler/",
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
2 changes: 1 addition & 1 deletion bundlers/esbuild/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/esbuild-plugin / [Exports](/reference/esbuild-plugin/modules.md)
@evmts/esbuild-plugin / [Exports](modules.md)

# @evmts/plugin

Expand Down
4 changes: 2 additions & 2 deletions bundlers/esbuild/docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[@evmts/esbuild-plugin](/reference/esbuild-plugin/README.md) / Exports
[@evmts/esbuild-plugin](README.md) / Exports

# @evmts/esbuild-plugin

## Table of contents

### Functions

- [esbuildPluginEvmts](/reference/esbuild-plugin/modules.md#esbuildpluginevmts)
- [esbuildPluginEvmts](modules.md#esbuildpluginevmts)

## Functions

Expand Down
1 change: 0 additions & 1 deletion bundlers/esbuild/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://typedoc.org/schema.json",
"out": "./docs",
"entryPoints": ["./src/index.js"],
"publicPath": "/reference/esbuild-plugin/",
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
2 changes: 1 addition & 1 deletion bundlers/rollup/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/rollup-plugin / [Exports](/reference/rollup-plugin/modules.md)
@evmts/rollup-plugin / [Exports](modules.md)

# @evmts/plugin

Expand Down
4 changes: 2 additions & 2 deletions bundlers/rollup/docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[@evmts/rollup-plugin](/reference/rollup-plugin/README.md) / Exports
[@evmts/rollup-plugin](README.md) / Exports

# @evmts/rollup-plugin

## Table of contents

### Functions

- [rollupPluginEvmts](/reference/rollup-plugin/modules.md#rolluppluginevmts)
- [rollupPluginEvmts](modules.md#rolluppluginevmts)

## Functions

Expand Down
1 change: 0 additions & 1 deletion bundlers/rollup/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://typedoc.org/schema.json",
"out": "./docs",
"entryPoints": ["./src/index.js"],
"publicPath": "/reference/rollup-plugin/",
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
2 changes: 1 addition & 1 deletion bundlers/rspack/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/rspack-plugin / [Exports](/reference/rspack-plugin/modules.md)
@evmts/rspack-plugin / [Exports](modules.md)

# @evmts/rspack-plugin

Expand Down
4 changes: 2 additions & 2 deletions bundlers/rspack/docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[@evmts/rspack-plugin](/reference/rspack-plugin/README.md) / Exports
[@evmts/rspack-plugin](README.md) / Exports

# @evmts/rspack-plugin

## Table of contents

### Functions

- [rspackPluginEvmts](/reference/rspack-plugin/modules.md#rspackpluginevmts)
- [rspackPluginEvmts](modules.md#rspackpluginevmts)

## Functions

Expand Down
1 change: 0 additions & 1 deletion bundlers/rspack/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://typedoc.org/schema.json",
"out": "./docs",
"entryPoints": ["./src/index.js"],
"publicPath": "/reference/rspack-plugin/",
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
2 changes: 1 addition & 1 deletion bundlers/unplugin/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/unplugin / [Exports](/reference/unplugin/modules.md)
@evmts/unplugin / [Exports](modules.md)

<p align="center">
<a href="https://evmts.dev/">
Expand Down
8 changes: 4 additions & 4 deletions bundlers/unplugin/docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[@evmts/unplugin](/reference/unplugin/README.md) / Exports
[@evmts/unplugin](README.md) / Exports

# @evmts/unplugin

## Table of contents

### Type Aliases

- [CompilerOption](/reference/unplugin/modules.md#compileroption)
- [CompilerOption](modules.md#compileroption)

### Functions

- [createUnplugin](/reference/unplugin/modules.md#createunplugin)
- [evmtsUnplugin](/reference/unplugin/modules.md#evmtsunplugin)
- [createUnplugin](modules.md#createunplugin)
- [evmtsUnplugin](modules.md#evmtsunplugin)

## Type Aliases

Expand Down
1 change: 0 additions & 1 deletion bundlers/unplugin/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://typedoc.org/schema.json",
"out": "./docs",
"entryPoints": ["./src/index.js"],
"publicPath": "/reference/unplugin/",
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
2 changes: 1 addition & 1 deletion bundlers/vite/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/vite-plugin / [Exports](/reference/vite-plugin/modules.md)
@evmts/vite-plugin / [Exports](modules.md)

# @evmts/plugin

Expand Down
4 changes: 2 additions & 2 deletions bundlers/vite/docs/modules.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[@evmts/vite-plugin](/reference/vite-plugin/README.md) / Exports
[@evmts/vite-plugin](README.md) / Exports

# @evmts/vite-plugin

## Table of contents

### Functions

- [vitePluginEvmts](/reference/vite-plugin/modules.md#vitepluginevmts)
- [vitePluginEvmts](modules.md#vitepluginevmts)

## Functions

Expand Down
1 change: 0 additions & 1 deletion bundlers/vite/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"$schema": "https://typedoc.org/schema.json",
"out": "./docs",
"entryPoints": ["./src/index.js"],
"publicPath": "/reference/vite-plugin/",
"plugin": ["typedoc-plugin-markdown"],
"gitRevision": "main"
}
2 changes: 1 addition & 1 deletion bundlers/webpack/docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@evmts/webpack-plugin / [Exports](/reference/webpack-plugin/modules.md)
@evmts/webpack-plugin / [Exports](modules.md)

# @evmts/plugin

Expand Down
Loading

1 comment on commit 43d6702

@vercel
Copy link

@vercel vercel bot commented on 43d6702 Oct 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

evmts-docs – ./

evmts-docs-git-main-evmts.vercel.app
evmts-docs-evmts.vercel.app
evmts.dev

Please sign in to comment.