From 0113165d4787725b43651f7f61bbd3ad28f81352 Mon Sep 17 00:00:00 2001 From: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com> Date: Fri, 19 Jan 2024 17:09:25 +1100 Subject: [PATCH] More fixes --- app/routes/query.$version.docs.$framework.$.tsx | 2 +- app/routes/ranger.v1.docs.$.tsx | 2 +- app/routes/router.v1.docs.$.tsx | 2 +- app/routes/table.v8.docs.$.tsx | 2 +- app/routes/virtual.v3.docs.$.tsx | 2 +- app/utils/documents.server.ts | 1 + 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/routes/query.$version.docs.$framework.$.tsx b/app/routes/query.$version.docs.$framework.$.tsx index 0fc2913b..85963cc0 100644 --- a/app/routes/query.$version.docs.$framework.$.tsx +++ b/app/routes/query.$version.docs.$framework.$.tsx @@ -1,7 +1,7 @@ import type { LoaderFunctionArgs, MetaFunction } from '@remix-run/node' import { json, redirect } from '@remix-run/node' import { extractFrontMatter, fetchRepoFile } from '~/utils/documents.server' -import { repo, getBranch } from '~/routes/query' +import { repo, getBranch } from '~/projects/query' import { DefaultErrorBoundary } from '~/components/DefaultErrorBoundary' import { seo } from '~/utils/seo' import removeMarkdown from 'remove-markdown' diff --git a/app/routes/ranger.v1.docs.$.tsx b/app/routes/ranger.v1.docs.$.tsx index 6d604e0e..c948340c 100644 --- a/app/routes/ranger.v1.docs.$.tsx +++ b/app/routes/ranger.v1.docs.$.tsx @@ -2,7 +2,7 @@ import { useLoaderData } from '@remix-run/react' import type { LoaderFunctionArgs, MetaFunction } from '@remix-run/node' import { json } from '@remix-run/node' import { extractFrontMatter, fetchRepoFile } from '~/utils/documents.server' -import { v1branch } from '~/routes/ranger.v1' +import { v1branch } from '~/projects/ranger' import { DefaultErrorBoundary } from '~/components/DefaultErrorBoundary' import { seo } from '~/utils/seo' import removeMarkdown from 'remove-markdown' diff --git a/app/routes/router.v1.docs.$.tsx b/app/routes/router.v1.docs.$.tsx index db04fc7e..bba46e32 100644 --- a/app/routes/router.v1.docs.$.tsx +++ b/app/routes/router.v1.docs.$.tsx @@ -2,7 +2,7 @@ import { useLoaderData } from '@remix-run/react' import type { LoaderFunctionArgs, MetaFunction } from '@remix-run/node' import { json } from '@remix-run/node' import { extractFrontMatter, fetchRepoFile } from '~/utils/documents.server' -import { v1branch } from '~/routes/router.v1' +import { v1branch } from '~/projects/router' import { DefaultErrorBoundary } from '~/components/DefaultErrorBoundary' import { seo } from '~/utils/seo' import removeMarkdown from 'remove-markdown' diff --git a/app/routes/table.v8.docs.$.tsx b/app/routes/table.v8.docs.$.tsx index b624393b..120098f1 100644 --- a/app/routes/table.v8.docs.$.tsx +++ b/app/routes/table.v8.docs.$.tsx @@ -2,7 +2,7 @@ import { useLoaderData } from '@remix-run/react' import type { LoaderFunctionArgs, MetaFunction } from '@remix-run/node' import { json } from '@remix-run/node' import { extractFrontMatter, fetchRepoFile } from '~/utils/documents.server' -import { v8branch } from '~/routes/table.v8' +import { v8branch } from '~/projects/table' import { DefaultErrorBoundary } from '~/components/DefaultErrorBoundary' import { seo } from '~/utils/seo' import removeMarkdown from 'remove-markdown' diff --git a/app/routes/virtual.v3.docs.$.tsx b/app/routes/virtual.v3.docs.$.tsx index 48660dcb..6209633b 100644 --- a/app/routes/virtual.v3.docs.$.tsx +++ b/app/routes/virtual.v3.docs.$.tsx @@ -2,7 +2,7 @@ import { useLoaderData } from '@remix-run/react' import type { LoaderFunctionArgs, MetaFunction } from '@remix-run/node' import { json } from '@remix-run/node' import { extractFrontMatter, fetchRepoFile } from '~/utils/documents.server' -import { v3branch } from '~/routes/virtual.v3' +import { v3branch } from '~/projects/virtual' import { DefaultErrorBoundary } from '~/components/DefaultErrorBoundary' import { seo } from '~/utils/seo' import removeMarkdown from 'remove-markdown' diff --git a/app/utils/documents.server.ts b/app/utils/documents.server.ts index a54ef7cd..02621a8b 100644 --- a/app/utils/documents.server.ts +++ b/app/utils/documents.server.ts @@ -2,6 +2,7 @@ import fsp from 'node:fs/promises' import path from 'node:path' import * as graymatter from 'gray-matter' import { fetchCached } from '~/utils/cache.server' +import { fileURLToPath } from 'node:url' export type DocFrontMatter = { title: string