An open API service indexing awesome lists of open source software.

https://github.com/michaelfromyeg/sheet2shortcode

✏ Generating formatted shortcode for WordPress from a Google Sheet.
https://github.com/michaelfromyeg/sheet2shortcode

java shortcode wordpress

Last synced: 3 months ago
JSON representation

✏ Generating formatted shortcode for WordPress from a Google Sheet.

Awesome Lists containing this project

README

        

# 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](images/wp-editor.png)

![Seeing the results on the page](images/wp-onpage.png)

### 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](https://michaelfromyeg.github.io/sheet2shortcode/test/html/).

## Road map

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