0.14.7-alpha.0 • Published 2 years ago

gatsby-theme-mdx-suite-core v0.14.7-alpha.0

Weekly downloads
12
License
MIT
Repository
github
Last release
2 years ago

Gatsby MDX Suite

This collection of packages provides a drop in solution to support MDX in your GatsbyJS content workflow.

The intention is to provide a feature rich but fully custimizable set of components ready to use for your authors.

Core features

Implemented features

  • Fully customizable, extend and alterable MDX components. We just provide some minimal layout for the components and integrate with theme-ui.
  • Simple MDX tag structures to keep editing simple.
  • Contentful support
  • Starters & a theme for fast integration into your GatsbyJS project
  • Full i18n integration with helpers to easily create menus and language switchers
  • No crazy magic. The components code are pretty simple and very common dependencies are used
  • Automated generation of documentation of all components used within the system. Provides basic information about Markdown and MDX as well.
  • Components to render Menus, Links, Language Switch & more

Work in progress features

Upcoming features

  • GDPR/DSGVO compatability
  • This whole thing is still alpha, so more to come and anything might change.

Core dependencies

  • React using mostly the hooks API & contexts
  • GatsbyJS with themes -> EmotionJS, theme-ui, styled systems
  • Pretty plain integration of i18next

Project structure

  • GastbyJS theme: gatsby-theme-mdx-suite
    • Has required configuration opions
    • Integrates theme-ui & MDX into your project
    • Ensures the documentation will be rendered
    • Initializes the MDX data context and i18next
  • MDX components: ./mdx/* or @gatsby-mdx-suite/mdx-*
    • Basic - Very basic stuff like images and links
    • Layout - Add visual structure to the content. Grids, columns and more.
    • Contentful - Useful components when using Contentful as CMS
    • Bandcamp/Instagram/YoutTube - Render social media content like videos, posts, tracks and whole feeds
    • Media - A media gallery lightbox component which supports mixed content
    • More... ?
  • Helper packages: ./packages/* or @gatsby-mdx-suite/*
    • Contexts: Important and required package. Provides the contexts to get data available within MDX
    • i18n: Helpers to generate paths and render language switch component
    • seo: SEO helper components
    • menu: generate single menu levels or whole menu trees
  • Starters: ./starters/* or gatsby-starter-mdx-suite-*
    • Get quickly started, should be used as example implementations as well

Getting started

Either go for one of the starters and start hacking.

Or integrate the gatsby-theme-mdx-suite like the starters do into your project.

Or wait till somebody found time to write a tutorial how to do it.

Automated documentation

Within the /docs route a documentation apge will be generated. This provides:

  • Provide an introduction to Markdown and MDX to help new users getting into editing
  • Give an overview of all components integrated into the project
  • Renders interactive playgrounds for all components, including a list of available attributes.
  • Provides further information for developers:
    • Which data needs to be available for rendering?
    • Any extra information on how to alter and customize the components.
    • ...?

The problem of availability of data within MDX

Configuration

The most accurate documentation are the starters. Especially https://github.com/axe312ger/gatsby-mdx-suite/tree/master/starters/contentful.

Integrate into your project

This is just a quick listing, the whole readme will be improved soon and a getting starting guide provided.

How to alter the design

The idea is to support these options to alter the design:

Currently possible

In consideration

  • We might provide several attributes to alter styling
  • Shadow components via theme-ui or overwrite components by passing them to the root component (should work, still to be tested, might be a bad idea)
0.14.6

2 years ago

0.14.7-alpha.0

2 years ago

0.14.7-alpha.1

2 years ago

0.14.5

2 years ago

0.14.4

2 years ago

0.14.2

2 years ago

0.14.3

2 years ago

0.14.0

2 years ago

0.14.1

2 years ago

0.13.3

3 years ago

0.13.1

3 years ago

0.13.2

3 years ago

0.13.0

3 years ago

0.12.0

3 years ago

0.11.4

3 years ago

0.11.5

3 years ago

0.11.3

3 years ago

0.11.2

3 years ago

0.11.1

3 years ago

0.11.0

3 years ago

0.10.9

3 years ago

0.10.7

3 years ago

0.10.6

3 years ago

0.10.4

3 years ago

0.10.5

3 years ago

0.9.3

3 years ago

0.9.2

3 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

3 years ago

0.7.2

3 years ago

0.7.1

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.4

3 years ago

0.5.5

3 years ago

0.5.3

3 years ago

0.5.2

3 years ago

0.5.0

3 years ago

0.5.1

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago