Skip to content

Commit

Permalink
small revert
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Mar 8, 2024
1 parent ecb592b commit f26f96c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@ logs

**/.next/**
website/public/examples/**
website/generatedPaths.ts
2 changes: 0 additions & 2 deletions website/build-examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@
rm -rf ./public/examples;
mkdir ./public/examples;
cp -r ../examples/lib/* ./public/examples

echo "export const examples = \"$(realpath ../examples)\";" > ./generatedPaths.ts
3 changes: 1 addition & 2 deletions website/utils/examples/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import kebabCase from "lodash/kebabCase";
import startCase from "lodash/startCase";
import glob from "fast-glob";
import { examples } from "generatedPaths";

import type { MenuItem } from "components/Menu";
import type { Metadata } from "next";
Expand Down Expand Up @@ -30,7 +29,7 @@ function walkMenu(
}

export function getProjectExamplesPath() {
return `${examples}/src/`;
return "../examples/src/";
}

export function getProjectExamples(projectName: string) {
Expand Down

0 comments on commit f26f96c

Please sign in to comment.