diff --git a/next.config.mjs b/next.config.mjs index 669e58a8..97a6429b 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -26,11 +26,7 @@ const nextConfig = { return [ { source: '/', - destination: '/docs/introduction', - }, - { - source: '/docs', - destination: '/docs/introduction', + destination: '/introduction', }, { source: '/api', diff --git a/public/docs-static/img/logo/logo-api-dark.png b/public/docs-static/img/logo/logo-api-dark.png new file mode 100644 index 00000000..bbbaae63 Binary files /dev/null and b/public/docs-static/img/logo/logo-api-dark.png differ diff --git a/public/docs-static/img/logo/logo-api-dark.svg b/public/docs-static/img/logo/logo-api-dark.svg index 29055bf9..7c4f75e7 100644 --- a/public/docs-static/img/logo/logo-api-dark.svg +++ b/public/docs-static/img/logo/logo-api-dark.svg @@ -7,7 +7,7 @@ viewBox="0 0 132.29167 23.812502" version="1.1" id="svg1203" - inkscape:version="1.1.1 (1:1.1+202109281944+c3084ef5ed)" + inkscape:version="1.2.1 (1:1.2.1+202210291243+9c6d41e410)" sodipodi:docname="logo-api-dark.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" @@ -26,15 +26,17 @@ width="650px" units="px" inkscape:zoom="1.4289282" - inkscape:cx="334.86637" - inkscape:cy="27.993009" - inkscape:window-width="2560" - inkscape:window-height="1335" - inkscape:window-x="1920" + inkscape:cx="334.51646" + inkscape:cy="28.692834" + inkscape:window-width="1920" + inkscape:window-height="973" + inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" inkscape:current-layer="layer1" - inkscape:snap-global="false" /> + inkscape:snap-global="false" + inkscape:showpageshadow="2" + inkscape:deskcolor="#d1d1d1" /> + hide_knots="false" + nodesatellites_param="F,0,0,1,0,4.4979167,0,1 @ F,0,0,1,0,4.4979167,0,1 @ F,0,0,1,0,4.4979167,0,1 @ F,0,0,1,0,4.4979167,0,1" /> API + x="99.439789" + y="15.949568">API + inkscape:snap-global="false" + inkscape:showpageshadow="2" + inkscape:deskcolor="#d1d1d1" /> + hide_knots="false" + nodesatellites_param="F,0,0,1,0,4.4979167,0,1 @ F,0,0,1,0,4.4979167,0,1 @ F,0,0,1,0,4.4979167,0,1 @ F,0,0,1,0,4.4979167,0,1" /> API + x="99.440025" + y="15.806142">API group.links) : apiNavigation.flatMap((group) => group.links) + let allPages = !router.route.startsWith('/ipa') ? docsNavigation.flatMap((group) => group.links) : apiNavigation.flatMap((group) => group.links) let currentPageIndex = allPages.findIndex( (page) => page.href === router.pathname ) diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 44ba83d7..69ae0579 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -69,7 +69,7 @@ export const Header = forwardRef(function Header({ className }, ref) {