Skip to content

Commit

Permalink
Align some quantum sub-directories (qmk#14134)
Browse files Browse the repository at this point in the history
* Misc folder tidy

* Review comments

* Remove redundant entry
  • Loading branch information
zvecr authored Aug 24, 2021
1 parent 2827a3c commit 2cade3a
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 13 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
api_data/v1
doxygen/
quantum/version.h
!quantum/tools/eeprom_reset.hex
*.bin
*.eep
*.hex
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/python/qmk/cli/format/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

c_file_suffixes = ('c', 'h', 'cpp')
core_dirs = ('drivers', 'quantum', 'tests', 'tmk_core', 'platforms')
ignored = ('tmk_core/protocol/usb_hid', 'quantum/template', 'platforms/chibios')
ignored = ('tmk_core/protocol/usb_hid', 'platforms/chibios/boards')


def find_clang_format():
Expand Down
4 changes: 2 additions & 2 deletions lib/python/qmk/cli/new/keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ def find_user_name():


def copy_templates(keyboard_type, keyboard_path):
"""Copies the template files from quantum/template to the new keyboard directory.
"""Copies the template files from data/templates to the new keyboard directory.
"""
template_base_path = Path('quantum/template')
template_base_path = Path('data/templates')
keyboard_basename = keyboard_path.name

cli.log.info('Copying base template files...')
Expand Down
6 changes: 0 additions & 6 deletions quantum/tools/readme.md

This file was deleted.

6 changes: 3 additions & 3 deletions util/new_keyboard.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# This script generates a new keyboard directory under keyboards/,
# and copies the template files from quantum/template/ into it.
# and copies the template files from data/templates/ into it.

# Print an error message with the word "ERROR" in red.
echo_error() {
Expand Down Expand Up @@ -35,11 +35,11 @@ copy_templates() {
mkdir -p "$keyboard_dir"

echo -n "Copying base template files..."
cp -r "quantum/template/base/." "${keyboard_dir}"
cp -r "data/templates/base/." "${keyboard_dir}"
echo " done"

echo -n "Copying $keyboard_type template files..."
cp -r "quantum/template/${keyboard_type}/." "${keyboard_dir}"
cp -r "data/templates/${keyboard_type}/." "${keyboard_dir}"
echo " done"

echo -n "Renaming keyboard files..."
Expand Down
File renamed without changes.

0 comments on commit 2cade3a

Please sign in to comment.