Grav HAX Plugin

HAX is a Grav plugin that can be used to get the HAX editor integrated into your Grav site with ease. Simply run from inside the hax plugin directory

Installation

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM). From the root of your Grav install type:

bin/gpm install webcomponents
bin/gpm install hax

Manual Installation

If for some reason you can’t use GPM you can manually install this plugin. Download the zip version of this repository and unzip it under GRAV-INSTALL-ROOT/user/plugins. Then, rename the folder to hax.

You should now have all the plugin files under:

GRAV-INSTALL-ROOT/user/plugins/hax

Also note that if you do this method you will need to install the webcomponents plugin as well.

Simple Usage

Create this folder if it doesn’t exist yet: GRAV-INSTALL-ROOT/user/webcomponents. Copy ` Runbower installinside theGRAV-INSTALL-ROOT/user/plugins/hax`

Configuration

HAX is enabled by default. You can change this behavior by setting enasbled: false in the plugin’s configuration. Simply copy the user/plugins/hax/hax.yaml into user/config/plugins/hax.yaml and make your modifications. There is also a variable to adjust positioning of the hax context menus based on theme interference as well as what elements to auto-load (or attempt to) during spin up.

```
enabled: true # enabled by default
autoload_element_list: ‘{"video-player": "@lrnwebcomponents/video-player/video-player.js","grid-plate": "@lrnwebcomponents/grid-plate/grid-plate.js","license-element": "@lrnwebcomponents/license-element/license-element.js","md-block": "@lrnwebcomponents/md-block/md-block.js","meme-maker": "@lrnwebcomponents/meme-maker/meme-maker.js","stop-note": "@lrnwebcomponents/stop-note/stop-note.js","wikipedia-query": "@lrnwebcomponents/wikipedia-query/wikipedia-query.js","cms-token": "@lrnwebcomponents/cms-hax/lib/cms-token.js","lrn-math-controller": "@lrnwebcomponents/lrn-math/lrn-math.js","retro-card": "@lrnwebcomponents/retro-card/retro-card.js","rss-items": "@lrnwebcomponents/rss-items/rss-items.js","self-check": "@lrnwebcomponents/self-check/self-check.js","team-member": "@lrnwebcomponents/team-member/team-member.js"}’ # a sample list of elements to expose. these will be removed as HAX matures and be optional / pointed to as far as what’s compatible
offset_left: 0 # theme compatibility if it’s goofed up