From 2871dca9bfce2588e23da0905d7142ef5ff1c1a1 Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Wed, 11 Nov 2020 21:25:32 +0000 Subject: [PATCH] refactor(docs): Change `behavior` to `behaviors` Makes a better URL. --- docs/blog/2020-09-21-zmk-sotf-2.md | 8 +-- docs/blog/2020-11-09-zmk-sotf-3.md | 4 +- .../docs/{behavior => behaviors}/bluetooth.md | 0 docs/docs/{behavior => behaviors}/hold-tap.md | 0 .../docs/{behavior => behaviors}/key-press.md | 0 docs/docs/{behavior => behaviors}/layers.md | 0 docs/docs/{behavior => behaviors}/lighting.md | 0 docs/docs/{behavior => behaviors}/misc.md | 0 docs/docs/{behavior => behaviors}/mod-tap.md | 0 docs/docs/{behavior => behaviors}/outputs.md | 0 docs/docs/{behavior => behaviors}/power.md | 0 docs/docs/{behavior => behaviors}/reset.md | 0 docs/docs/features/encoders.md | 2 +- docs/docs/features/keymaps.md | 4 +- docs/docs/intro.md | 52 +++++++++---------- docs/sidebars.js | 20 +++---- 16 files changed, 45 insertions(+), 45 deletions(-) rename docs/docs/{behavior => behaviors}/bluetooth.md (100%) rename docs/docs/{behavior => behaviors}/hold-tap.md (100%) rename docs/docs/{behavior => behaviors}/key-press.md (100%) rename docs/docs/{behavior => behaviors}/layers.md (100%) rename docs/docs/{behavior => behaviors}/lighting.md (100%) rename docs/docs/{behavior => behaviors}/misc.md (100%) rename docs/docs/{behavior => behaviors}/mod-tap.md (100%) rename docs/docs/{behavior => behaviors}/outputs.md (100%) rename docs/docs/{behavior => behaviors}/power.md (100%) rename docs/docs/{behavior => behaviors}/reset.md (100%) diff --git a/docs/blog/2020-09-21-zmk-sotf-2.md b/docs/blog/2020-09-21-zmk-sotf-2.md index 06c64f02..1ce61c9a 100644 --- a/docs/blog/2020-09-21-zmk-sotf-2.md +++ b/docs/blog/2020-09-21-zmk-sotf-2.md @@ -16,16 +16,16 @@ Hacktoberfest activity, and a current open call for community feedback on a ZMK So much going on in ZMK! -- Added a new generic [Hold Tap behavior](https://zmkfirmware.dev/docs/behavior/hold-tap) +- Added a new generic [Hold Tap behavior](https://zmkfirmware.dev/docs/behaviors/hold-tap) in [#146](https://github.com/zmkfirmware/zmk/pull/146) which now powers mod-tap, layer-tap, etc. - [okke-formsma] -- [BLE profile/connection management](https://zmkfirmware.dev/docs/behavior/bluetooth) +- [BLE profile/connection management](https://zmkfirmware.dev/docs/behaviors/bluetooth) in [#133](https://github.com/zmkfirmware/zmk/pull/133) - [petejohanson] - Integration tests were added to automate testing of behaviors in [#131](https://github.com/zmkfirmware/zmk/pull/131) by [BrainWart] & [petejohanson] -- [Toggle layer behavior](https://zmkfirmware.dev/docs/behavior/layers#toggle-layer), e.g. `&tog LOWER`, in +- [Toggle layer behavior](https://zmkfirmware.dev/docs/behaviors/layers#toggle-layer), e.g. `&tog LOWER`, in [#98](https://github.com/zmkfirmware/zmk/pull/98) - [BrainWart] - Key fix for dropped press/release over HID [#93](https://github.com/zmkfirmware/zmk/pull/93)/[#96](https://github.com/zmkfirmware/zmk/pull/96) - [careyk007](https://github.com/careyk007) & [petejohanson] - Code formatting standardized using `clang-format` in [#183](https://github.com/zmkfirmware/zmk/pull/183) - [petejohanson] -- [Bootloader reset behavior](https://zmkfirmware.dev/docs/behavior/reset#bootloader-reset), e.g. `&bootloader`, in [#116](https://github.com/zmkfirmware/zmk/pull/116) - [petejohanson] +- [Bootloader reset behavior](https://zmkfirmware.dev/docs/behaviors/reset#bootloader-reset), e.g. `&bootloader`, in [#116](https://github.com/zmkfirmware/zmk/pull/116) - [petejohanson] - Various bug fixes and documentation ## New Shields diff --git a/docs/blog/2020-11-09-zmk-sotf-3.md b/docs/blog/2020-11-09-zmk-sotf-3.md index 8752065b..9e250a99 100644 --- a/docs/blog/2020-11-09-zmk-sotf-3.md +++ b/docs/blog/2020-11-09-zmk-sotf-3.md @@ -67,7 +67,7 @@ With this change, you can add &ext_power EP_TOG ``` -to toggle (on/off) the power to external hardware like RGB underglow or OLEDs. Check out the [external power control](/docs/behavior/power#external-power-control) docs for more info. +to toggle (on/off) the power to external hardware like RGB underglow or OLEDs. Check out the [external power control](/docs/behaviors/power#external-power-control) docs for more info. #### Deep Sleep @@ -78,7 +78,7 @@ included some automatic power savings by switching to PORT events on the nRF52 c #### Output Selection -[joelspadin] added [output selection](/docs/behavior/outputs) to allow selecting whether to send output over USB or BLE if both are connected. This should now help avoid having "double keypresses" when your keyboard is plugged into a host. +[joelspadin] added [output selection](/docs/behaviors/outputs) to allow selecting whether to send output over USB or BLE if both are connected. This should now help avoid having "double keypresses" when your keyboard is plugged into a host. #### Bootloader Corruption Fix diff --git a/docs/docs/behavior/bluetooth.md b/docs/docs/behaviors/bluetooth.md similarity index 100% rename from docs/docs/behavior/bluetooth.md rename to docs/docs/behaviors/bluetooth.md diff --git a/docs/docs/behavior/hold-tap.md b/docs/docs/behaviors/hold-tap.md similarity index 100% rename from docs/docs/behavior/hold-tap.md rename to docs/docs/behaviors/hold-tap.md diff --git a/docs/docs/behavior/key-press.md b/docs/docs/behaviors/key-press.md similarity index 100% rename from docs/docs/behavior/key-press.md rename to docs/docs/behaviors/key-press.md diff --git a/docs/docs/behavior/layers.md b/docs/docs/behaviors/layers.md similarity index 100% rename from docs/docs/behavior/layers.md rename to docs/docs/behaviors/layers.md diff --git a/docs/docs/behavior/lighting.md b/docs/docs/behaviors/lighting.md similarity index 100% rename from docs/docs/behavior/lighting.md rename to docs/docs/behaviors/lighting.md diff --git a/docs/docs/behavior/misc.md b/docs/docs/behaviors/misc.md similarity index 100% rename from docs/docs/behavior/misc.md rename to docs/docs/behaviors/misc.md diff --git a/docs/docs/behavior/mod-tap.md b/docs/docs/behaviors/mod-tap.md similarity index 100% rename from docs/docs/behavior/mod-tap.md rename to docs/docs/behaviors/mod-tap.md diff --git a/docs/docs/behavior/outputs.md b/docs/docs/behaviors/outputs.md similarity index 100% rename from docs/docs/behavior/outputs.md rename to docs/docs/behaviors/outputs.md diff --git a/docs/docs/behavior/power.md b/docs/docs/behaviors/power.md similarity index 100% rename from docs/docs/behavior/power.md rename to docs/docs/behaviors/power.md diff --git a/docs/docs/behavior/reset.md b/docs/docs/behaviors/reset.md similarity index 100% rename from docs/docs/behavior/reset.md rename to docs/docs/behaviors/reset.md diff --git a/docs/docs/features/encoders.md b/docs/docs/features/encoders.md index b78f89e3..52a4357e 100644 --- a/docs/docs/features/encoders.md +++ b/docs/docs/features/encoders.md @@ -25,7 +25,7 @@ Rotation is handled separately as a type of sensor. The behavior for this is set sensor-bindings = ; ``` -- `BINDING`, for now, has only one behavior available; `&inc_dec_kp` for key presses (see [Key Press](/docs/behavior/key-press) for details on available keycodes). +- `BINDING`, for now, has only one behavior available; `&inc_dec_kp` for key presses (see [Key Press](/docs/behaviors/key-press) for details on available keycodes). - `CW_KEY` is the keycode activated by a clockwise turn. - `CCW_KEY` is the keycode activated by a counter-clockwise turn. diff --git a/docs/docs/features/keymaps.md b/docs/docs/features/keymaps.md index c4c16c3b..b5cae3c0 100644 --- a/docs/docs/features/keymaps.md +++ b/docs/docs/features/keymaps.md @@ -30,7 +30,7 @@ For example, the simplest behavior in ZMK is the "key press" behavior, which res (a certain spot on the keyboard), and when that position is pressed, send a keycode to the host, and when the key position is released, updates the host to notify of the keycode being released. -For the full set of possible behaviors, start at the [Key Press](/docs/behavior/key-press) behavior. +For the full set of possible behaviors, start at the [Key Press](/docs/behaviors/key-press) behavior. ## Layers @@ -148,7 +148,7 @@ Each layer should have: 1. A `bindings` property this will be a list of behaviour bindings, one for each key position for the keyboard. 1. (Optional) A `sensor-bindings` property that will be a list of behavior bindings for each sensor on the keyboard. (Currently, only encoders are supported as sensor hardware, but in the future devices like trackpoints would be supported the same way) -For the full set of possible behaviors, start at the [Key Press](/docs/behavior/key-press) behavior. +For the full set of possible behaviors, start at the [Key Press](/docs/behaviors/key-press) behavior. ### Complete Example diff --git a/docs/docs/intro.md b/docs/docs/intro.md index 55456d39..564eedb7 100644 --- a/docs/docs/intro.md +++ b/docs/docs/intro.md @@ -11,32 +11,32 @@ firmware built on the [Zephyr™ Project](https://zephyrproject.org/) Real Time ZMK is currently missing some features found in other popular firmware. This table compares the features supported by ZMK, BlueMicro and QMK: -| **Feature** | ZMK | BlueMicro | QMK | -| ---------------------------------------------------------------------------------------------------------------------- | :-: | :-------: | :-: | -| Low Latency BLE Support | ✅ | ✅ | | -| Multi-Device BLE Support | ✅ | | | -| [USB Connectivity](behavior/outputs) | ✅ | | ✅ | -| User Configuration Repositories | ✅ | | | -| Split Keyboard Support | ✅ | ✅ | ✅ | -| [Keymaps and Layers](behavior/layers) | ✅ | ✅ | ✅ | -| [Hold-Tap](behavior/hold-tap) (which includes [Mod-Tap](behavior/mod-tap) and [Layer-Tap](behavior/layers/#layer-tap)) | ✅ | ✅ | ✅ | -| [Keyboard Codes](codes/#keyboard) | ✅ | ✅ | ✅ | -| [Media](codes/#media-controls) & [Consumer](codes/#consumer-controls) Codes | ✅ | ✅ | ✅ | -| [Encoders](features/encoders)[^1] | ✅ | | ✅ | -| [OLED Display Support](features/displays)[^2] | 🚧 | 🚧 | ✅ | -| [RGB Underglow](features/underglow) | ✅ | ✅ | ✅ | -| One Shot Keys | 🚧 | ✅ | ✅ | -| Combo Keys | 🚧 | | ✅ | -| Macros | 🚧 | ✅ | ✅ | -| Mouse Keys | | ✅ | ✅ | -| Low Active Power Usage | ✅ | | | -| [Low Power Sleep States](https://github.com/zmkfirmware/zmk/pull/211) | 🚧 | ✅ | | -| [Low Power Mode (VCC Shutoff)](https://github.com/zmkfirmware/zmk/pull/242) | 🚧 | | | -| [Battery Reporting](https://github.com/zmkfirmware/zmk/issues/47) | 🚧 | ✅ | | -| Shell over BLE | | | | -| Realtime Keymap Updating | 💡 | | ✅ | -| AVR/8 Bit | | | ✅ | -| [Wide Range of ARM Chips Supported](https://docs.zephyrproject.org/latest/boards/index.html) | ✅ | | | +| **Feature** | ZMK | BlueMicro | QMK | +| ------------------------------------------------------------------------------------------------------------------------- | :-: | :-------: | :-: | +| Low Latency BLE Support | ✅ | ✅ | | +| Multi-Device BLE Support | ✅ | | | +| [USB Connectivity](behaviors/outputs) | ✅ | | ✅ | +| User Configuration Repositories | ✅ | | | +| Split Keyboard Support | ✅ | ✅ | ✅ | +| [Keymaps and Layers](behaviors/layers) | ✅ | ✅ | ✅ | +| [Hold-Tap](behaviors/hold-tap) (which includes [Mod-Tap](behaviors/mod-tap) and [Layer-Tap](behaviors/layers/#layer-tap)) | ✅ | ✅ | ✅ | +| [Keyboard Codes](codes/#keyboard) | ✅ | ✅ | ✅ | +| [Media](codes/#media-controls) & [Consumer](codes/#consumer-controls) Codes | ✅ | ✅ | ✅ | +| [Encoders](features/encoders)[^1] | ✅ | | ✅ | +| [OLED Display Support](features/displays)[^2] | 🚧 | 🚧 | ✅ | +| [RGB Underglow](features/underglow) | ✅ | ✅ | ✅ | +| One Shot Keys | 🚧 | ✅ | ✅ | +| Combo Keys | 🚧 | | ✅ | +| Macros | 🚧 | ✅ | ✅ | +| Mouse Keys | | ✅ | ✅ | +| Low Active Power Usage | ✅ | | | +| [Low Power Sleep States](https://github.com/zmkfirmware/zmk/pull/211) | 🚧 | ✅ | | +| [Low Power Mode (VCC Shutoff)](https://github.com/zmkfirmware/zmk/pull/242) | 🚧 | | | +| [Battery Reporting](https://github.com/zmkfirmware/zmk/issues/47) | 🚧 | ✅ | | +| Shell over BLE | | | | +| Realtime Keymap Updating | 💡 | | ✅ | +| AVR/8 Bit | | | ✅ | +| [Wide Range of ARM Chips Supported](https://docs.zephyrproject.org/latest/boards/index.html) | ✅ | | | [^2]: Encoders are not currently supported on peripheral side splits. [^1]: OLEDs are currently proof of concept in ZMK. diff --git a/docs/sidebars.js b/docs/sidebars.js index d64d96c1..9add9490 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -15,16 +15,16 @@ module.exports = { "features/underglow", ], Behaviors: [ - "behavior/key-press", - "behavior/layers", - "behavior/misc", - "behavior/hold-tap", - "behavior/mod-tap", - "behavior/reset", - "behavior/bluetooth", - "behavior/outputs", - "behavior/lighting", - "behavior/power", + "behaviors/key-press", + "behaviors/layers", + "behaviors/misc", + "behaviors/hold-tap", + "behaviors/mod-tap", + "behaviors/reset", + "behaviors/bluetooth", + "behaviors/outputs", + "behaviors/lighting", + "behaviors/power", ], Codes: [ "codes/index",