0.4.10-alpha.0 • Published 2 years ago

@gatsby-mdx-suite/mdx-scroll-effects v0.4.10-alpha.0

Weekly downloads
25
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.

🚀 Start right away using our GatsbyJS starter

Core features

Implemented features

  • Fully customizable, extend and alterable MDX components. You can modify them by shadowing, overwriting the theme and style them via emotion and tailwindCSS.
  • 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

  • Upcomming support of WYSIWYG editors. Waiting for https://github.com/blocks/blocks to get more progress, in the meantime, we developed our own split-screen editor using Ace Editor and MDX runtime. Curious? The playground in the docs is powered by it.
  • Automatic parsing of MDX content to create graphql relations to used assets like images, videos & others.
  • More components to come
  • GDPR/DSGVO compatability. We will give visitors full control over data flow and analytics, and provide proper UX if they decide against it.

Upcoming features

  • A few production websites are already running on this. We are getting closer to a beta release.
  • Build & Website performance improvements
  • DX & Stability

Core dependencies

  • React using mostly the hooks API & contexts
  • GatsbyJS with themes -> Emotion & tailwindcss via twin.macro
  • Internationalization support via i18next
  • Optional support for menu rendering, icons, themes, color sets, ...

Project structure

  • GastbyJS themes: ./themes/* or gatsby-theme-mdx-suite-*
    • gatsby-theme-mdx-suite-core:
      • Has some required configuration opions!
      • Connects to Contentful
      • Integrates MDX into your project
      • Initializes the MDX data context and i18next
      • Integrates i18next & emotion
    • gatsby-theme-mdx-suite-base: Adds default components to MDX (https://github.com/axe312ger/gatsby-mdx-suite/blob/master/themes/base/src/gatsby-plugin-theme-ui/components.js)
      • Adds SVG support
      • Adds SEO plugins (Sitemap, Helmet, ...)
      • Adds Icons support
    • gatsby-theme-mdx-suite-docs:
      • Enables /docs with MDX playground, components documentation and theme overview
    • gatsby-theme-mdx-suite-base:
      • Adds a blog to the page with proper pagination, back to the news button, ...
      • Some example blog posts
  • 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
  • Examples: ./starters/*
    • Minimal:
      • Integrates required core theme: gatsby-theme-mdx-suite-core
      • Just a minimal selection of MDX components
      • Minimal default styling
    • Base:
      • Features of minimal plus:
      • Enables optional base theme: gatsby-theme-mdx-suite-base
      • Simple demo content
      • Some more default styling
      • Enabled optional video support
      • Includes the docs
    • Full:
      • Features of base plus:
      • Complex demo content
      • Demonstrates how to shadow components
      • Enabled optional blog theme gatsby-theme-mdx-suite-blog
      • Additional theme overwrites

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

Note: This is outdated. Have a look at the examples in /examples

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

0.4.10-alpha.0

2 years ago

0.4.10-alpha.1

2 years ago

0.4.9

2 years ago

0.4.8

2 years ago

0.4.7

2 years ago

0.4.6

2 years ago

0.4.5

3 years ago

0.4.4

3 years ago

0.4.3

3 years ago

0.4.2

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.3.9

3 years ago

0.3.8

3 years ago

0.3.6

3 years ago

0.3.5

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago