Skip to content

Commit e0e9a88

Browse files
committed
Update typedoc config to consider broader files and build docs on release
1 parent deea964 commit e0e9a88

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

.github/workflows/publish.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ jobs:
4545
git config user.name "${GITHUB_ACTOR}"
4646
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
4747
48-
- name: Build
48+
- name: Build package
4949
run: pnpm build
5050

51+
- name: Build docs
52+
run: pnpm docs:build
53+
5154
- name: Publish package
5255
run: pnpm release --increment ${{ inputs.increment }}
5356
env:

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<div align="center">
22
<h1>Puffer SDK</h1>
33

4-
<img alt="GitHub license" src="https://img.shields.io/github/license/pufferfinance/puffer-sdk?color=limegreen">
5-
<img alt="Downloads npm" src="https://img.shields.io/npm/dm/@pufferfinance/puffer-sdk?color=limegreen">
6-
<img alt="Version npm" src="https://img.shields.io/npm/v/@pufferfinance/puffer-sdk?label=version">
7-
<!-- ADD COVERAGE -->
4+
<img alt="build" src="https://github.com/pufferfinance/puffer-sdk/actions/workflows/build-and-test.yml/badge.svg?branch=main" />
5+
<img alt="license" src="https://img.shields.io/github/license/pufferfinance/puffer-sdk?color=limegreen" />
6+
<img alt="npm downloads" src="https://img.shields.io/npm/dm/@pufferfinance/puffer-sdk?color=limegreen&logo=npm" />
7+
<img alt="npm version" src="https://img.shields.io/npm/v/@pufferfinance/puffer-sdk?label=version&logo=npm" />
8+
<!-- TODO: ADD COVERAGE BADGE -->
89

910
<p>SDK to seamlessly interact with puffer smart contracts<p>
1011
</div>

docs/docusaurus.config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ const config: Config = {
144144
// https://typedoc-plugin-markdown.org/plugins/docusaurus/options
145145
// https://typedoc-plugin-markdown.org/docs/options
146146
{
147-
entryPoints: '../lib/api',
147+
// Consider all files in subdirectories of the `lib` directory.
148+
entryPoints: '../lib/*/**',
148149
exclude: '**/*+(test|spec|index).ts',
149150
entryPointStrategy: 'expand',
150151
tsconfig: '../tsconfig.json',

0 commit comments

Comments
 (0)