You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/options/output.md
+70Lines changed: 70 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,76 @@ $ typedoc --theme default
124
124
125
125
Specify the theme name that should be used.
126
126
127
+
## router
128
+
129
+
```bash
130
+
$ typedoc --router default
131
+
```
132
+
133
+
Specify the router that should be used to determine what files to create for the
134
+
HTML output and how to link between pages. Additional routers may be added by
135
+
plugins/themes. TypeDoc ships with the following builtin routers:
136
+
137
+
-**kind** (default) - Creates folders according to their the documented member's kind.
138
+
-**kind-dir** - Like **kind**, but renders each page as `index.html` within a directory for the page name. This can be used to make "clean" urls.
139
+
-**structure** - Creates folders according to the module structure.
140
+
-**structure-dir** - Like **structure**, but renders each page as `index.html` within a directory for the page name. This can be used to make "clean" urls.
141
+
-**group** - Creates folders according to the reflection's [`@group`](../tags/group.md).
142
+
-**category** - Creates folders according to the reflection's [`@category`](../tags/category.md).
143
+
144
+
This is easiest to understand with an example. Given the following API:
145
+
146
+
```ts
147
+
exportfunction initialize():void;
148
+
/**@group Opts */
149
+
exportclassOptions {}
150
+
exportnamespaceTypeDoc {
151
+
exportconst VERSION:string;
152
+
}
153
+
```
154
+
155
+
TypeDoc will create a folder structure resembling the following, the common
156
+
`assets` folder and `index.html` / `modules.html` files have been omitted for
0 commit comments