Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Deploy docs

on:
push:
branches: [main, master]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Setup Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "24"
package-manager-cache: false

- name: Use npm 12
working-directory: ${{ runner.temp }}
run: npm install -g npm@12

- name: Install dependencies
run: npm ci

- name: Build docs
run: npm run docs

- name: Configure Pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0

- name: Upload docs artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: docs

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Lint and typecheck
run: npm run check

- name: Check formatting
run: npm run format:check

- name: Run tests with coverage
run: npm run test:coverage

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
dist/
docs/
coverage/
junit.xml
.mypy_cache/
Expand Down
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,19 @@ console.log(series.autocorr()); // lag-1 autocorrelation of demeaned returns

API reference: <https://captorab.github.io/openseries-ts/>

To regenerate docs locally:
Docs are built with [TypeDoc](https://typedoc.org/) and deployed to GitHub
Pages automatically by
[`.github/workflows/docs.yml`](.github/workflows/docs.yml) on every push to
`master`. The generated `docs/` folder is not committed to the repo
(see `.gitignore`).

To preview docs locally:

```bash
npm run docs
```

This writes static HTML to `docs/`. To serve them via GitHub Pages:

1. Run `npm run docs` and commit the `docs/` folder
2. In the repo: **Settings → Pages**
3. Under **Source**, choose **Deploy from a branch**
4. Branch: `main` (or your default branch), folder: `/docs`

Docs will be available at `https://<username>.github.io/<repo>/`.
This writes static HTML to `docs/`.

## Scripts

Expand Down
Empty file removed docs/.nojekyll
Empty file.
1 change: 0 additions & 1 deletion docs/assets/hierarchy.js

This file was deleted.

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

This file was deleted.

18 changes: 0 additions & 18 deletions docs/assets/icons.js

This file was deleted.

Loading
Loading