Skip to content

Commit

Permalink
update source.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joulev authored Sep 21, 2023
1 parent 69db5b6 commit f1b6478
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { allDocs, allMeta } from "contentlayer/generated";
import { createContentlayer } from "next-docs-zeta/contentlayer";
import { PageTree } from "next-docs-zeta/server";

const offTopic = ["/non-nextjs-questions", "/good-question"];
const offTopic = ["/non-nextjs-questions", "/good-question", "/minimal-reproduction-repository"];

const {
tree: originalTree,
Expand All @@ -19,6 +19,11 @@ export const tree: PageTree = {
{ type: "separator", name: "Discord-specific" },
{ type: "page", name: "Non-Next.js Questions", url: "/non-nextjs-questions" },
{ type: "page", name: "How to ask a good question", url: "/good-question" },
{
type: "page",
name: "How to create a minimal reproduction repository",
url: "/minimal-reproduction-repository",
},
{ type: "separator", name: "Questions" },
...originalTree.children.filter(node => node.type !== "page" || !offTopic.includes(node.url)),
],
Expand Down

0 comments on commit f1b6478

Please sign in to comment.