@@ -307,6 +307,49 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
307307 type : ParameterType . Boolean ,
308308 defaultValue : true ,
309309 } ) ;
310+ options . addDeclaration ( {
311+ name : "titleLink" ,
312+ help : "Set the link the title in the header points to. Defaults to the documentation homepage." ,
313+ type : ParameterType . String ,
314+ } ) ;
315+ options . addDeclaration ( {
316+ name : "navigationLinks" ,
317+ help : "Defines links to be included in the header." ,
318+ type : ParameterType . Mixed ,
319+ defaultValue : { } ,
320+ validate ( value ) {
321+ if ( ! isObject ( value ) ) {
322+ throw new Error (
323+ `navigationLinks must be an object with string labels as keys and URL values.`
324+ ) ;
325+ }
326+
327+ if ( Object . values ( value ) . some ( ( x ) => typeof x !== "string" ) ) {
328+ throw new Error (
329+ `All values of navigationLinks must be string URLs.`
330+ ) ;
331+ }
332+ } ,
333+ } ) ;
334+ options . addDeclaration ( {
335+ name : "sidebarLinks" ,
336+ help : "Defines links to be included in the sidebar." ,
337+ type : ParameterType . Mixed ,
338+ defaultValue : { } ,
339+ validate ( value ) {
340+ if ( ! isObject ( value ) ) {
341+ throw new Error (
342+ `sidebarLinks must be an object with string labels as keys and URL values.`
343+ ) ;
344+ }
345+
346+ if ( Object . values ( value ) . some ( ( x ) => typeof x !== "string" ) ) {
347+ throw new Error (
348+ `All values of sidebarLinks must be string URLs.`
349+ ) ;
350+ }
351+ } ,
352+ } ) ;
310353
311354 ///////////////////////////
312355 ///// Comment Options /////
0 commit comments