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
46 changes: 46 additions & 0 deletions .github/workflows/api-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: API docs

on:
push:
branches: [ "main" ]
workflow_dispatch:

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

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Generate API docs site
run: npx typedoc
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/api

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ dist
.yarn/install-state.gz
.pnp.*

docs/api/source/
docs/api/

# Playwright test results
test-results/
test-results/
4 changes: 4 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Reporting a vulnerability

If you discover a vulnerability in our code, or experience a bug related to security,
please report it following the instructions provided on [Inrupt’s security page](https://inrupt.com/security/).
19 changes: 0 additions & 19 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,6 @@
// Advanced Options
"stripInternal": true
},
"typedocOptions": {
"out": "docs/api/source/api",
"hideInPageTOC": true,
"entryPoints": [],
"exclude": [
"node_modules/**",
"**/*.test.ts",
// End-to-end tests:
"e2e/**"
],
"theme": "markdown",
"readme": "none",
"entryDocument": "index.rst",
"plugin": [
"typedoc-plugin-markdown",
"@typhonjs-typedoc/ts-lib-docs/typedoc/ts-links/dom/2023",
"@typhonjs-typedoc/ts-lib-docs/typedoc/ts-links/esm/2023"
]
},
"include": ["src/**/*.ts"],
"exclude": [
"**/node_modules",
Expand Down
37 changes: 37 additions & 0 deletions typedoc.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// MIT License
//
// Copyright (c) Inrupt
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//

export default {
out: "docs/api/",
entryPoints: ["./src/index.ts"],
exclude: [
"node_modules/**",
"**/*.test.ts",
// End-to-end tests:
"e2e/**",
],
plugin: [
"@typhonjs-typedoc/ts-lib-docs/typedoc/ts-links/dom/2023",
"@typhonjs-typedoc/ts-lib-docs/typedoc/ts-links/esm/2023",
],
};
Loading