Преглед на файлове

chore(ci): update dependencies and add GitHub Actions workflow for syncing plugin documentation

charlie преди 1 седмица
родител
ревизия
e8d06f6fa8
променени са 3 файла, в които са добавени 478 реда и са изтрити 270 реда
  1. 49 0
      .github/workflows/build-plugin-docs.yml
  2. 6 5
      libs/package.json
  3. 423 265
      libs/yarn.lock

+ 49 - 0
.github/workflows/build-plugin-docs.yml

@@ -0,0 +1,49 @@
+name: Build and Sync Plugin Docs
+
+on:
+  workflow_dispatch:
+
+jobs:
+  build-and-sync-docs:
+    runs-on: ubuntu-latest
+
+    steps:
+      - name: Checkout logseq repository
+        uses: actions/checkout@v4
+        with:
+          path: logseq
+
+      - name: Setup Node.js
+        uses: actions/setup-node@v4
+        with:
+          node-version: '18'
+          cache: 'yarn'
+          cache-dependency-path: logseq/yarn.lock
+
+      - name: Install dependencies
+        working-directory: logseq/libs
+        run: yarn install --frozen-lockfile
+
+      - name: Build documentation
+        working-directory: logseq/libs
+        run: yarn build:docs
+
+      - name: Checkout plugins repository
+        uses: actions/checkout@v4
+        with:
+          repository: logseq/plugins
+          token: ${{ secrets.PLUGIN_DOCS_SYNC_TOKEN }}
+          path: plugins
+
+      - name: Sync docs to plugins repository
+        run: |
+          cp -r logseq/libs/docs/* plugins/
+
+      - name: Commit and push changes
+        working-directory: plugins
+        run: |
+          git config user.name "github-actions[bot]"
+          git config user.email "github-actions[bot]@users.noreply.github.com"
+          git add .
+          git diff --staged --quiet || git commit -m "chore: sync plugin docs from logseq/logseq@${{ github.sha }}"
+          git push

+ 6 - 5
libs/package.json

@@ -14,13 +14,14 @@
     "build": "tsc && rm dist/*.js && npm run build:user",
     "lint": "prettier --check \"src/**/*.{ts, js}\"",
     "fix": "prettier --write \"src/**/*.{ts, js}\"",
-    "build:docs": "typedoc --plugin typedoc-plugin-lsp-docs src/LSPlugin.user.ts && typedoc --json docs/out.json ./src/LSPlugin.user.ts"
+    "build:docs": "typedoc src/LSPlugin.user.ts",
+    "build:docs:json": "typedoc --plugin typedoc-plugin-lsp-docs src/LSPlugin.user.ts && typedoc --json docs/out.json ./src/LSPlugin.user.ts"
   },
   "dependencies": {
     "csstype": "3.1.0",
     "debug": "4.3.4",
     "deepmerge": "4.3.1",
-    "dompurify": "3.2.4",
+    "dompurify": "3.3.1",
     "eventemitter3": "4.0.7",
     "fast-deep-equal": "3.1.3",
     "lodash-es": "4.17.21",
@@ -39,10 +40,10 @@
     "prettier-config-standard": "^5.0.0",
     "terser-webpack-plugin": "^5.3.6",
     "ts-loader": "9.3.0",
-    "typedoc": "^0.23.17",
+    "typedoc": "0.28.15",
     "typedoc-plugin-lsp-docs": "^0.0.1",
-    "typescript": "4.7.3",
-    "webpack": "5.73.0",
+    "typescript": "5.9.3",
+    "webpack": "5.94.0",
     "webpack-bundle-analyzer": "4.5.0",
     "webpack-cli": "4.9.2"
   }

Файловите разлики са ограничени, защото са твърде много
+ 423 - 265
libs/yarn.lock


Някои файлове не бяха показани, защото твърде много файлове са промени