Skip to content

Commit

Permalink
refactor: moved to content dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Jul 27, 2023
1 parent 4d113fa commit 9f076d5
Show file tree
Hide file tree
Showing 86 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ type grouping of content records aims to sever a specific purpose.
Below is a table describing each currently active type of content, including the
corresponding repo path and webpage for viewing on Solana.com.

| Content Type | Repo Path | Webpage URL |
| ------------ | --------------------------------------------------- | --------------------------------------------------------- |
| guides | [`./developers/guides`](./developers/guides/) | [View guides](https://solana.com/developers/guides) |
| resources | [`./developers/resources`](./developers/resources/) | [View resources](https://solana.com/developers/resources) |
| courses | [`./developers/courses`](./developers/courses/) | soon, tm. |
| Content Type | Repo Path | Webpage URL |
| ------------ | --------------------------------------------- | --------------------------------------------------------- |
| guides | [`./content/guides`](./content/guides/) | [View guides](https://solana.com/developers/guides) |
| resources | [`./content/resources`](./content/resources/) | [View resources](https://solana.com/developers/resources) |
| courses | [`./content/courses`](./content/courses/) | soon, tm. |

### Written in markdown

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const basicContentFields: FieldDefs = {
*/
export const DeveloperResource = defineDocumentType(() => ({
name: "DeveloperResource",
filePathPattern: `developers/resources/**/*.md`,
filePathPattern: `content/resources/**/*.md`,
fields: {
// use the standard content fields
...basicContentFields,
Expand All @@ -136,7 +136,7 @@ export const DeveloperResource = defineDocumentType(() => ({
*/
export const DeveloperGuide = defineDocumentType(() => ({
name: "DeveloperGuide",
filePathPattern: `developers/guides/**/*.md`,
filePathPattern: `content/guides/**/*.md`,
fields: {
// use the standard content fields
...basicContentFields,
Expand All @@ -157,7 +157,7 @@ export const DeveloperGuide = defineDocumentType(() => ({
*/
export const CourseMetadata = defineDocumentType(() => ({
name: "CourseMetadata",
filePathPattern: `developers/courses/**/metadata.json`,
filePathPattern: `content/courses/**/metadata.json`,
fields: {
// use the standard content fields
...basicContentFields,
Expand All @@ -182,7 +182,7 @@ export const CourseMetadata = defineDocumentType(() => ({
*/
export const CourseLesson = defineDocumentType(() => ({
name: "CourseLesson",
filePathPattern: `developers/courses/**/content/*.md`,
filePathPattern: `content/courses/**/content/*.md`,
fields: {
// use the standard content fields
...basicContentFields,
Expand Down Expand Up @@ -250,9 +250,9 @@ export default makeSource({
contentDirPath: ".",
contentDirInclude: [
"docs/**",
"developers/guides/**",
"developers/courses/**",
"developers/resources/**",
"content/guides/**",
"content/courses/**",
"content/resources/**",
],

/**
Expand Down

0 comments on commit 9f076d5

Please sign in to comment.