From e9738fed61cf39fbe891aea6c0a160b050e036d1 Mon Sep 17 00:00:00 2001 From: Hammad Jutt Date: Mon, 23 Nov 2020 11:32:09 -0700 Subject: [PATCH] Fix NetlifyCMS (#164) * Fix NetlifyCMS Config * Rename files to MD if they dont need MDX * Fix link to admin UI --- ...a-player.mdx => how-to-become-a-player.md} | 0 docs/how-does-it-work/{xp.mdx => xp.md} | 0 .../{alignment2021.mdx => alignment2021.md} | 0 .../{metafam-way.mdx => metafam-way.md} | 0 ...wtf-is-metagame.mdx => wtf-is-metagame.md} | 0 src/components/signpost.js | 2 +- static/admin/config.yml | 26 +++++++++---------- static/admin/index.html | 1 + 8 files changed, 15 insertions(+), 14 deletions(-) rename docs/enter-metagame/{how-to-become-a-player.mdx => how-to-become-a-player.md} (100%) rename docs/how-does-it-work/{xp.mdx => xp.md} (100%) rename docs/resources/{alignment2021.mdx => alignment2021.md} (100%) rename docs/wtf-is-metagame/{metafam-way.mdx => metafam-way.md} (100%) rename docs/wtf-is-metagame/{wtf-is-metagame.mdx => wtf-is-metagame.md} (100%) diff --git a/docs/enter-metagame/how-to-become-a-player.mdx b/docs/enter-metagame/how-to-become-a-player.md similarity index 100% rename from docs/enter-metagame/how-to-become-a-player.mdx rename to docs/enter-metagame/how-to-become-a-player.md diff --git a/docs/how-does-it-work/xp.mdx b/docs/how-does-it-work/xp.md similarity index 100% rename from docs/how-does-it-work/xp.mdx rename to docs/how-does-it-work/xp.md diff --git a/docs/resources/alignment2021.mdx b/docs/resources/alignment2021.md similarity index 100% rename from docs/resources/alignment2021.mdx rename to docs/resources/alignment2021.md diff --git a/docs/wtf-is-metagame/metafam-way.mdx b/docs/wtf-is-metagame/metafam-way.md similarity index 100% rename from docs/wtf-is-metagame/metafam-way.mdx rename to docs/wtf-is-metagame/metafam-way.md diff --git a/docs/wtf-is-metagame/wtf-is-metagame.mdx b/docs/wtf-is-metagame/wtf-is-metagame.md similarity index 100% rename from docs/wtf-is-metagame/wtf-is-metagame.mdx rename to docs/wtf-is-metagame/wtf-is-metagame.md diff --git a/src/components/signpost.js b/src/components/signpost.js index e316c525..bc85847c 100644 --- a/src/components/signpost.js +++ b/src/components/signpost.js @@ -5,7 +5,7 @@ import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './signpost.module.scss'; -const directions = [ +export const directions = [ { emoji: '👈', label: 'Library', diff --git a/static/admin/config.yml b/static/admin/config.yml index 3ef41a94..593936c4 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -22,6 +22,19 @@ collections: - {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."} - {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."} - {label: "Body", name: "body", widget: "markdown"} + - name: "great-houses" + label: "Great Houses" + folder: "docs/great-houses" + create: true + slug: "{{slug}}" + preview_path: "docs/great-houses/{{slug}}" + editor: + preview: false + fields: + - {label: "Title", name: "title", widget: "string"} + - {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."} + - {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."} + - {label: "Body", name: "body", widget: "markdown"} - name: "Guilding" label: "Guilding" folder: "docs/Guilding" @@ -48,19 +61,6 @@ collections: - {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."} - {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."} - {label: "Body", name: "body", widget: "markdown"} - - name: "Players" - label: "Players" - folder: "docs/Players" - create: true - slug: "{{slug}}" - preview_path: "docs/Players/{{slug}}" - editor: - preview: false - fields: - - {label: "Title", name: "title", widget: "string"} - - {label: "Description", name: "description", widget: "string", required: false, hint: "The description of the post which will be used by search engines and link previews. If not present, will default to the first line of the post contents."} - - {label: "Cover Image",name: "image", widget: "image", required: false, hint: "Cover or thumbnail image that will be used when displaying the link to the post."} - - {label: "Body", name: "body", widget: "markdown"} - name: "resources" label: "Resources" folder: "docs/resources" diff --git a/static/admin/index.html b/static/admin/index.html index 2e1c02db..2b4f07bd 100644 --- a/static/admin/index.html +++ b/static/admin/index.html @@ -4,6 +4,7 @@ Content Manager +