Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wellmann committed Oct 23, 2023
1 parent d872cfa commit 3861e41
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,33 @@
# Changelog


## 2.0.0

* Renaming to follow WordPress terminology

* Switch docs from Jekyll to docsify

* Allow block namespace to be customized through `Loader::setBlockNamespace`

* Update block white list

* Added Blade template engine

* Automatically add color utility classes to block wrapper

* Remove REST url reference on frontend

* Use `add_editor_style` to properly scope editor styles

* Add strict types

* Require block.json for settings

* Change namespace from `GutenbergBlocksFramework` to `GutenbergBlocks`

* Remove deprecated methods and properties


## 1.0.3

* Rename `addCriticalCss` to `addInlineCss`
Expand Down
6 changes: 4 additions & 2 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,21 @@ The subfolder name will represent the block slug and the class should be named a
blocks
└───my-block
│ │ block.js
│ │ edit.js
│ │ editor.scss // optional
│ │ block.json
│ │ MyBlock.php // optional
│ │ style.scss // or style.critical.scss
│ │ view.php
│ │ view.js // optional
└───my-block-example
│ │ block.js
│ │ edit.js
│ │ editor.scss // optional
│ │ block.json
│ │ MyBlockExample.php // optional
│ │ style.scss // or style.critical.scss
│ │ view.php
│ │ view.js // optional
│ ...
```
1 change: 0 additions & 1 deletion src/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public function setBlockNamespace(callable $callback): Loader

/**
* Defines an array of blocks that should be whitelisted.
* Use `KWIO\GutenbergBlocks\Loader::CORE_BLOCK_WHITELIST` and merge it with your array to extend the current whitelist.
*
* @param array $blockWhitelist Array of allowed block slugs.
*
Expand Down

0 comments on commit 3861e41

Please sign in to comment.