Skip to content

Commit

Permalink
Refactor import paths and update import statements
Browse files Browse the repository at this point in the history
  • Loading branch information
rubixvi committed Oct 1, 2024
1 parent d8a0e02 commit e1a9e06
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import rehypeCodeTitles from "rehype-code-titles";
import rehypeKatex from 'rehype-katex'
import { visit } from "unist-util-visit";

import { PageRoutes } from "./pageroutes";
import { components } from './components';
import { Settings } from "./meta";
import { GitHubLink } from "../settings/navigation";
import { PageRoutes } from "@/lib/pageroutes";
import { components } from '@/lib/components';
import { Settings } from "@/lib/meta";
import { GitHubLink } from "@/settings/navigation";

async function parseMdx<Frontmatter>(rawMdx: string) {
return await compileMDX<Frontmatter>({
Expand Down
2 changes: 1 addition & 1 deletion lib/meta.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OpenGraph, TwitterCard } from "./metadata";
import { OpenGraph, TwitterCard } from "@/lib/metadata";
import {
gtm, gtmconnected, url, sitename, description, keywords, siteicon, urlimage, imagealt,
twitterhandle, companyname, companylink, branding, rightsidebar, feedbackedit,
Expand Down
2 changes: 1 addition & 1 deletion lib/pageroutes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Documents } from '../settings/documents';
import { Documents } from '@/settings/documents';

export type Paths =
| {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";

import { Paths } from "./pageroutes";
import { Paths } from "@/lib/pageroutes";

import searchData from "@/public/search-data/documents.json"

Expand Down

0 comments on commit e1a9e06

Please sign in to comment.