Skip to content

Commit

Permalink
Release 0.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradyvercher committed Aug 5, 2018
1 parent 312bdf0 commit 10b7579
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## 0.1.0 - 2018-08-05

* First release.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Gutenberg block for editing and displaying code with syntax highlighting.

![Screenshot of the code block editor showing available settings and syntax highlighting.](screenshot-1.png)
![Animation showing how to convert a code block, set the code language, and change the syntax highlight theme.](screenshot-1.gif)

## Features

Expand Down Expand Up @@ -34,11 +34,24 @@ _CodeMirror and Prism.js don't tokenize code exactly the same, so there will lik

## Installation

Shiny Code should be considered experimental while [Gutenberg](https://github.com/WordPress/gutenberg) is still in development. As such, it's currently only available from source:
To install _Shiny Code_:

1. [Download the latest release](https://github.com/cedaro/shiny-code/releases/latest) from GitHub (the saved file should be named `shiny-code-{version}.zip`).
2. Go to the _Plugins → Add New_ screen in your WordPress admin panel.
3. Click the __Upload__ button at the top next to the “Add Plugins” title.
4. Upload the zip file downloaded in the first step.
5. Click the __Activate Plugin__ link after installation completes.

### From Source

To build _Shiny Code_ from source, clone this repository in `wp-content/plugins/`, then run the build steps:

```shell
git clone https://github.com/cedaro/shiny-code.git
cd shiny-code
composer install
npm install
npm run build
```

After building the plugin, go to the _Plugins → Installed Plugins_ screen in your WordPress admin panel to activate _Shiny Code_.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shiny-code",
"version": "0.1.0-dev",
"version": "0.1.0",
"description": "A Gutenberg block for editing and displaying code with syntax highlighting.",
"homepage": "https://www.cedaro.com/",
"license": "GPL-2.0-or-later",
Expand Down
Binary file added screenshot-1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot-1.png
Binary file not shown.
4 changes: 2 additions & 2 deletions shiny-code.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Shiny Code
* Plugin URI: https://github.com/cedaro/shiny-code
* Description: A Gutenberg block for editing and displaying code with syntax highlighting.
* Version: 0.1.0-dev
* Version: 0.1.0
* Author: Cedaro
* Author URI: https://www.cedaro.com/
* License: GPL-2.0-or-later
Expand Down Expand Up @@ -38,7 +38,7 @@
*
* @var string
*/
const VERSION = '0.1.0-dev';
const VERSION = '0.1.0';

/**
* Load the Composer autoloader.
Expand Down

0 comments on commit 10b7579

Please sign in to comment.