diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index bcb3a47..8bec033 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 98c1fbc..6e9ab16 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,6 +1,9 @@ name: Test-Format-Clippt -on: [pull_request] +on: + pull_request: + # push: + # branches: main jobs: test: diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 986727c..92d4b2b 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -52,6 +52,7 @@ const config = { debug: true, changelogs: true, readmes: false, + tsconfigName: 'docs/tsconfig.json', typedocOptions: { plugin: [ 'typedoc-monorepo-link-types', diff --git a/docs/package-lock.json b/docs/package-lock.json index 75bea4a..c29ca2d 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -18,8 +18,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" }, "engines": { "node": ">=18.0" @@ -2606,6 +2608,12 @@ "node": ">=18.0" } }, + "node_modules/@docusaurus/tsconfig": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/@docusaurus/tsconfig/-/tsconfig-3.4.0.tgz", + "integrity": "sha512-0qENiJ+TRaeTzcg4olrnh0BQ7eCxTgbYWBnWUeQDc84UYkt/T3pDNnm3SiQkqPb+YQ1qtYFlC0RriAElclo8Dg==", + "dev": true + }, "node_modules/@docusaurus/types": { "version": "3.4.0", "resolved": "https://registry.npmjs.org/@docusaurus/types/-/types-3.4.0.tgz", @@ -13641,7 +13649,6 @@ "version": "5.4.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/docs/package.json b/docs/package.json index c589b7d..c6aaaf4 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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": [ diff --git a/docs/tsconfig.json b/docs/tsconfig.json new file mode 100644 index 0000000..22929ff --- /dev/null +++ b/docs/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "@docusaurus/tsconfig", + "compilerOptions": { + "baseUrl": "." + } +} diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 3c2d874..ec8ccbf 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,3 @@ [toolchain] -channel = "nightly-2024-08-07" \ No newline at end of file +channel = "nightly-2024-08-07" +components = ["rust-src"] \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index 5af026d..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "compilerOptions": { - "resolveJsonModule": true, - "forceConsistentCasingInFileNames": true, - "target": "es2016", - "moduleResolution": "node", - "newLine": "lf", - "noFallthroughCasesInSwitch": true, - "noImplicitReturns": true, - "noUnusedLocals": true, - "noUnusedParameters": true, - "pretty": true, - "removeComments": false, - "sourceMap": true, - "strict": true, - "strictNullChecks": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "skipLibCheck": true - } -}