diff --git a/app/(docs)/cunofs/getting-started/page.md b/app/(docs)/cunofs/getting-started/page.md new file mode 100644 index 000000000..7fe54bb70 --- /dev/null +++ b/app/(docs)/cunofs/getting-started/page.md @@ -0,0 +1,8 @@ +--- +title: Getting started +docId: 56bbfdaa-d6c5-4a4f-ba2d-13b05d446a24 +metadata: + description: description here +--- + +Blah blah blah \ No newline at end of file diff --git a/app/(docs)/cunofs/page.md b/app/(docs)/cunofs/page.md new file mode 100644 index 000000000..2ba13d8bd --- /dev/null +++ b/app/(docs)/cunofs/page.md @@ -0,0 +1,13 @@ +--- +title: Overview +hideTitle: true +metadata: + title: CunoFS by Storj + description: CunoFS Documentation +weight: 0 +--- + +Welcome to the CunoFS Documentation! + +## What is CunoFS + diff --git a/app/sitemap.js b/app/sitemap.js index 5a01a90cd..ccd70efab 100644 --- a/app/sitemap.js +++ b/app/sitemap.js @@ -4,6 +4,7 @@ import { learnBottomNav, supportBottomNav, blogBottomNav, + cunosfBottomNav, } from '@/markdoc/navigation.mjs' export default function sitemap() { @@ -13,6 +14,7 @@ export default function sitemap() { nodeBottomNav, supportBottomNav, blogBottomNav, + cunosfBottomNav, ] .flat() .map(({ href }) => ({ url: `${process.env.SITE_URL}${href}` })) diff --git a/src/components/Navigation.jsx b/src/components/Navigation.jsx index 8b9d371ca..54e763f7e 100644 --- a/src/components/Navigation.jsx +++ b/src/components/Navigation.jsx @@ -9,6 +9,7 @@ import { nodeNavigation, learnNavigation, supportNavigation, + cunofsNavigation, } from '@/markdoc/navigation.mjs' function NavLink({ title, href, current, root, disclosure, className }) { @@ -148,6 +149,8 @@ export function Navigation({ className }) { sideNavigation = learnNavigation } else if (pathname.startsWith('/support')) { sideNavigation = supportNavigation + } else if (pathname.startsWith('/cunofs')) { + sideNavigation = cunofsNavigation } return ( diff --git a/src/components/PrevNextLinks.jsx b/src/components/PrevNextLinks.jsx index 1a6abf897..00fffd10c 100644 --- a/src/components/PrevNextLinks.jsx +++ b/src/components/PrevNextLinks.jsx @@ -10,6 +10,7 @@ import { learnBottomNav, supportBottomNav, blogBottomNav, + cunofsBottomNav, } from '@/markdoc/navigation.mjs' function ArrowIcon(props) { @@ -58,6 +59,8 @@ export function PrevNextLinks() { allLinks = supportBottomNav } else if (pathname.startsWith('/blog')) { allLinks = blogBottomNav + } else if (pathname.startsWith('/cunofs')) { + allLinks = cunofsBottomNav } let linkIndex = allLinks.findIndex((link) => link.href === pathname) diff --git a/src/components/Spaces.jsx b/src/components/Spaces.jsx index 01a35368a..0bf4cb34f 100644 --- a/src/components/Spaces.jsx +++ b/src/components/Spaces.jsx @@ -6,6 +6,7 @@ import clsx from 'clsx' const spaces = [ { name: 'Home', path: '/', href: '/dcs' }, { name: 'Learn', href: '/learn' }, + { name: 'CunoFS', href: '/cunofs' }, { name: 'Node', href: '/node' }, { name: 'Help Center', href: '/support' }, { name: 'Eng Blog', href: '/blog' }, diff --git a/src/markdoc/convertDocId.js b/src/markdoc/convertDocId.js index e3ca06658..d0f0442c9 100644 --- a/src/markdoc/convertDocId.js +++ b/src/markdoc/convertDocId.js @@ -8,6 +8,7 @@ import { learnBottomNav, supportBottomNav, blogBottomNav, + cunofsBottomNav, } from '@/markdoc/navigation.mjs' function getFrontmatter(filePath) { @@ -55,6 +56,9 @@ export function convertDocId(href) { if (!entry) { entry = blogBottomNav.find((o) => o.docId === docId) } + if (!entry) { + entry = cunofsBottomNav.find((o) => o.docId === docId) + } if (!entry) { throw new Error(`Could not find docId: ${docId}`) diff --git a/src/markdoc/navigation.mjs b/src/markdoc/navigation.mjs index b611d10f2..d426e0a59 100644 --- a/src/markdoc/navigation.mjs +++ b/src/markdoc/navigation.mjs @@ -192,6 +192,8 @@ export default function (nextConfig = {}) { sortByWeightThenTitle(learn) let support = walkDir(`${dir}/\(docs\)/support`, 'support') sortByWeightThenTitle(support) + let cunofs = walkDir(`${dir}/\(docs\)/cunofs`, 'cunofs') + sortByWeightThenTitle(cunofs) let blog = walkDir(`${dir}/\(blog\)/blog`, 'blog', { hasRoot: false, }) @@ -207,6 +209,7 @@ export default function (nextConfig = {}) { ...getRedirects(node), ...getRedirects(learn), ...getRedirects(support), + ...getRedirects(cunofs), ...getRedirects(blog), ] let firebaseConfig = JSON.parse( @@ -227,6 +230,7 @@ export default function (nextConfig = {}) { let nodeBottomNav = extractHrefObjects(structuredClone(node)) let learnBottomNav = extractHrefObjects(structuredClone(learn)) let supportBottomNav = extractHrefObjects(structuredClone(support)) + let cunofsBottomNav = extractHrefObjects(structuredClone(cunofs)) let blogBottomNav = extractHrefObjects(structuredClone(blog)) // When this file is imported within the application @@ -237,6 +241,8 @@ export default function (nextConfig = {}) { export const learnNavigation = ${JSON.stringify(learn)} export const supportNavigation = ${JSON.stringify(support)} export const blogNavigation = ${JSON.stringify(blog)} + export const cunofsNavigation = ${JSON.stringify(cunofs)} + export const cunofsBottomNav = ${JSON.stringify(cunofsBottomNav)} export const dcsBottomNav = ${JSON.stringify(dcsBottomNav)} export const nodeBottomNav = ${JSON.stringify(nodeBottomNav)} export const learnBottomNav = ${JSON.stringify(learnBottomNav)}