From 7c24fc57143bcdf43744a5ab41ac074315005e6b Mon Sep 17 00:00:00 2001 From: alina sireneva Date: Fri, 3 Jan 2025 22:42:30 +0300 Subject: [PATCH] docs: fix docs config --- .forgejo/workflows/docs.yaml | 5 ++++- build.config.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/docs.yaml b/.forgejo/workflows/docs.yaml index 11365f79..d2b35d12 100644 --- a/.forgejo/workflows/docs.yaml +++ b/.forgejo/workflows/docs.yaml @@ -24,9 +24,12 @@ jobs: touch docs/.nojekyll echo "ref.mtcute.dev" > docs/CNAME echo "ignore-workspace-root-check=true" >> .npmrc + + curl -O https://gist.githubusercontent.com/j0nl1/7f9b5210c9e6ecbabe322baa16dcb5db/raw/760de77327bf83671cfb6bd4e64181299ba26113/typedoc-fix-cf.mjs + node typedoc-fix-cf.mjs docs - name: Deploy # do not run on forks and releases - if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'desu-bot' + # if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.actor == 'desu-bot' uses: https://github.com/cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_PAGES_TOKEN }} diff --git a/build.config.js b/build.config.js index b1a3971d..ae5c0eae 100644 --- a/build.config.js +++ b/build.config.js @@ -64,6 +64,7 @@ export default { './.config/typedoc/plugin-external-links.js', './.config/typedoc/plugin-umami.js', ], + gitRemote: 'https://github.com/mtcute/mtcute', }, viteConfig: '.config/vite.build.ts', }