Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ updates:
next-js:
patterns:
- 'next'
- 'eslint-config-next'
- '@next/eslint-plugin-next'
- 'next-*'
- '@vercel/*'
Expand Down
14 changes: 0 additions & 14 deletions apps/site/components/Common/ActiveLink.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions apps/site/components/__mocks__/client-context.mjs

This file was deleted.

4 changes: 0 additions & 4 deletions apps/site/components/__mocks__/next-image.mjs

This file was deleted.

31 changes: 0 additions & 31 deletions apps/site/components/withRouterSelect.tsx

This file was deleted.

9 changes: 0 additions & 9 deletions apps/site/next.constants.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@ export const NEXT_DATA_URL = process.env.NEXT_PUBLIC_DATA_URL
? `${BASE_URL}${BASE_PATH}/en/next-data/`
: `http://localhost:${process.env.PORT ?? 3000}/en/next-data/`;

/**
* This ReGeX is used to remove the `index.md(x)` suffix of a name and to remove
* the `.md(x)` extensions of a filename.
*
* This RegEx is used to transform the file system pathnames into acceptable
* Route Segments for Next.js Dynamic Routes on `pages/[...path].tsx`
*/
export const MD_EXTENSION_REGEX = /((\/)?(index))?\.mdx?$/i;

/**
* This is the default type of blog post type that we use for OG Meta Tags
*/
Expand Down
25 changes: 0 additions & 25 deletions apps/site/next.helpers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,6 @@ import { fileURLToPath } from 'node:url';

import { glob } from 'glob';

/**
* We create a locale cache of Glob Promises
* to avoid reading the file system multiple times
* this is done since we don't need to constantly re-run the glob
* query as it is only needed once
*
* @type {Map<string, Promise<string>>} */
const globCacheByPath = new Map();

export const getMatchingRoutes = (route = '', matches = []) =>
matches.some(match => route === match);

/**
* This method is responsible for reading all immediate subdirectories of a directory
*
* @param {string} root the root directory to search from
* @param {string} cwd the current working directory
* @returns {Promise<Array<string>>} a promise containing an array of directories
*/
export const getDirectories = async (root, cwd) => {
return glob('*', { root, cwd, withFileTypes: true })
.then(d => d.filter(e => e.isDirectory()))
.then(d => d.map(e => e.name));
};

/**
* This gets the relative path from `import.meta.url`
*
Expand Down
1 change: 0 additions & 1 deletion apps/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"@node-core/ui-components": "*",
"@node-core/website-i18n": "*",
"@nodevu/core": "0.3.0",
"@opentelemetry/api": "1.9.0",
"@orama/react-components": "^0.6.4",
"@oramacloud/client": "^2.1.4",
"@radix-ui/react-slot": "^1.1.2",
Expand Down
12 changes: 0 additions & 12 deletions apps/site/types/frontmatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,3 @@ export interface LegacyFrontMatter extends Record<string, any> {
labels?: Record<string, string>;
authors?: string;
}

// @TODO: Extra data from Frontmatter should not be a thing in the future
export interface LegacyBlogFrontMatter extends LegacyFrontMatter {
author: string;
date: string;
}

// @TODO: Extra data from Frontmatter should not be a thing in the future
export interface LegacyDownloadsFrontMatter extends LegacyFrontMatter {
downloads: Record<string, string>;
additional: Record<string, string>;
}
3 changes: 0 additions & 3 deletions apps/site/types/og.ts

This file was deleted.

Loading
Loading