Skip to content

feature: MDX Editor and Github CMS#82

Merged
lebalz merged 213 commits intomainfrom
feature/github-cms
Mar 1, 2025
Merged

feature: MDX Editor and Github CMS#82
lebalz merged 213 commits intomainfrom
feature/github-cms

Conversation

@bh0fer
Copy link
Contributor

@bh0fer bh0fer commented Jan 10, 2025

Github CMS with MDX-Editor

  • Image-Upload
  • Media-Plugins (video, audio, ...)

👉 https://deploy-preview-82--teaching-dev.netlify.app/cms

Updates to your docusaurus.config.ts

import dynamicRouterPlugin, { Config as DynamicRouteConfig} from './src/plugins/plugin-dynamic-routes';

const config: Config = {
    presets: [
        [
            'classic',
            {
                docs: {
                    editUrl: '/cms/',
                },
                blog: {
                    editUrl: '/cms/',
                },
                pages: {
                    editUrl: '/cms/',
                },
            }
        ]
    ],
    themeConfig: {
        navbar: {
            items: [
                {
                    to: '/cms',
                    label: 'CMS',
                    position: 'left',
                }
            ]
        }
    },
    plugins: [
        [
            dynamicRouterPlugin,
            {
                routes: [
                    {
                        path: '/rooms/',
                        component: '@tdev-components/Rooms',
                    },
                    {
                        path: '/cms/',
                        component: '@tdev-components/Cms',
                    }
                ]
            } satisfies DynamicRouteConfig
        ],
() => {
      return {
        name: 'alias-configuration',
        configureWebpack(config, isServer, utils, content) {
          return {
            resolve: {
              alias: {
// new alias!
                '@tdev-plugins': path.resolve(__dirname, './src/plugins'),
              }
            }
          }
        }
      }
    },
    ]
};

@netlify
Copy link

netlify bot commented Jan 10, 2025

Deploy Preview for teaching-dev ready!

Name Link
🔨 Latest commit 19eafe2
🔍 Latest deploy log https://app.netlify.com/sites/teaching-dev/deploys/67c3987c7ca5b10008df434d
😎 Deploy Preview https://deploy-preview-82--teaching-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@lebalz lebalz mentioned this pull request Jan 14, 2025
@lebalz
Copy link
Contributor

lebalz commented Mar 1, 2025

@SilasBerger i think this is ready to go - even not perfect, it is a good starting point to improve further :) i hope this does not introduce too many things that clash with your current setup ;)

@lebalz lebalz merged commit 8993f71 into main Mar 1, 2025
5 checks passed
@lebalz lebalz deleted the feature/github-cms branch March 1, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants