Skip to content

Commit

Permalink
docs: change to typedoc config file
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Sep 18, 2024
1 parent 079c24a commit 96bc88d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
18 changes: 9 additions & 9 deletions apps/docs/src/server/generated/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Passed into Vite `config.ssr.target`.

#### Defined in

[types/index.ts:58](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L58)
[types/index.ts:58](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L58)

---

Expand All @@ -107,7 +107,7 @@ Pass any options for the adapter in as a generic.

#### Defined in

[types/index.ts:88](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L88)
[types/index.ts:88](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L88)

---

Expand Down Expand Up @@ -151,7 +151,7 @@ The name of the entry point without extension.

#### Defined in

[types/index.ts:42](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L42)
[types/index.ts:42](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L42)

---

Expand All @@ -165,7 +165,7 @@ Middleware used in the Vite server for dev and preview.

#### Defined in

[types/index.ts:39](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L39)
[types/index.ts:39](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L39)

---

Expand Down Expand Up @@ -193,7 +193,7 @@ Exports from the SSR `app` entry point.
#### Defined in

[types/index.ts:5](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L5)
[types/index.ts:5](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L5)

---

Expand Down Expand Up @@ -250,7 +250,7 @@ export default defineConfig({

#### Defined in

[types/index.ts:114](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L114)
[types/index.ts:114](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L114)

---

Expand Down Expand Up @@ -281,7 +281,7 @@ export const handler: Handler = async (req) => {

#### Defined in

[types/index.ts:22](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L22)
[types/index.ts:22](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L22)

---

Expand All @@ -304,7 +304,7 @@ export const prerender: Prerender = ["/", "/post-1", "/post-2"];

#### Defined in

[types/index.ts:36](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/types/index.ts#L36)
[types/index.ts:36](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/types/index.ts#L36)

## Functions

Expand Down Expand Up @@ -341,4 +341,4 @@ export default defineConfig({

#### Defined in

[plugin/index.ts:29](https://github.com/rossrobino/domco/blob/992b91cd321929967ee8f34c5da10c9c02ff5567/packages/domco/src/plugin/index.ts#L29)
[plugin/index.ts:29](https://github.com/rossrobino/domco/blob/079c24a873dea21ac0e5db4ef90b4f223f824e4a/packages/domco/src/plugin/index.ts#L29)
2 changes: 1 addition & 1 deletion packages/domco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"build:clean": "rm -rf ./dist",
"build:js": "tsc",
"build": "node scripts/version && npm run build:clean && npm run build:js && cp src/types/env.d.ts dist/types/env.d.ts",
"doc": "typedoc src/index.ts --out ../../apps/docs/src/server/generated --plugin typedoc-plugin-markdown --outputFileStrategy modules --hidePageHeader --hidePageTitle --useHTMLAnchors"
"doc": "typedoc --options typedoc.config.js"
},
"devDependencies": {
"typedoc": "^0.26.7",
Expand Down
14 changes: 14 additions & 0 deletions packages/domco/typedoc.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/** @import { TypeDocOptions } from "typedoc" */
/** @import { PluginOptions } from "typedoc-plugin-markdown" */

/** @type {Partial<TypeDocOptions & PluginOptions>} */
export default {
entryPoints: ["src/index.ts"],
out: "../../apps/docs/src/server/generated",

plugin: ["typedoc-plugin-markdown"],
outputFileStrategy: "modules",
hidePageHeader: true,
hidePageTitle: true,
useHTMLAnchors: true,
};

0 comments on commit 96bc88d

Please sign in to comment.