Skip to content

Commit

Permalink
fix tsconfig for docusaursu
Browse files Browse the repository at this point in the history
  • Loading branch information
willemolding committed Aug 8, 2024
1 parent 10aa2b6 commit a323217
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 32 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -27,8 +24,10 @@ jobs:
cache: 'npm'
cache-dependency-path: './docs/package-lock.json'
- name: Install dependencies
working-directory: ./docs
run: npm install --frozen-lockfile --non-interactive
- name: Build
working-directory: ./docs
run: npm run build
# 👆 Build steps
- name: Setup Pages
Expand All @@ -37,7 +36,7 @@ jobs:
uses: actions/upload-pages-artifact@v2
with:
# 👇 Specify build output path
path: build
path: ./docs/build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test-Format-Clippt

on: [pull_request]
on:
pull_request:
# push:
# branches: main

jobs:
test:
Expand Down
1 change: 1 addition & 0 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const config = {
debug: true,
changelogs: true,
readmes: false,
tsconfigName: 'docs/tsconfig.json',
typedocOptions: {
plugin: [
'typedoc-monorepo-link-types',
Expand Down
13 changes: 10 additions & 3 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/types": "3.4.0"
"@docusaurus/module-type-aliases": "^3.4.0",
"@docusaurus/tsconfig": "^3.4.0",
"@docusaurus/types": "^3.4.0",
"typescript": "^5.4.5"
},
"browserslist": {
"production": [
Expand Down
6 changes: 6 additions & 0 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"baseUrl": "."
}
}
3 changes: 2 additions & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[toolchain]
channel = "nightly-2024-08-07"
channel = "nightly-2024-08-07"
components = ["rust-src"]
21 changes: 0 additions & 21 deletions tsconfig.json

This file was deleted.

0 comments on commit a323217

Please sign in to comment.