-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into led-drivers-documentation
- Loading branch information
Showing
75 changed files
with
2,439 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,18 @@ on: | |
push: | ||
branches: | ||
- master | ||
- vitepress | ||
paths: | ||
- 'builddefs/docsgen/**' | ||
- 'tmk_core/**' | ||
- 'quantum/**' | ||
- 'platforms/**' | ||
- 'docs/**' | ||
- '.github/workflows/docs.yml' | ||
pull_request: | ||
paths: | ||
- 'builddefs/docsgen/**' | ||
- 'docs/**' | ||
- '.github/workflows/docs.yml' | ||
|
||
defaults: | ||
run: | ||
|
@@ -25,61 +29,37 @@ jobs: | |
runs-on: ubuntu-latest | ||
container: ghcr.io/qmk/qmk_cli | ||
|
||
# protect against those who develop with their fork on master | ||
if: github.repository == 'qmk/qmk_firmware' || (github.repository == 'tzarc/qmk_firmware' && github.ref == 'refs/heads/vitepress') | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install dependencies | ||
run: | | ||
apt-get update && apt-get install -y rsync doxygen curl | ||
apt-get update && apt-get install -y rsync doxygen | ||
# install nvm | ||
touch $HOME/.bashrc | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | ||
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | ||
- name: Install node | ||
run: | | ||
source $HOME/.bashrc | ||
nvm install 20 | ||
nvm use 20 | ||
corepack enable | ||
npm install -g moxygen | ||
- name: Build docs | ||
run: | | ||
source $HOME/.bashrc | ||
nvm use 20 | ||
qmk --verbose generate-docs | ||
touch '.build/docs/.nojekyll' | ||
- name: Set CNAME | ||
if: github.repository == 'qmk/qmk_firmware' | ||
run: | | ||
# Override target CNAME | ||
echo 'docs.qmk.fm' > .build/docs/CNAME | ||
- name: Override CNAME | ||
if: github.repository == 'tzarc/qmk_firmware' | ||
run: | | ||
# Temporarily override target CNAME during development | ||
echo 'vitepress.qmk.fm' > .build/docs/CNAME | ||
- name: Deploy | ||
if: github.repository == 'qmk/qmk_firmware' | ||
if: ${{ github.event_name == 'push' && github.repository == 'qmk/qmk_firmware' }} | ||
uses: JamesIves/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: gh-pages | ||
folder: .build/docs | ||
git-config-name: QMK Bot | ||
git-config-email: [email protected] | ||
|
||
- name: Deploy | ||
if: github.repository == 'tzarc/qmk_firmware' | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: .build/docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"/adding_a_keyboard_to_qmk": "/hardware_keyboard_guidelines", | ||
"/build_environment_setup": "/newbs_getting_started", | ||
"/cli_dev_configuration": "/cli_configuration", | ||
"/dynamic_macros": "/feature_dynamic_macros", | ||
"/feature_common_shortcuts": "/feature_advanced_keycodes", | ||
"/getting_started_build_tools": "/newbs_getting_started", | ||
"/getting_started_getting_help": "/support", | ||
"/glossary": "/reference_glossary", | ||
"/key_lock": "/feature_key_lock", | ||
"/make_instructions": "/getting_started_make_guide", | ||
"/python_development": "/cli_development", | ||
"/space_cadet_shift": "/feature_space_cadet_shift", | ||
"/tap_dance": "/feature_tap_dance", | ||
"/tutorial": "/newbs", | ||
"/unicode": "/feature_unicode", | ||
|
||
"/adc_driver": "/drivers/adc", | ||
"/apa102_driver": "/drivers/apa102", | ||
"/audio_driver": "/drivers/audio", | ||
"/eeprom_driver": "/drivers/eeprom", | ||
"/feature_audio": "/features/audio", | ||
"/feature_auto_shift": "/features/auto_shift", | ||
"/feature_autocorrect": "/features/autocorrect", | ||
"/feature_backlight": "/features/backlight", | ||
"/feature_bluetooth": "/features/bluetooth", | ||
"/feature_bootmagic": "/features/bootmagic", | ||
"/feature_caps_word": "/features/caps_word", | ||
"/feature_combo": "/features/combo", | ||
"/feature_command": "/features/command", | ||
"/feature_digitizer": "/features/digitizer", | ||
"/feature_dip_switch": "/features/dip_switch", | ||
"/feature_dynamic_macros": "/features/dynamic_macros", | ||
"/feature_encoders": "/features/encoders", | ||
"/feature_grave_esc": "/features/grave_esc", | ||
"/feature_haptic_feedback": "/features/haptic_feedback", | ||
"/feature_hd44780": "/features/hd44780", | ||
"/feature_joystick": "/features/joystick", | ||
"/feature_key_lock": "/features/key_lock", | ||
"/feature_key_overrides": "/features/key_overrides", | ||
"/feature_leader_key": "/features/leader_key", | ||
"/feature_led_indicators": "/features/led_indicators", | ||
"/feature_led_matrix": "/features/led_matrix", | ||
"/feature_midi": "/features/midi", | ||
"/feature_mouse_keys": "/features/mouse_keys", | ||
"/feature_oled_driver": "/features/oled_driver", | ||
"/feature_os_detection": "/features/os_detection", | ||
"/feature_pointing_device": "/features/pointing_device", | ||
"/feature_programmable_button": "/features/programmable_button", | ||
"/feature_ps2_mouse": "/features/ps2_mouse", | ||
"/feature_rawhid": "/features/rawhid", | ||
"/feature_repeat_key": "/features/repeat_key", | ||
"/feature_rgb_matrix": "/features/rgb_matrix", | ||
"/feature_rgblight": "/features/rgblight", | ||
"/feature_secure": "/features/secure", | ||
"/feature_send_string": "/features/send_string", | ||
"/feature_sequencer": "/features/sequencer", | ||
"/feature_space_cadet": "/features/space_cadet", | ||
"/feature_split_keyboard": "/features/split_keyboard", | ||
"/feature_st7565": "/features/st7565", | ||
"/feature_stenography": "/features/stenography", | ||
"/feature_swap_hands": "/features/swap_hands", | ||
"/feature_tap_dance": "/features/tap_dance", | ||
"/feature_tri_layer": "/features/tri_layer", | ||
"/feature_unicode": "/features/unicode", | ||
"/feature_wpm": "/features/wpm", | ||
"/flash_driver": "/drivers/flash", | ||
"/gpio_control": "/drivers/gpio", | ||
"/i2c_driver": "/drivers/i2c", | ||
"/serial_driver": "/drivers/serial", | ||
"/spi_driver": "/drivers/spi", | ||
"/uart_driver": "/drivers/uart", | ||
"/ws2812_driver": "/drivers/ws2812" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.