Sfoglia il codice sorgente

fix: move to separate config file and fix mocks docs (#3456)

Jonas Kruckenberg 3 anni fa
parent
commit
79bf061e01
2 ha cambiato i file con 28 aggiunte e 1 eliminazioni
  1. 1 1
      tooling/api/package.json
  2. 27 0
      tooling/api/typedoc.json

+ 1 - 1
tooling/api/package.json

@@ -19,7 +19,7 @@
     "lint:lockfile": "lockfile-lint --path yarn.lock --type yarn --validate-https --allowed-hosts npm yarn",
     "format": "prettier --write --end-of-line=auto \"./**/*.{cjs,js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore",
     "format:check": "prettier --check --end-of-line=auto \"./**/*.{cjs,js,jsx,ts,tsx,html,css,json}\" --ignore-path .gitignore",
-    "generate-docs": "typedoc src --githubPages false --readme none --entryDocument index.md --hideInPageTOC true --out docs --json docs/js-api.json --pretty false"
+    "generate-docs": "typedoc"
   },
   "repository": {
     "type": "git",

+ 27 - 0
tooling/api/typedoc.json

@@ -0,0 +1,27 @@
+{
+  "entryPoints": [
+    "src/app.ts",
+    "src/cli.ts",
+    "src/clipboard.ts",
+    "src/dialog.ts",
+    "src/event.ts",
+    "src/fs.ts",
+    "src/globalShortcut.ts",
+    "src/http.ts",
+    "src/mocks.ts",
+    "src/notification.ts",
+    "src/os.ts",
+    "src/path.ts",
+    "src/process.ts",
+    "src/shell.ts",
+    "src/tauri.ts",
+    "src/updater.ts",
+    "src/window.ts"
+  ],
+  "githubPages": false,
+  "readme": "none",
+  "hideInPageTOC": true,
+  "out": "docs",
+  "json": "docs/js-api.json",
+  "pretty": false
+}