Tinacms Developer Docs

27 June 2024

This meeting primarily covers various technical challenges and discussions about using TinaCMS, especially focusing on configurations, debugging, and support for different frameworks. Key topics include:

🤖🤖

  1. Typescript Issues and Dependency Chains:

    • The team discussed issues arising from sub-dependencies breaking unexpectedly and addressed dependency chain updates. Jeff noted challenges in managing types across different packages in the monorepo, advising to run type checks from the root to maintain order.
  2. MDX and Formatting:

    • There were discussions on how TinaCMS handles MDX elements, including issues with indentation and formatting within lists and code blocks. Jeff highlighted the difference between MDX and standard markdown in handling whitespace and inline vs. block elements.
  3. Handling Multiple Sites in TinaCMS:

    • They explored the feasibility of using one TinaCMS instance to support multiple sites, discussing configuration approaches for different routes (e.g., for various city conferences) and managing editor access within TinaCMS’s folder structure.
  4. CLI, Builds, and Preview Mode:

    • Jeff explained the CLI’s role in spinning up the TinaCMS dev server, handling the GraphQL API locally, and managing site previews. The discussion also highlighted Next.js's use of preview and draft modes to avoid long build times for immediate content changes.
  5. Self-Hosting and Asset Management:

    • They went over different self-hosting packages for asset management (e.g., Cloudinary, Digital Ocean, and S3). These packages offer flexibility for managing media within TinaCMS, with considerations for how assets are stored and configured.
  6. TinaCMS Packages Overview:

    • Jeff outlined various TinaCMS packages, including the main @tinacms/tinacms for core features, the CLI for setup tasks, and the @tinacms/schema-tools for schema management. They discussed other packages like @tinacms/mdx, which handles markdown parsing, and @tinacms/graphql, used across the frontend and backend.
  7. Limitations with Hugo and Shortcodes:

    • Shortcode support in Hugo presents challenges due to the complex syntax and tokenization required. Jeff explained the workaround implemented in TinaCMS to manage Hugo shortcodes, noting its complexity and limited functionality. He also addressed Hugo’s static site limitations with no preview mode, which impacts users accustomed to dynamic site editing.

The session provided a comprehensive look at TinaCMS’s technical setup, handling MDX complexities, integrating with Next.js, and configuring support for different site structures and frameworks.

On this page