Skip to content

Commit

Permalink
chore: catchup
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Nov 30, 2023
1 parent e79cd82 commit c8ba8c5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
1 change: 0 additions & 1 deletion content/courses/README.md

This file was deleted.

46 changes: 32 additions & 14 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,25 @@ const basicContentFields: FieldDefs = {
required: false,
default: false,
},

/**
* Custom fields that are used for the generated `nav.json` sidebar data
*/
sidebarLabel: {
type: "string",
description: "Custom sidebar label to use, instead of the document's title",
required: false,
},
sidebarSortOrder: {
type: "number",
description: "Sort order of the doc, relative to its siblings",
required: false,
},
hideTableOfContents: {
type: "boolean",
description: "Force hide the table of contents displayed on page",
required: false,
},
};

/**
Expand Down Expand Up @@ -275,21 +294,18 @@ export const SolanaDoc = defineDocumentType(() => ({
* Custom fields for this specific content record type
*/
// none
},
}));

/**
* Custom fields that are used for the generated `nav.json` sidebar data
*/
sidebarLabel: {
type: "string",
description:
"Custom sidebar label to use, instead of the document's title",
required: false,
},
sidebarSortOrder: {
type: "number",
description: "Sort order of the doc, relative to its siblings",
required: false,
},
/**
* Content record schema a single Solana RPC documentation record
*/
export const SolanaRPCDoc = defineDocumentType(() => ({
name: "SolanaRPCDoc",
filePathPattern: "docs/rpc/**/*.mdx",
fields: {
// use the standard content fields
...basicContentFields,
},
}));

Expand All @@ -313,6 +329,7 @@ export default makeSource({
// set the base content directories to search for content records
contentDirPath: ".",
contentDirInclude: [
"docs/rpc/**",
"docs/**",
"content/guides/**",
"content/courses/**",
Expand All @@ -331,6 +348,7 @@ export default makeSource({

// developer specific content
SolanaDoc,
SolanaRPCDoc,
DeveloperGuide,
DeveloperResource,
DeveloperWorkshop,
Expand Down

0 comments on commit c8ba8c5

Please sign in to comment.