@@ -433,6 +433,92 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
433433 } ,
434434 } ) ;
435435
436+ options . addDeclaration ( {
437+ name : "navigation" ,
438+ help : "Determines how the navigation sidebar is organized." ,
439+ type : ParameterType . Flags ,
440+ defaults : {
441+ includeCategories : false ,
442+ includeGroups : false ,
443+ } ,
444+ } ) ;
445+
446+ options . addDeclaration ( {
447+ name : "visibilityFilters" ,
448+ help : "Specify the default visibility for builtin filters and additional filters according to modifier tags." ,
449+ type : ParameterType . Mixed ,
450+ configFileOnly : true ,
451+ defaultValue : {
452+ protected : false ,
453+ private : false ,
454+ inherited : true ,
455+ external : false ,
456+ } ,
457+ validate ( value ) {
458+ const knownKeys = [ "protected" , "private" , "inherited" , "external" ] ;
459+ if ( ! value || typeof value !== "object" ) {
460+ throw new Error ( "visibilityFilters must be an object." ) ;
461+ }
462+
463+ for ( const [ key , val ] of Object . entries ( value ) ) {
464+ if ( ! key . startsWith ( "@" ) && ! knownKeys . includes ( key ) ) {
465+ throw new Error (
466+ `visibilityFilters can only include the following non-@ keys: ${ knownKeys . join (
467+ ", "
468+ ) } `
469+ ) ;
470+ }
471+
472+ if ( typeof val !== "boolean" ) {
473+ throw new Error (
474+ `All values of visibilityFilters must be booleans.`
475+ ) ;
476+ }
477+ }
478+ } ,
479+ } ) ;
480+
481+ options . addDeclaration ( {
482+ name : "searchCategoryBoosts" ,
483+ help : "Configure search to give a relevance boost to selected categories" ,
484+ type : ParameterType . Mixed ,
485+ configFileOnly : true ,
486+ defaultValue : { } ,
487+ validate ( value ) {
488+ if ( ! isObject ( value ) ) {
489+ throw new Error (
490+ "The 'searchCategoryBoosts' option must be a non-array object."
491+ ) ;
492+ }
493+
494+ if ( Object . values ( value ) . some ( ( x ) => typeof x !== "number" ) ) {
495+ throw new Error (
496+ "All values of 'searchCategoryBoosts' must be numbers."
497+ ) ;
498+ }
499+ } ,
500+ } ) ;
501+ options . addDeclaration ( {
502+ name : "searchGroupBoosts" ,
503+ help : 'Configure search to give a relevance boost to selected kinds (eg "class")' ,
504+ type : ParameterType . Mixed ,
505+ configFileOnly : true ,
506+ defaultValue : { } ,
507+ validate ( value : unknown ) {
508+ if ( ! isObject ( value ) ) {
509+ throw new Error (
510+ "The 'searchGroupBoosts' option must be a non-array object."
511+ ) ;
512+ }
513+
514+ if ( Object . values ( value ) . some ( ( x ) => typeof x !== "number" ) ) {
515+ throw new Error (
516+ "All values of 'searchGroupBoosts' must be numbers."
517+ ) ;
518+ }
519+ } ,
520+ } ) ;
521+
436522 ///////////////////////////
437523 ///// Comment Options /////
438524 ///////////////////////////
@@ -510,7 +596,7 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
510596 name : "categorizeByGroup" ,
511597 help : "Specify whether categorization will be done at the group level." ,
512598 type : ParameterType . Boolean ,
513- defaultValue : true ,
599+ defaultValue : true , // 0.25, change this to false.
514600 } ) ;
515601 options . addDeclaration ( {
516602 name : "defaultCategory" ,
@@ -594,82 +680,6 @@ export function addTypeDocOptions(options: Pick<Options, "addDeclaration">) {
594680 } ,
595681 } ) ;
596682
597- options . addDeclaration ( {
598- name : "visibilityFilters" ,
599- help : "Specify the default visibility for builtin filters and additional filters according to modifier tags." ,
600- type : ParameterType . Mixed ,
601- configFileOnly : true ,
602- defaultValue : {
603- protected : false ,
604- private : false ,
605- inherited : true ,
606- external : false ,
607- } ,
608- validate ( value ) {
609- const knownKeys = [ "protected" , "private" , "inherited" , "external" ] ;
610- if ( ! value || typeof value !== "object" ) {
611- throw new Error ( "visibilityFilters must be an object." ) ;
612- }
613-
614- for ( const [ key , val ] of Object . entries ( value ) ) {
615- if ( ! key . startsWith ( "@" ) && ! knownKeys . includes ( key ) ) {
616- throw new Error (
617- `visibilityFilters can only include the following non-@ keys: ${ knownKeys . join (
618- ", "
619- ) } `
620- ) ;
621- }
622-
623- if ( typeof val !== "boolean" ) {
624- throw new Error (
625- `All values of visibilityFilters must be booleans.`
626- ) ;
627- }
628- }
629- } ,
630- } ) ;
631-
632- options . addDeclaration ( {
633- name : "searchCategoryBoosts" ,
634- help : "Configure search to give a relevance boost to selected categories" ,
635- type : ParameterType . Mixed ,
636- configFileOnly : true ,
637- defaultValue : { } ,
638- validate ( value ) {
639- if ( ! isObject ( value ) ) {
640- throw new Error (
641- "The 'searchCategoryBoosts' option must be a non-array object."
642- ) ;
643- }
644-
645- if ( Object . values ( value ) . some ( ( x ) => typeof x !== "number" ) ) {
646- throw new Error (
647- "All values of 'searchCategoryBoosts' must be numbers."
648- ) ;
649- }
650- } ,
651- } ) ;
652- options . addDeclaration ( {
653- name : "searchGroupBoosts" ,
654- help : 'Configure search to give a relevance boost to selected kinds (eg "class")' ,
655- type : ParameterType . Mixed ,
656- configFileOnly : true ,
657- defaultValue : { } ,
658- validate ( value : unknown ) {
659- if ( ! isObject ( value ) ) {
660- throw new Error (
661- "The 'searchGroupBoosts' option must be a non-array object."
662- ) ;
663- }
664-
665- if ( Object . values ( value ) . some ( ( x ) => typeof x !== "number" ) ) {
666- throw new Error (
667- "All values of 'searchGroupBoosts' must be numbers."
668- ) ;
669- }
670- } ,
671- } ) ;
672-
673683 ///////////////////////////
674684 ///// General Options /////
675685 ///////////////////////////
0 commit comments