diff --git a/components/Layout.tsx b/components/Layout.tsx
index 6581ccca5..d21207781 100644
--- a/components/Layout.tsx
+++ b/components/Layout.tsx
@@ -198,7 +198,7 @@ const MainNavigation = () => {
/>
@@ -289,7 +289,7 @@ const MobileNav = () => {
isActive={section === 'specification'}
/>
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx
index 16ad66826..516993d17 100644
--- a/components/Sidebar.tsx
+++ b/components/Sidebar.tsx
@@ -89,20 +89,13 @@ const SegmentSubtitle = ({ label }: { label: string }) => {
);
};
const getDocsPath = [
- '/overview/what-is-jsonschema',
- '/overview/sponsors',
- '/overview/case-studies',
- '/overview/similar-technologies',
- '/overview/use-cases',
- '/overview/code-of-conduct',
- '/overview/faq',
-];
-const getStartedPath = [
- '/learn/json-schema-examples',
- '/learn/file-system',
- '/learn/miscellaneous-examples',
- '/learn/getting-started-step-by-step',
+ '/introduction/about',
+ '/introduction/similar-technologies',
+ '/introduction/what-is-jsonschema',
+ '/introduction/getting-started-step-by-step',
];
+const getConceptsPath = ['/concepts/glossary'];
+
const getReferencePath = [
'/understanding-json-schema',
'/understanding-json-schema/basics',
@@ -128,7 +121,6 @@ const getReferencePath = [
'/understanding-json-schema/reference/type',
'/understanding-json-schema/reference/generic',
'/understanding-json-schema/reference',
- '/learn/glossary',
'/implementers',
'/implementers/interfaces',
];
@@ -144,6 +136,19 @@ const getSpecificationPath = [
'/specification',
];
+const getContributionsPath = [
+ '/contributions/code-of-conduct',
+ '/contributions/sponsors',
+ '/contributions/contributing-to-jsonschema',
+ '/contributions',
+];
+
+const getResourcesPath = [
+ '/resources/file-system',
+ '/resources/json-schema-examples',
+ '/resources/miscellaneous-examples',
+ '/resources',
+];
export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
const router = useRouter();
const [open, setOpen] = useState(false);
@@ -174,10 +179,10 @@ export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
}}
>
{getDocsPath.includes(pathWtihoutFragment) && (
-
Overview
+ Introduction
)}
- {getStartedPath.includes(pathWtihoutFragment) && (
- Getting Started
+ {getConceptsPath.includes(pathWtihoutFragment) && (
+ Concepts
)}
{getReferencePath.includes(pathWtihoutFragment) && (
@@ -187,6 +192,12 @@ export const SidebarLayout = ({ children }: { children: React.ReactNode }) => {
{getSpecificationPath.includes(pathWtihoutFragment) && (
Specification
)}
+ {getContributionsPath.includes(pathWtihoutFragment) && (
+ Contributions
+ )}
+ {getResourcesPath.includes(pathWtihoutFragment) && (
+ Resources
+ )}
{router.pathname === null && (
Docs
@@ -246,20 +257,26 @@ export const DocsNav = ({
/* eslint-disable no-constant-condition */
const [active, setActive] = useState({
getDocs: false,
- getStarted: false,
+ getConcepts: false,
getReference: false,
getSpecification: false,
+ getContributions: false,
+ getResources: false,
});
useEffect(() => {
const pathWtihoutFragment = extractPathWithoutFragment(router.asPath);
if (getDocsPath.includes(pathWtihoutFragment)) {
setActive({ ...active, getDocs: true });
- } else if (getStartedPath.includes(pathWtihoutFragment)) {
- setActive({ ...active, getStarted: true });
+ } else if (getConceptsPath.includes(pathWtihoutFragment)) {
+ setActive({ ...active, getConcepts: true });
} else if (getReferencePath.includes(pathWtihoutFragment)) {
setActive({ ...active, getReference: true });
} else if (getSpecificationPath.includes(pathWtihoutFragment)) {
setActive({ ...active, getSpecification: true });
+ } else if (getContributionsPath.includes(pathWtihoutFragment)) {
+ setActive({ ...active, getContributions: true });
+ } else if (getResourcesPath.includes(pathWtihoutFragment)) {
+ setActive({ ...active, getResources: true });
}
}, [router.asPath]);
@@ -267,8 +284,8 @@ export const DocsNav = ({
setActive({ ...active, getDocs: !active.getDocs });
};
- const handleClickGet = () => {
- setActive({ ...active, getStarted: !active.getStarted });
+ const handleClickCon = () => {
+ setActive({ ...active, getConcepts: !active.getConcepts });
};
const handleClickReference = () => {
@@ -279,10 +296,20 @@ export const DocsNav = ({
setActive({ ...active, getSpecification: !active.getSpecification });
};
+ const handleClickCont = () => {
+ setActive({ ...active, getContributions: !active.getContributions });
+ };
+
+ const handleClickResource = () => {
+ setActive({ ...active, getResources: !active.getResources });
+ };
+
const rotate = active.getDocs ? 'rotate(180deg)' : 'rotate(0)';
- const rotateG = active.getStarted ? 'rotate(180deg)' : 'rotate(0)';
+ const rotateC = active.getConcepts ? 'rotate(180deg)' : 'rotate(0)';
const rotateR = active.getReference ? 'rotate(180deg)' : 'rotate(0)';
const rotateSpec = active.getSpecification ? 'rotate(180deg)' : 'rotate(0)';
+ const rotateCont = active.getContributions ? 'rotate(180deg)' : 'rotate(0)';
+ const rotateRes = active.getResources ? 'rotate(180deg)' : 'rotate(0)';
const { resolvedTheme } = useTheme();
@@ -313,7 +340,7 @@ export const DocsNav = ({
>

-
+