docsSections is defined in config.js and is a nested array with mixed types (strings for docs articles, and objects for groups).
docsSections was eliminated from graphql queries, but parts of it are passed as context to DocsSectionLandingPage so it knows which articles to show cards for. This is causing a build warning, but works as expected.
The fix is to use an object with path key instead of the strings we are using for docs pages in docsSections... this will be more verbose, but then the types will match (object where path is required and other keys like title and description are optional)
docsSectionsis defined inconfig.jsand is a nested array with mixed types (strings for docs articles, and objects for groups).docsSectionswas eliminated from graphql queries, but parts of it are passed ascontexttoDocsSectionLandingPageso it knows which articles to show cards for. This is causing a build warning, but works as expected.The fix is to use an object with
pathkey instead of the strings we are using for docs pages indocsSections... this will be more verbose, but then the types will match (object wherepathis required and other keys liketitleanddescriptionare optional)