Skip to content

Organization site for general info, documentation, blogs & contribution guidelines.

Notifications You must be signed in to change notification settings

InfernoJJ/tinacms.org

This branch is 5132 commits behind tinacms/tina.io:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 7, 2020
May 1, 2020
May 5, 2020
Apr 28, 2020
Apr 28, 2020
May 5, 2020
Apr 30, 2020
Apr 29, 2020
May 1, 2020
Jan 8, 2020
Apr 22, 2020
Feb 25, 2020
Jan 29, 2020
Apr 2, 2020
Feb 7, 2020
Jan 24, 2020
Feb 7, 2020
Jan 8, 2020
Apr 22, 2020
Apr 22, 2020
Apr 28, 2020
Feb 24, 2020
Jan 31, 2020
May 1, 2020

Repository files navigation

TinaCMS.org

Source code for the tinacms.org website.

Development

yarn install
yarn develop

Testing Local TinaCMS Changes

If you have the tinacms repository cloned locally you can use it when running tinacms.org:

TINA=../path/to/tinacms yarn develop

You can also specify which packages you want to watch:

TINA=../path/to/tinacms TINA_WATCH=@tinacms/forms,react-tinacms-inline

Shortcodes

This site supports shortcodes in Markdown content via remark-shortcodes.

Shortcodes must be written as React components. To add a shortcode, export it from utils/shortcodes.tsx.

export function MyShortcode({ textContent }) {
  return <div>{textContent}</div>
}

Call the shortcode in your content by writing the name of the component encased in double curly braces. Key-value pairs included in the shortcode will be passed to your component as props.

{{ MyShortcode textContent="Example shortcode" }}

Shortcode Limitations

Shortcodes must be standalone elements; "wrapping" shortcodes will not work.

About

Organization site for general info, documentation, blogs & contribution guidelines.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.4%
  • JavaScript 1.6%