Skip to content

Commit

Permalink
Updated paths for new directory layout
Browse files Browse the repository at this point in the history
  • Loading branch information
davenquinn committed Jul 23, 2024
1 parent 389a953 commit 64d3620
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions pages/dev/+config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default {
// Forces global style separation from other pages by reloading
clientRouting: false,
};
// Forces global style separation from other pages by reloading
clientRouting: false,
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from "@blueprintjs/core";
import { useData } from "vike-react/useData";

import { SETTINGS, apiV2Prefix } from "../../../../../../../packages/settings";
import { SETTINGS, apiV2Prefix } from "@macrostrat-web/settings";
import hyper from "@macrostrat/hyper";
import {
DetailPanelStyle,
Expand Down
4 changes: 2 additions & 2 deletions pages/dev/docs/+onBeforeRender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { buildPageIndex } from "@macrostrat-web/text-toolchain";
import { renderToString } from "react-dom/server";
import { PageContext } from "vike/types";
import h from "@macrostrat/hyper";
const modules = import.meta.glob("../../../../content/**/*.md");
const modules = import.meta.glob("../../../content/**/*.md");
import { join } from "path";
import { dirname } from "path";
import { fileURLToPath } from "url";

const __dirname = dirname(fileURLToPath(import.meta.url));

const contentDirName = "../../../../content";
const contentDirName = "../../../content";
const contentDir = join(__dirname, contentDirName);

const [pageIndex, permalinkIndex] = buildPageIndex(contentDir, "/dev/docs");
Expand Down
2 changes: 1 addition & 1 deletion pages/map/dev/+Page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { loadableElement } from "~/_utils";
import styles from "./main.module.styl";
import { MapColorsInspector } from "./color-schemes";
import { WeaverPage } from "../../../weaver";
import { WeaverPage } from "./weaver";
import { BrowserRouter as Router } from "react-router-dom";

const h = hyper.styled(styles);
Expand Down
File renamed without changes.

0 comments on commit 64d3620

Please sign in to comment.