diff --git a/.github/workflows/manual-docs-publish.yml b/.github/workflows/manual-docs-publish.yml new file mode 100644 index 00000000..97faf07c --- /dev/null +++ b/.github/workflows/manual-docs-publish.yml @@ -0,0 +1,50 @@ +name: Manual Docs Publish + +permissions: + id-token: write + contents: write + +on: workflow_dispatch + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Use Node.js 20 + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Setup Yarn v3 + run: | + corepack enable + corepack prepare yarn@stable --activate + - name: Install dependencies + run: yarn install --immutable + - name: Build + run: yarn run build + - name: Build docs + run: | + yarn run generate-api-docs + yarn run docs:build + - name: Azure login + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} + - name: Publish docs + uses: azure/CLI@v1 + with: + inlineScript: | + az storage blob sync --account-name baklavajs -c '$web' -s "./docs/.vuepress/dist/" + - name: Purge CDN endpoint + uses: azure/CLI@v1 + with: + inlineScript: | + az cdn endpoint purge --content-paths "/*" --profile-name "baklavajs" --name "baklavajs" --resource-group "Private" --no-wait + - name: Azure Logout + run: az logout + if: always() diff --git a/packages/renderer-vue/src/shims.d.ts b/packages/renderer-vue/src/shims.d.ts new file mode 100644 index 00000000..dcf87304 --- /dev/null +++ b/packages/renderer-vue/src/shims.d.ts @@ -0,0 +1,7 @@ +/* eslint-disable @typescript-eslint/ban-types */ + +declare module "*.vue" { + import type { DefineComponent } from "vue"; + const component: DefineComponent<{}, {}, any>; + export default component; +} diff --git a/typedoc.tsconfig.json b/typedoc.tsconfig.json index 5d441509..4429e90b 100644 --- a/typedoc.tsconfig.json +++ b/typedoc.tsconfig.json @@ -1,4 +1,5 @@ { + "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { "target": "ES2019", "module": "esnext", @@ -8,7 +9,9 @@ "allowSyntheticDefaultImports": true, "declaration": true, "baseUrl": ".", - "skipLibCheck": true + "skipLibCheck": true, + "lib": ["DOM"] }, + "include": ["packages/*/src/*.ts", "packages/*/src/*.d.ts"], "exclude": ["node_modules", "**/dist/**", "**/test/**", "packages/full/**", "packages/renderer-vue/playground"] }