Skip to content

michaelfromyeg/sheet2shortcode

Repository files navigation

sheet2shortcode

Generating formatted shortcode for WordPress from a Google Sheet.

Installation

  • Java
  • Gradle
  • (Recommended) VS Code, with the relevant Java extensions, including Checkstyle for Java
  • A Google credentials.json file in src/main/resources

Usage

Run gradle run to produce an output.

This project uses Google's Checks for linting. In VS Code, right-click on the src/ folder and click "check files" to see linting warnings and/or errors.

Auto check must be enabled in your VS Code settings.

Here's an example of the output.

Inputting the shortcode into a WordPress block

Seeing the results on the page

Tests

Run all tests with gradle test. Coverage is fairly poor right now, but I hope to improve that soon!

See the current coverage report here.

Road map

  • Add more extensibility for other (csv) file structures.
  • Write unit tests

About

✏ Generating formatted shortcode for WordPress from a Google Sheet.

Topics

Resources

License

Stars

Watchers

Forks

Languages