Skip to content

Commit

Permalink
Configurable Icon Sets
Browse files Browse the repository at this point in the history
  • Loading branch information
jdamner committed Jun 19, 2024
1 parent e71c7f9 commit 9d3d235
Show file tree
Hide file tree
Showing 55 changed files with 88,613 additions and 12,811 deletions.
6 changes: 6 additions & 0 deletions bin/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

./bin/composer install
docker-compose up -d wordpress
./bin/npm install
./bin/npm run start
5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
}
],
"require": {
"swaggest/json-schema": "^0.12",
"symfony/validator": "^7.0 || ^6.0"
},
"scripts": {
Expand All @@ -44,6 +45,10 @@
"Boxuk\\BoxWpEditorTools\\": [
"packages/editor-tools/src",
"plugins/editor-tools/src/"
],
"Boxuk\\Iconography\\": [
"packages/iconography/includes/",
"plugins/iconography/includes/"
]
}
},
Expand Down
5 changes: 5 additions & 0 deletions docker/wordpress/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
FROM wordpress:6.5.3

COPY ./wp-config.php /var/www/html/wp-config.php
COPY ./db.php /var/www/html/wp-content/db.php
COPY ./mu-plugins /var/www/html/wp-content/mu-plugins
COPY ./themes /var/www/html/wp-content/themes
2 changes: 1 addition & 1 deletion docker/wordpress/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
/**#@-*/
$table_prefix = 'wp_'; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
define( 'WP_DEBUG', true );
define( 'WP_SCRIPT_DEBUG', true );
define( 'SCRIPT_DEBUG', true );

/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
Expand Down
26 changes: 3 additions & 23 deletions docs/editor-tools/index.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,13 @@
# Box WordPress Editor Tools

A collection of tools for modifying the WordPress Editor.

## Quick Start!

The tools here don't load automatically, so you need to get them going.
The quickest way would be to add to `functions.php`:
```php
( new \Boxuk\BoxWpEditorTools\BlockLoader() )->init(); // loads all block.json from /wp-content/themes/{theme}/build/**/*/block.json
( new \Boxuk\BoxWpEditorTools\Comments() )->init(); // disables comments
( new \Boxuk\BoxWpEditorTools\EditorCleanup() )->init(); // Cleans the block-editor to prevent loading plugins
( new \Boxuk\BoxWpEditorTools\PostTypes() )->init(); // registers post-types defined in /wp-content/themes/{theme}/post-types.json
( new \Boxuk\BoxWpEditorTools\TemplatePersistence() )->init(); // saves template changes to disk, not to the database.
( new \Boxuk\BoxWpEditorTools\Security\Security() )->init(); // Enables security hardening.
```
There's more options than that, so checkout the links below:
A collection of tools for modifying the WordPress Editor.

## Features

- [Asset Loader](./docs/AssetLoader.md) - help load assets generated by [wp-scripts](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/).
- [Block Loader](./docs/BlockLoader.md) - auto-loads blocks to the editor.
- [Comment Disablement](./docs/Comments.md) - disables comments.
- [Editor Cleanup](./docs/EditorCleanup.md) - removes some unnecessary bits from the block editor.
- [Post Type Registrations](./docs/PostTypes.md) - speeds up post-type registration with a single JSON file.
- [Template Persistence](./docs/TemplatePersistence.md) - speeds up template modifications by saving to disk instead of the database.
- [Post Type Registrations](./docs/PostTypes.md) - speeds up post-type registration with a single JSON file.
- [Template Persistence](./docs/TemplatePersistence.md) - speeds up template modifications by saving to disk instead of the database.
- [Security](./docs/Security.md) - Adds security hardening.

## Contributing

The dependancies include [WordPress Stubs](https://github.com/php-stubs/wordpress-stubs), so your IDE should automatically include type information for all WP core functions. If they're not, it's likely a mis-configuration of your IDE. There's helper guides in the WordPress Stubs repo.

Working on the repo requires packaging this into a functioning WordPress installation. A ready-to-go solution is yet to be developed so a PR is welcome, preferrably where Docker is the only dependancy.
16 changes: 0 additions & 16 deletions docs/iconography/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

Contents:
- [Editor Tools](./editor-tools/index.md)
- [Iconography](./iconography/index.md)
- [Iconography](../packages/iconography/README.md)
Loading

0 comments on commit 9d3d235

Please sign in to comment.