diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..aaaa7a4 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +tab_width = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca574d5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,60 @@ +# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig +# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos +# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,macos + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,macos + +# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option) + diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..2d62a22 --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,143 @@ +# markdownlint YAML configuration +# https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml + +# Default state for all rules +default: true + +# Path to configuration file to extend +extends: null + +# MD003/heading-style/header-style - Heading style +MD003: + # Heading style + style: 'atx' + +# MD004/ul-style - Unordered list style +MD004: + style: 'dash' + +# MD007/ul-indent - Unordered list indentation +MD007: + # Spaces for indent + indent: 2 + # Whether to indent the first level of the list + start_indented: false + +# MD009/no-trailing-spaces - Trailing spaces +MD009: + # Spaces for line break + br_spaces: 2 + # Allow spaces for empty lines in list items + list_item_empty_lines: false + # Include unnecessary breaks + strict: false + +# MD010/no-hard-tabs - Hard tabs +MD010: + # Include code blocks + code_blocks: true + +# MD012/no-multiple-blanks - Multiple consecutive blank lines +MD012: + # Consecutive blank lines + maximum: 1 + +# MD013/line-length - Line length +MD013: + # Number of characters + line_length: 500 + # Number of characters for headings + heading_line_length: 100 + # Number of characters for code blocks + code_block_line_length: 80 + # Include code blocks + code_blocks: false + # Include tables + tables: false + # Include headings + headings: true + # Include headings + headers: true + # Strict length checking + strict: false + # Stern length checking + stern: false + +# MD022/blanks-around-headings/blanks-around-headers - Headings should be surrounded by blank lines +MD022: + # Blank lines above heading + lines_above: 1 + # Blank lines below heading + lines_below: 1 + +# MD024/no-duplicate-heading/no-duplicate-header - Multiple headings with the same content +MD024: + # Only check sibling headings + allow_different_nesting: true + +# MD025/single-title/single-h1 - Multiple top-level headings in the same document +MD025: + # Heading level + level: 1 + # RegExp for matching title in front matter + front_matter_title: "^\\s*title\\s*[:=]" + +# MD026/no-trailing-punctuation - Trailing punctuation in heading +MD026: + # Punctuation characters + punctuation: '.,;:!。,;:!' + +# MD029/ol-prefix - Ordered list item prefix +MD029: + # List style + style: 'one_or_ordered' + +# MD030/list-marker-space - Spaces after list markers +MD030: + # Spaces for single-line unordered list items + ul_single: 1 + # Spaces for single-line ordered list items + ol_single: 1 + # Spaces for multi-line unordered list items + ul_multi: 1 + # Spaces for multi-line ordered list items + ol_multi: 1 + +# MD033/no-inline-html - Inline HTML +MD033: + # Allowed elements + allowed_elements: [details, summary, img, a, br, p] + +# MD035/hr-style - Horizontal rule style +MD035: + # Horizontal rule style + style: '---' + +# MD036/no-emphasis-as-heading/no-emphasis-as-header - Emphasis used instead of a heading +MD036: + # Punctuation characters + punctuation: '.,;:!?。,;:!?' + +# MD041/first-line-heading/first-line-h1 - First line in a file should be a top-level heading +MD041: + # Heading level + level: 1 + # RegExp for matching title in front matter + front_matter_title: "^\\s*title\\s*[:=]" + +# MD044/proper-names - Proper names should have the correct capitalization +MD044: + # List of proper names + # names: + # Include code blocks + code_blocks: false + +# MD046/code-block-style - Code block style +MD046: + # Block style + style: 'fenced' + +# MD048/code-fence-style - Code fence style +MD048: + # Code fence style + style: 'backtick' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..53cb9d8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,31 @@ +# cSpell:ignore checkmake hadolint autofix autoupdate +repos: + - repo: meta + hooks: + - id: check-hooks-apply + - id: check-useless-excludes + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/igorshubovych/markdownlint-cli + rev: v0.38.0 + hooks: + - id: markdownlint + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.1.0 + hooks: + - id: prettier + - repo: https://github.com/adrienverge/yamllint.git + rev: v1.33.0 + hooks: + - id: yamllint + args: [--strict, -c=.yamllint.yaml] + - repo: local + hooks: + - id: yaml-file-extension + name: Check if YAML files has *.yaml extension. + entry: YAML filenames must have .yaml extension. + language: fail + files: .yml$ diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..635dfe2 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,28 @@ +steps: + editor-config: + image: mstruebing/editorconfig-checker:2.7.2 + depends_on: [] + + woodpecker-cli: + depends_on: [] + image: woodpeckerci/woodpecker-cli:v2.2.2-alpine + commands: + - woodpecker-cli lint C/ + - woodpecker-cli lint Docker/ + - woodpecker-cli lint Golang/ + - woodpecker-cli lint Hugo/ + - woodpecker-cli lint Jekyll/.woodpecker/jekyll.yaml + - woodpecker-cli lint KiCad/.woodpecker.yaml + - woodpecker-cli lint Mdbook/ + - woodpecker-cli lint NodeJS/ + - woodpecker-cli lint Python/ + - woodpecker-cli lint Rust/ + - woodpecker-cli lint StandardML/ + - woodpecker-cli lint Tectonic/ + - woodpecker-cli lint Typst/ + + yamllint: + depends_on: [] + image: cytopia/yamllint:alpine-1 + commands: + - yamllint --strict -c=.yamllint.yaml . diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 0f6f710..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,21 +0,0 @@ -steps: - editor-config: - image: mstruebing/editorconfig-checker - group: lint - - woodpecker-cli: - group: lint - image: woodpeckerci/woodpecker-cli:next-alpine - commands: - - woodpecker-cli lint golang/*.yml - - woodpecker-cli lint Docker/*.yml - - woodpecker-cli lint Hugo/*.yml - - woodpecker-cli lint Jekyll/jekyll.yml - - woodpecker-cli lint C/*.yml - - woodpecker-cli lint Rust/ - - woodpecker-cli lint Python/ - - woodpecker-cli lint StandardML/ - - woodpecker-cli lint tectonic/ - - woodpecker-cli lint NodeJS/11ty.yml - - woodpecker-cli lint KiCad/kibot.yml - - woodpecker-cli lint mdbook/*.yml diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..8a65c5c --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,9 @@ +extends: default + +ignore-from-file: + - .gitignore + +rules: + line-length: disable + document-start: disable + comments: disable diff --git a/C/make.yml b/C/.woodpecker/make.yaml similarity index 93% rename from C/make.yml rename to C/.woodpecker/make.yaml index 58cf950..ef23fd4 100644 --- a/C/make.yml +++ b/C/.woodpecker/make.yaml @@ -4,7 +4,7 @@ steps: # this step gets ran on "master" and "dev" branch. # also runs on pull requests targeting these branch. when: - branch: [ master, dev ] + branch: [master, dev] commands: | # alpine uses build-base for dev utilies such as system headers, make etc. apk add --no-cache build-base gcc >/dev/null diff --git a/C/meson-android.yml b/C/.woodpecker/meson-android.yaml similarity index 96% rename from C/meson-android.yml rename to C/.woodpecker/meson-android.yaml index b1779ff..1b08b4a 100644 --- a/C/meson-android.yml +++ b/C/.woodpecker/meson-android.yaml @@ -13,7 +13,7 @@ steps: # this step gets run on "master" and "dev" branches. # also runs on pull requests targeting these branches. when: - branch: [ master, dev ] + branch: [master, dev] commands: | # Possible profiles: # android-arm64-v8a.txt diff --git a/C/meson.yml b/C/.woodpecker/meson.yaml similarity index 95% rename from C/meson.yml rename to C/.woodpecker/meson.yaml index 74dc51d..6d0f0a8 100644 --- a/C/meson.yml +++ b/C/.woodpecker/meson.yaml @@ -15,7 +15,7 @@ steps: # this step gets run on "master" and "dev" branches. # also runs on pull requests targeting these branches. when: - branch: [ master, dev ] + branch: [master, dev] commands: | mkdir build && cd build meson .. diff --git a/Docker/buildx-multi-registries.yaml b/Docker/.woodpecker/buildx-multi-registries.yaml similarity index 100% rename from Docker/buildx-multi-registries.yaml rename to Docker/.woodpecker/buildx-multi-registries.yaml diff --git a/Docker/buildx.yml b/Docker/.woodpecker/buildx.yaml similarity index 100% rename from Docker/buildx.yml rename to Docker/.woodpecker/buildx.yaml diff --git a/Docker/kaniko.yml b/Docker/.woodpecker/kaniko.yaml similarity index 99% rename from Docker/kaniko.yml rename to Docker/.woodpecker/kaniko.yaml index bd25db7..44da122 100644 --- a/Docker/kaniko.yml +++ b/Docker/.woodpecker/kaniko.yaml @@ -1,5 +1,5 @@ # Pushes a Docker image without needing access to the Docker daemon -# +# # Pushing an image to a container registry authenticated: # DOCKER_USERNAME - Woodpecker CI Secret which is the container registry username # DOCKER_PASSWORD - Woodpecker CI Secret which is container registry password diff --git a/golang/Dockerfile b/Golang/.woodpecker/Dockerfile similarity index 80% rename from golang/Dockerfile rename to Golang/.woodpecker/Dockerfile index 857fe43..e266db2 100644 --- a/golang/Dockerfile +++ b/Golang/.woodpecker/Dockerfile @@ -1,10 +1,10 @@ # Replace 'APPLICATIONNAME' with the name of your golang project -FROM golang:1.17 AS certs +FROM golang AS certs FROM scratch -# copy certs from golang:1.17 image +# copy certs from golang image COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt # Copy prebuild Go binary into container @@ -14,4 +14,4 @@ COPY ./APPLICATIONNAME /APPLICATIONNAME #EXPOSE 3000 # Run application -CMD ["/APPLICATIONNAME"] \ No newline at end of file +CMD ["/APPLICATIONNAME"] diff --git a/golang/build-docker.yml b/Golang/.woodpecker/build-docker.yaml similarity index 96% rename from golang/build-docker.yml rename to Golang/.woodpecker/build-docker.yaml index 32cd545..5426459 100644 --- a/golang/build-docker.yml +++ b/Golang/.woodpecker/build-docker.yaml @@ -1,8 +1,7 @@ steps: # Builds your Go application build: - # Set your preferred Go version: - image: golang:1.17 + image: golang environment: # Needed if you want to cross-compile and package the binary in a container. - CGO_ENABLED=0 diff --git a/golang/build.yml b/Golang/.woodpecker/build.yaml similarity index 82% rename from golang/build.yml rename to Golang/.woodpecker/build.yaml index 7519672..a19f673 100644 --- a/golang/build.yml +++ b/Golang/.woodpecker/build.yaml @@ -1,6 +1,6 @@ steps: build: - image: golang:1.17 + image: golang commands: - go get - go build diff --git a/Hugo/hugo.yml b/Hugo/woodpecker.yaml similarity index 95% rename from Hugo/hugo.yml rename to Hugo/woodpecker.yaml index 9e005da..fd1b453 100644 --- a/Hugo/hugo.yml +++ b/Hugo/woodpecker.yaml @@ -30,12 +30,12 @@ steps: commands: - hugo --minify when: - event: [ pull_request, push ] + event: [pull_request, push] publish: image: bitnami/git # Must be set in Woodpecker configuration - secrets: [ mail, codeberg_token ] + secrets: [mail, codeberg_token] environment: - HUGO_OUTPUT=public commands: diff --git a/Jekyll/_config.yml b/Jekyll/.woodpecker/_config.yaml similarity index 57% rename from Jekyll/_config.yml rename to Jekyll/.woodpecker/_config.yaml index e733673..147a84e 100644 --- a/Jekyll/_config.yml +++ b/Jekyll/.woodpecker/_config.yaml @@ -3,7 +3,7 @@ url: https://www.myjekyllsite.TLD description: This is a beautiful page. remote_theme: pages-themes/cayman@v0.2.0 plugins: -- jekyll-remote-theme # add this line to the plugins list if you already have one + - jekyll-remote-theme # add this line to the plugins list if you already have one # The keep_files are needed to preserve git metadata when building -keep_files: [ .domains, LICENSE, .git, .gitignore ] -exclude: [ domains ] \ No newline at end of file +keep_files: [.domains, LICENSE, .git, .gitignore] +exclude: [domains] diff --git a/Jekyll/jekyll.yml b/Jekyll/.woodpecker/jekyll.yaml similarity index 97% rename from Jekyll/jekyll.yml rename to Jekyll/.woodpecker/jekyll.yaml index 5f2ac80..318cbc2 100644 --- a/Jekyll/jekyll.yml +++ b/Jekyll/.woodpecker/jekyll.yaml @@ -23,7 +23,7 @@ steps: build: # Use the official jekyll build container image: jekyll/jekyll - secrets: [ cbtoken, cbmail ] + secrets: [cbtoken, cbmail] commands: # Avoid permission denied errors - chmod -R a+w . @@ -49,4 +49,4 @@ steps: - cd _site - git add --all - git commit -m "Woodpecker CI Jekyll Build at $( env TZ=Europe/Berlin date +"%Y-%m-%d %X %Z" ) [SKIP CI]" - - git push \ No newline at end of file + - git push diff --git a/KiCad/kibot.yml b/KiCad/.woodpecker.yaml similarity index 100% rename from KiCad/kibot.yml rename to KiCad/.woodpecker.yaml diff --git a/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_pcb b/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_pcb index 98403e7..6c00e81 100644 --- a/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_pcb +++ b/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_pcb @@ -1,177 +1,177 @@ -(kicad_pcb (version 20221018) (generator pcbnew) - - (general - (thickness 1.6) - ) - - (paper "A4") - (layers - (0 "F.Cu" signal) - (31 "B.Cu" signal) - (32 "B.Adhes" user "B.Adhesive") - (33 "F.Adhes" user "F.Adhesive") - (34 "B.Paste" user) - (35 "F.Paste" user) - (36 "B.SilkS" user "B.Silkscreen") - (37 "F.SilkS" user "F.Silkscreen") - (38 "B.Mask" user) - (39 "F.Mask" user) - (40 "Dwgs.User" user "User.Drawings") - (41 "Cmts.User" user "User.Comments") - (42 "Eco1.User" user "User.Eco1") - (43 "Eco2.User" user "User.Eco2") - (44 "Edge.Cuts" user) - (45 "Margin" user) - (46 "B.CrtYd" user "B.Courtyard") - (47 "F.CrtYd" user "F.Courtyard") - (48 "B.Fab" user) - (49 "F.Fab" user) - (50 "User.1" user) - (51 "User.2" user) - (52 "User.3" user) - (53 "User.4" user) - (54 "User.5" user) - (55 "User.6" user) - (56 "User.7" user) - (57 "User.8" user) - (58 "User.9" user) - ) - - (setup - (pad_to_mask_clearance 0) - (pcbplotparams - (layerselection 0x00010fc_ffffffff) - (plot_on_all_layers_selection 0x0000000_00000000) - (disableapertmacros false) - (usegerberextensions false) - (usegerberattributes true) - (usegerberadvancedattributes true) - (creategerberjobfile true) - (dashed_line_dash_ratio 12.000000) - (dashed_line_gap_ratio 3.000000) - (svgprecision 4) - (plotframeref false) - (viasonmask false) - (mode 1) - (useauxorigin false) - (hpglpennumber 1) - (hpglpenspeed 20) - (hpglpendiameter 15.000000) - (dxfpolygonmode true) - (dxfimperialunits true) - (dxfusepcbnewfont true) - (psnegative false) - (psa4output false) - (plotreference true) - (plotvalue true) - (plotinvisibletext false) - (sketchpadsonfab false) - (subtractmaskfromsilk false) - (outputformat 1) - (mirror false) - (drillshape 1) - (scaleselection 1) - (outputdirectory "") - ) - ) - - (net 0 "") - (net 1 "+5V") - (net 2 "GNDD") - - (footprint "Connector_BarrelJack:BarrelJack_Horizontal" (layer "F.Cu") - (tstamp b9ee9335-c765-4978-adc7-c1ff263e38af) - (at 46.18 35.305) - (descr "DC Barrel Jack") - (tags "Power Jack") - (property "Sheetfile" "codeberg-kicad-kibot-example.kicad_sch") - (property "Sheetname" "") - (property "ki_description" "DC Barrel Jack") - (property "ki_keywords" "DC power barrel jack connector") - (path "/6cf979ce-2cc8-49d1-8454-dab2833b6925") - (attr through_hole) - (fp_text reference "J1" (at -8.45 5.75) (layer "F.SilkS") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 174bae05-97b7-4dce-b6f3-ee89b2286902) - ) - (fp_text value "Barrel_Jack" (at -6.2 -5.5) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp 14492fb6-fbeb-42a7-921b-a1392b12d795) - ) - (fp_text user "${REFERENCE}" (at -3 -2.95) (layer "F.Fab") - (effects (font (size 1 1) (thickness 0.15))) - (tstamp b7aa8bfa-c8c1-4854-9431-967e3e95c97a) - ) - (fp_line (start -13.8 -4.6) (end 0.9 -4.6) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 4568da28-67a8-470f-b0f2-deabf3eb0a01)) - (fp_line (start -13.8 4.6) (end -13.8 -4.6) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 810ae4b4-1fbb-4667-85e4-94cebf7822e4)) - (fp_line (start -5 4.6) (end -13.8 4.6) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 7e14449a-99e4-4994-836a-843a50a3439c)) - (fp_line (start 0.05 -4.8) (end 1.1 -4.8) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp f7c42e58-ff1c-4212-a065-82876b0e3ccc)) - (fp_line (start 0.9 -4.6) (end 0.9 -2) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp fa628fd6-8d3c-4998-b47a-5f6ab5381530)) - (fp_line (start 0.9 1.9) (end 0.9 4.6) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 4f3a5a06-104d-4932-8e56-b4eb6047cdb6)) - (fp_line (start 0.9 4.6) (end -1 4.6) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp ab767399-ec61-4652-a186-b007379658e1)) - (fp_line (start 1.1 -3.75) (end 1.1 -4.8) - (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 334ac96e-a196-488f-a056-d831211a7bd9)) - (fp_line (start -14 4.75) (end -14 -4.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp e0c6af5c-132d-4f8a-a6b8-8df6c64c78bb)) - (fp_line (start -5 4.75) (end -14 4.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 0458c09b-4396-40b2-86db-614ce5b5e4ec)) - (fp_line (start -5 6.75) (end -5 4.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 715fb15f-c689-4936-949e-67730c9312e2)) - (fp_line (start -1 4.75) (end -1 6.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp d068925b-2efb-482c-ae25-1e069a95144e)) - (fp_line (start -1 6.75) (end -5 6.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp d8690ec5-9af4-4156-9ad4-542ec600b0bf)) - (fp_line (start 1 -4.75) (end -14 -4.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 319a98ea-11d5-498c-a32a-bb8dd98f01cb)) - (fp_line (start 1 -4.5) (end 1 -4.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 31845d9a-0c03-48ea-8d9a-4b4a29b7b3df)) - (fp_line (start 1 -4.5) (end 1 -2) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 013e54a0-9c02-47d1-9b31-71b058169ff8)) - (fp_line (start 1 -2) (end 2 -2) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 03777462-2130-4e88-bfd5-412fa6b7a350)) - (fp_line (start 1 2) (end 1 4.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp b9ee8142-a378-40d1-b733-a919c196b8da)) - (fp_line (start 1 4.75) (end -1 4.75) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 645d7132-5eac-47ab-9876-d715528478a6)) - (fp_line (start 2 -2) (end 2 2) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 9afb100e-238e-4e86-9d7c-e8a0a725e7f8)) - (fp_line (start 2 2) (end 1 2) - (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp d7cf7e84-4d46-47b8-a68d-51c8353d1252)) - (fp_line (start -13.7 -4.5) (end -13.7 4.5) - (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp f21470f0-9cf5-4d1e-b00a-a6fb570db918)) - (fp_line (start -13.7 4.5) (end 0.8 4.5) - (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 2509992c-789e-4444-9ef8-11cc9d00d56e)) - (fp_line (start -10.2 -4.5) (end -10.2 4.5) - (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 8327ca13-7587-4ed0-a448-837baa78c8ba)) - (fp_line (start -0.003213 -4.505425) (end 0.8 -3.75) - (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 64299d5a-b098-471c-85e3-4df7f7ea3f36)) - (fp_line (start 0 -4.5) (end -13.7 -4.5) - (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 07a86bf3-b500-4991-bee7-f7e273226396)) - (fp_line (start 0.8 4.5) (end 0.8 -3.75) - (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp b0a07f8d-30c7-4d8f-8136-f9dbacb8e74a)) - (pad "1" thru_hole rect (at 0 0) (size 3.5 3.5) (drill oval 1 3) (layers "*.Cu" "*.Mask") - (net 1 "+5V") (pintype "passive") (tstamp 708945b2-aded-4938-8119-e431837adea2)) - (pad "2" thru_hole roundrect (at -6 0) (size 3 3.5) (drill oval 1 3) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.25) - (net 2 "GNDD") (pintype "passive") (tstamp e3b23d1e-9c99-4dfb-afc7-06713af001a0)) - (pad "3" thru_hole roundrect (at -3 4.7) (size 3.5 3.5) (drill oval 3 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.25) (tstamp 5f8c5fce-ce56-4d11-84ae-c4ca7fd9fbdb)) - (model "${KICAD6_3DMODEL_DIR}/Connector_BarrelJack.3dshapes/BarrelJack_Horizontal.wrl" - (offset (xyz 0 0 0)) - (scale (xyz 1 1 1)) - (rotate (xyz 0 0 0)) - ) - ) - - (gr_rect (start 31.75 25.4) (end 69.215 45.085) - (stroke (width 0.1) (type default)) (fill none) (layer "Edge.Cuts") (tstamp 1ca6c9b4-bc60-49c8-b4b0-2b1f259fa548)) - (gr_text "Amazing Barrel Jack PCB v1.0 " (at 40.64 28.575) (layer "F.SilkS") (tstamp 5c13eacf-f986-4db9-894a-7954ae68dd46) - (effects (font (size 1 1) (thickness 0.15)) (justify left bottom)) - ) - -) +(kicad_pcb (version 20221018) (generator pcbnew) + + (general + (thickness 1.6) + ) + + (paper "A4") + (layers + (0 "F.Cu" signal) + (31 "B.Cu" signal) + (32 "B.Adhes" user "B.Adhesive") + (33 "F.Adhes" user "F.Adhesive") + (34 "B.Paste" user) + (35 "F.Paste" user) + (36 "B.SilkS" user "B.Silkscreen") + (37 "F.SilkS" user "F.Silkscreen") + (38 "B.Mask" user) + (39 "F.Mask" user) + (40 "Dwgs.User" user "User.Drawings") + (41 "Cmts.User" user "User.Comments") + (42 "Eco1.User" user "User.Eco1") + (43 "Eco2.User" user "User.Eco2") + (44 "Edge.Cuts" user) + (45 "Margin" user) + (46 "B.CrtYd" user "B.Courtyard") + (47 "F.CrtYd" user "F.Courtyard") + (48 "B.Fab" user) + (49 "F.Fab" user) + (50 "User.1" user) + (51 "User.2" user) + (52 "User.3" user) + (53 "User.4" user) + (54 "User.5" user) + (55 "User.6" user) + (56 "User.7" user) + (57 "User.8" user) + (58 "User.9" user) + ) + + (setup + (pad_to_mask_clearance 0) + (pcbplotparams + (layerselection 0x00010fc_ffffffff) + (plot_on_all_layers_selection 0x0000000_00000000) + (disableapertmacros false) + (usegerberextensions false) + (usegerberattributes true) + (usegerberadvancedattributes true) + (creategerberjobfile true) + (dashed_line_dash_ratio 12.000000) + (dashed_line_gap_ratio 3.000000) + (svgprecision 4) + (plotframeref false) + (viasonmask false) + (mode 1) + (useauxorigin false) + (hpglpennumber 1) + (hpglpenspeed 20) + (hpglpendiameter 15.000000) + (dxfpolygonmode true) + (dxfimperialunits true) + (dxfusepcbnewfont true) + (psnegative false) + (psa4output false) + (plotreference true) + (plotvalue true) + (plotinvisibletext false) + (sketchpadsonfab false) + (subtractmaskfromsilk false) + (outputformat 1) + (mirror false) + (drillshape 1) + (scaleselection 1) + (outputdirectory "") + ) + ) + + (net 0 "") + (net 1 "+5V") + (net 2 "GNDD") + + (footprint "Connector_BarrelJack:BarrelJack_Horizontal" (layer "F.Cu") + (tstamp b9ee9335-c765-4978-adc7-c1ff263e38af) + (at 46.18 35.305) + (descr "DC Barrel Jack") + (tags "Power Jack") + (property "Sheetfile" "codeberg-kicad-kibot-example.kicad_sch") + (property "Sheetname" "") + (property "ki_description" "DC Barrel Jack") + (property "ki_keywords" "DC power barrel jack connector") + (path "/6cf979ce-2cc8-49d1-8454-dab2833b6925") + (attr through_hole) + (fp_text reference "J1" (at -8.45 5.75) (layer "F.SilkS") + (effects (font (size 1 1) (thickness 0.15))) + (tstamp 174bae05-97b7-4dce-b6f3-ee89b2286902) + ) + (fp_text value "Barrel_Jack" (at -6.2 -5.5) (layer "F.Fab") + (effects (font (size 1 1) (thickness 0.15))) + (tstamp 14492fb6-fbeb-42a7-921b-a1392b12d795) + ) + (fp_text user "${REFERENCE}" (at -3 -2.95) (layer "F.Fab") + (effects (font (size 1 1) (thickness 0.15))) + (tstamp b7aa8bfa-c8c1-4854-9431-967e3e95c97a) + ) + (fp_line (start -13.8 -4.6) (end 0.9 -4.6) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 4568da28-67a8-470f-b0f2-deabf3eb0a01)) + (fp_line (start -13.8 4.6) (end -13.8 -4.6) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 810ae4b4-1fbb-4667-85e4-94cebf7822e4)) + (fp_line (start -5 4.6) (end -13.8 4.6) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 7e14449a-99e4-4994-836a-843a50a3439c)) + (fp_line (start 0.05 -4.8) (end 1.1 -4.8) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp f7c42e58-ff1c-4212-a065-82876b0e3ccc)) + (fp_line (start 0.9 -4.6) (end 0.9 -2) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp fa628fd6-8d3c-4998-b47a-5f6ab5381530)) + (fp_line (start 0.9 1.9) (end 0.9 4.6) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 4f3a5a06-104d-4932-8e56-b4eb6047cdb6)) + (fp_line (start 0.9 4.6) (end -1 4.6) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp ab767399-ec61-4652-a186-b007379658e1)) + (fp_line (start 1.1 -3.75) (end 1.1 -4.8) + (stroke (width 0.12) (type solid)) (layer "F.SilkS") (tstamp 334ac96e-a196-488f-a056-d831211a7bd9)) + (fp_line (start -14 4.75) (end -14 -4.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp e0c6af5c-132d-4f8a-a6b8-8df6c64c78bb)) + (fp_line (start -5 4.75) (end -14 4.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 0458c09b-4396-40b2-86db-614ce5b5e4ec)) + (fp_line (start -5 6.75) (end -5 4.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 715fb15f-c689-4936-949e-67730c9312e2)) + (fp_line (start -1 4.75) (end -1 6.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp d068925b-2efb-482c-ae25-1e069a95144e)) + (fp_line (start -1 6.75) (end -5 6.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp d8690ec5-9af4-4156-9ad4-542ec600b0bf)) + (fp_line (start 1 -4.75) (end -14 -4.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 319a98ea-11d5-498c-a32a-bb8dd98f01cb)) + (fp_line (start 1 -4.5) (end 1 -4.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 31845d9a-0c03-48ea-8d9a-4b4a29b7b3df)) + (fp_line (start 1 -4.5) (end 1 -2) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 013e54a0-9c02-47d1-9b31-71b058169ff8)) + (fp_line (start 1 -2) (end 2 -2) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 03777462-2130-4e88-bfd5-412fa6b7a350)) + (fp_line (start 1 2) (end 1 4.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp b9ee8142-a378-40d1-b733-a919c196b8da)) + (fp_line (start 1 4.75) (end -1 4.75) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 645d7132-5eac-47ab-9876-d715528478a6)) + (fp_line (start 2 -2) (end 2 2) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 9afb100e-238e-4e86-9d7c-e8a0a725e7f8)) + (fp_line (start 2 2) (end 1 2) + (stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp d7cf7e84-4d46-47b8-a68d-51c8353d1252)) + (fp_line (start -13.7 -4.5) (end -13.7 4.5) + (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp f21470f0-9cf5-4d1e-b00a-a6fb570db918)) + (fp_line (start -13.7 4.5) (end 0.8 4.5) + (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 2509992c-789e-4444-9ef8-11cc9d00d56e)) + (fp_line (start -10.2 -4.5) (end -10.2 4.5) + (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 8327ca13-7587-4ed0-a448-837baa78c8ba)) + (fp_line (start -0.003213 -4.505425) (end 0.8 -3.75) + (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 64299d5a-b098-471c-85e3-4df7f7ea3f36)) + (fp_line (start 0 -4.5) (end -13.7 -4.5) + (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp 07a86bf3-b500-4991-bee7-f7e273226396)) + (fp_line (start 0.8 4.5) (end 0.8 -3.75) + (stroke (width 0.1) (type solid)) (layer "F.Fab") (tstamp b0a07f8d-30c7-4d8f-8136-f9dbacb8e74a)) + (pad "1" thru_hole rect (at 0 0) (size 3.5 3.5) (drill oval 1 3) (layers "*.Cu" "*.Mask") + (net 1 "+5V") (pintype "passive") (tstamp 708945b2-aded-4938-8119-e431837adea2)) + (pad "2" thru_hole roundrect (at -6 0) (size 3 3.5) (drill oval 1 3) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.25) + (net 2 "GNDD") (pintype "passive") (tstamp e3b23d1e-9c99-4dfb-afc7-06713af001a0)) + (pad "3" thru_hole roundrect (at -3 4.7) (size 3.5 3.5) (drill oval 3 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.25) (tstamp 5f8c5fce-ce56-4d11-84ae-c4ca7fd9fbdb)) + (model "${KICAD6_3DMODEL_DIR}/Connector_BarrelJack.3dshapes/BarrelJack_Horizontal.wrl" + (offset (xyz 0 0 0)) + (scale (xyz 1 1 1)) + (rotate (xyz 0 0 0)) + ) + ) + + (gr_rect (start 31.75 25.4) (end 69.215 45.085) + (stroke (width 0.1) (type default)) (fill none) (layer "Edge.Cuts") (tstamp 1ca6c9b4-bc60-49c8-b4b0-2b1f259fa548)) + (gr_text "Amazing Barrel Jack PCB v1.0 " (at 40.64 28.575) (layer "F.SilkS") (tstamp 5c13eacf-f986-4db9-894a-7954ae68dd46) + (effects (font (size 1 1) (thickness 0.15)) (justify left bottom)) + ) + +) diff --git a/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_sch b/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_sch index 54c6021..443e0a1 100644 --- a/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_sch +++ b/KiCad/codeberg-kicad-kibot-example/codeberg-kicad-kibot-example.kicad_sch @@ -1,281 +1,281 @@ -(kicad_sch (version 20230121) (generator eeschema) - - (uuid 3f155b01-ecb6-4430-a1f5-a89fbffe2c4b) - - (paper "A4") - - (title_block - (title "Codeberg KiCad KiBot Example") - (date "2023-04-09") - (rev "v1.0") - ) - - (lib_symbols - (symbol "Connector:Barrel_Jack" (pin_names (offset 1.016)) (in_bom yes) (on_board yes) - (property "Reference" "J" (at 0 5.334 0) - (effects (font (size 1.27 1.27))) - ) - (property "Value" "Barrel_Jack" (at 0 -5.08 0) - (effects (font (size 1.27 1.27))) - ) - (property "Footprint" "" (at 1.27 -1.016 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Datasheet" "~" (at 1.27 -1.016 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "ki_keywords" "DC power barrel jack connector" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "ki_description" "DC Barrel Jack" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "ki_fp_filters" "BarrelJack*" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (symbol "Barrel_Jack_0_1" - (rectangle (start -5.08 3.81) (end 5.08 -3.81) - (stroke (width 0.254) (type default)) - (fill (type background)) - ) - (arc (start -3.302 3.175) (mid -3.9343 2.54) (end -3.302 1.905) - (stroke (width 0.254) (type default)) - (fill (type none)) - ) - (arc (start -3.302 3.175) (mid -3.9343 2.54) (end -3.302 1.905) - (stroke (width 0.254) (type default)) - (fill (type outline)) - ) - (polyline - (pts - (xy 5.08 2.54) - (xy 3.81 2.54) - ) - (stroke (width 0.254) (type default)) - (fill (type none)) - ) - (polyline - (pts - (xy -3.81 -2.54) - (xy -2.54 -2.54) - (xy -1.27 -1.27) - (xy 0 -2.54) - (xy 2.54 -2.54) - (xy 5.08 -2.54) - ) - (stroke (width 0.254) (type default)) - (fill (type none)) - ) - (rectangle (start 3.683 3.175) (end -3.302 1.905) - (stroke (width 0.254) (type default)) - (fill (type outline)) - ) - ) - (symbol "Barrel_Jack_1_1" - (pin passive line (at 7.62 2.54 180) (length 2.54) - (name "~" (effects (font (size 1.27 1.27)))) - (number "1" (effects (font (size 1.27 1.27)))) - ) - (pin passive line (at 7.62 -2.54 180) (length 2.54) - (name "~" (effects (font (size 1.27 1.27)))) - (number "2" (effects (font (size 1.27 1.27)))) - ) - ) - ) - (symbol "power:+5V" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes) - (property "Reference" "#PWR" (at 0 -3.81 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Value" "+5V" (at 0 3.556 0) - (effects (font (size 1.27 1.27))) - ) - (property "Footprint" "" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Datasheet" "" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "ki_keywords" "global power" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "ki_description" "Power symbol creates a global label with name \"+5V\"" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (symbol "+5V_0_1" - (polyline - (pts - (xy -0.762 1.27) - (xy 0 2.54) - ) - (stroke (width 0) (type default)) - (fill (type none)) - ) - (polyline - (pts - (xy 0 0) - (xy 0 2.54) - ) - (stroke (width 0) (type default)) - (fill (type none)) - ) - (polyline - (pts - (xy 0 2.54) - (xy 0.762 1.27) - ) - (stroke (width 0) (type default)) - (fill (type none)) - ) - ) - (symbol "+5V_1_1" - (pin power_in line (at 0 0 90) (length 0) hide - (name "+5V" (effects (font (size 1.27 1.27)))) - (number "1" (effects (font (size 1.27 1.27)))) - ) - ) - ) - (symbol "power:GNDD" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes) - (property "Reference" "#PWR" (at 0 -6.35 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Value" "GNDD" (at 0 -3.175 0) - (effects (font (size 1.27 1.27))) - ) - (property "Footprint" "" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Datasheet" "" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "ki_keywords" "global power" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "ki_description" "Power symbol creates a global label with name \"GNDD\" , digital ground" (at 0 0 0) - (effects (font (size 1.27 1.27)) hide) - ) - (symbol "GNDD_0_1" - (rectangle (start -1.27 -1.524) (end 1.27 -2.032) - (stroke (width 0.254) (type default)) - (fill (type outline)) - ) - (polyline - (pts - (xy 0 0) - (xy 0 -1.524) - ) - (stroke (width 0) (type default)) - (fill (type none)) - ) - ) - (symbol "GNDD_1_1" - (pin power_in line (at 0 0 270) (length 0) hide - (name "GNDD" (effects (font (size 1.27 1.27)))) - (number "1" (effects (font (size 1.27 1.27)))) - ) - ) - ) - ) - - - (wire (pts (xy 31.75 26.035) (xy 44.45 26.035)) - (stroke (width 0) (type default)) - (uuid 49fa8bac-4fb0-4ff7-9213-540950189c76) - ) - (wire (pts (xy 31.75 31.75) (xy 31.75 31.115)) - (stroke (width 0) (type default)) - (uuid 5f59b4cb-72f4-4cb9-afaa-f96b69b581da) - ) - (wire (pts (xy 31.75 31.115) (xy 44.45 31.115)) - (stroke (width 0) (type default)) - (uuid bada701f-975b-43ca-a274-4bc3d6f21d60) - ) - (wire (pts (xy 31.75 25.4) (xy 31.75 26.035)) - (stroke (width 0) (type default)) - (uuid e3a51d62-7067-477f-84fe-62e48c2733c1) - ) - - (text "WOW A BARREL JACK!" (at 34.29 45.72 0) - (effects (font (size 1.27 1.27)) (justify left bottom)) - (uuid 99270f99-11a7-4499-a14b-5775c2528f67) - ) - - (symbol (lib_id "power:+5V") (at 31.75 25.4 0) (unit 1) - (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced) - (uuid 30f170cb-512a-4013-b8f0-53ca7a8fee24) - (property "Reference" "#PWR02" (at 31.75 29.21 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Value" "+5V" (at 31.75 21.59 0) - (effects (font (size 1.27 1.27))) - ) - (property "Footprint" "" (at 31.75 25.4 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Datasheet" "" (at 31.75 25.4 0) - (effects (font (size 1.27 1.27)) hide) - ) - (pin "1" (uuid 7e892dc3-0d13-427f-ac2c-073ae6f99789)) - (instances - (project "codeberg-kicad-kibot-example" - (path "/3f155b01-ecb6-4430-a1f5-a89fbffe2c4b" - (reference "#PWR02") (unit 1) - ) - ) - ) - ) - - (symbol (lib_id "Connector:Barrel_Jack") (at 52.07 28.575 0) (mirror y) (unit 1) - (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced) - (uuid 6cf979ce-2cc8-49d1-8454-dab2833b6925) - (property "Reference" "J1" (at 58.42 27.94 0) - (effects (font (size 1.27 1.27)) (justify right)) - ) - (property "Value" "Barrel_Jack" (at 58.42 30.48 0) - (effects (font (size 1.27 1.27)) (justify right)) - ) - (property "Footprint" "Connector_BarrelJack:BarrelJack_Horizontal" (at 50.8 29.591 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Datasheet" "~" (at 50.8 29.591 0) - (effects (font (size 1.27 1.27)) hide) - ) - (pin "1" (uuid c17a03ba-1dd8-418a-a02a-133202b9114b)) - (pin "2" (uuid efec6bac-c404-4f2a-ac18-18bff249951e)) - (instances - (project "codeberg-kicad-kibot-example" - (path "/3f155b01-ecb6-4430-a1f5-a89fbffe2c4b" - (reference "J1") (unit 1) - ) - ) - ) - ) - - (symbol (lib_id "power:GNDD") (at 31.75 31.75 0) (unit 1) - (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced) - (uuid ab848cb8-f435-44e1-afea-d29e53138f9a) - (property "Reference" "#PWR01" (at 31.75 38.1 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Value" "GNDD" (at 31.75 36.83 0) - (effects (font (size 1.27 1.27))) - ) - (property "Footprint" "" (at 31.75 31.75 0) - (effects (font (size 1.27 1.27)) hide) - ) - (property "Datasheet" "" (at 31.75 31.75 0) - (effects (font (size 1.27 1.27)) hide) - ) - (pin "1" (uuid d895b17f-f837-4712-93dd-78663f451f13)) - (instances - (project "codeberg-kicad-kibot-example" - (path "/3f155b01-ecb6-4430-a1f5-a89fbffe2c4b" - (reference "#PWR01") (unit 1) - ) - ) - ) - ) - - (sheet_instances - (path "/" (page "1")) - ) -) +(kicad_sch (version 20230121) (generator eeschema) + + (uuid 3f155b01-ecb6-4430-a1f5-a89fbffe2c4b) + + (paper "A4") + + (title_block + (title "Codeberg KiCad KiBot Example") + (date "2023-04-09") + (rev "v1.0") + ) + + (lib_symbols + (symbol "Connector:Barrel_Jack" (pin_names (offset 1.016)) (in_bom yes) (on_board yes) + (property "Reference" "J" (at 0 5.334 0) + (effects (font (size 1.27 1.27))) + ) + (property "Value" "Barrel_Jack" (at 0 -5.08 0) + (effects (font (size 1.27 1.27))) + ) + (property "Footprint" "" (at 1.27 -1.016 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Datasheet" "~" (at 1.27 -1.016 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "ki_keywords" "DC power barrel jack connector" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "ki_description" "DC Barrel Jack" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "ki_fp_filters" "BarrelJack*" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (symbol "Barrel_Jack_0_1" + (rectangle (start -5.08 3.81) (end 5.08 -3.81) + (stroke (width 0.254) (type default)) + (fill (type background)) + ) + (arc (start -3.302 3.175) (mid -3.9343 2.54) (end -3.302 1.905) + (stroke (width 0.254) (type default)) + (fill (type none)) + ) + (arc (start -3.302 3.175) (mid -3.9343 2.54) (end -3.302 1.905) + (stroke (width 0.254) (type default)) + (fill (type outline)) + ) + (polyline + (pts + (xy 5.08 2.54) + (xy 3.81 2.54) + ) + (stroke (width 0.254) (type default)) + (fill (type none)) + ) + (polyline + (pts + (xy -3.81 -2.54) + (xy -2.54 -2.54) + (xy -1.27 -1.27) + (xy 0 -2.54) + (xy 2.54 -2.54) + (xy 5.08 -2.54) + ) + (stroke (width 0.254) (type default)) + (fill (type none)) + ) + (rectangle (start 3.683 3.175) (end -3.302 1.905) + (stroke (width 0.254) (type default)) + (fill (type outline)) + ) + ) + (symbol "Barrel_Jack_1_1" + (pin passive line (at 7.62 2.54 180) (length 2.54) + (name "~" (effects (font (size 1.27 1.27)))) + (number "1" (effects (font (size 1.27 1.27)))) + ) + (pin passive line (at 7.62 -2.54 180) (length 2.54) + (name "~" (effects (font (size 1.27 1.27)))) + (number "2" (effects (font (size 1.27 1.27)))) + ) + ) + ) + (symbol "power:+5V" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes) + (property "Reference" "#PWR" (at 0 -3.81 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Value" "+5V" (at 0 3.556 0) + (effects (font (size 1.27 1.27))) + ) + (property "Footprint" "" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Datasheet" "" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "ki_keywords" "global power" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "ki_description" "Power symbol creates a global label with name \"+5V\"" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (symbol "+5V_0_1" + (polyline + (pts + (xy -0.762 1.27) + (xy 0 2.54) + ) + (stroke (width 0) (type default)) + (fill (type none)) + ) + (polyline + (pts + (xy 0 0) + (xy 0 2.54) + ) + (stroke (width 0) (type default)) + (fill (type none)) + ) + (polyline + (pts + (xy 0 2.54) + (xy 0.762 1.27) + ) + (stroke (width 0) (type default)) + (fill (type none)) + ) + ) + (symbol "+5V_1_1" + (pin power_in line (at 0 0 90) (length 0) hide + (name "+5V" (effects (font (size 1.27 1.27)))) + (number "1" (effects (font (size 1.27 1.27)))) + ) + ) + ) + (symbol "power:GNDD" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes) + (property "Reference" "#PWR" (at 0 -6.35 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Value" "GNDD" (at 0 -3.175 0) + (effects (font (size 1.27 1.27))) + ) + (property "Footprint" "" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Datasheet" "" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "ki_keywords" "global power" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "ki_description" "Power symbol creates a global label with name \"GNDD\" , digital ground" (at 0 0 0) + (effects (font (size 1.27 1.27)) hide) + ) + (symbol "GNDD_0_1" + (rectangle (start -1.27 -1.524) (end 1.27 -2.032) + (stroke (width 0.254) (type default)) + (fill (type outline)) + ) + (polyline + (pts + (xy 0 0) + (xy 0 -1.524) + ) + (stroke (width 0) (type default)) + (fill (type none)) + ) + ) + (symbol "GNDD_1_1" + (pin power_in line (at 0 0 270) (length 0) hide + (name "GNDD" (effects (font (size 1.27 1.27)))) + (number "1" (effects (font (size 1.27 1.27)))) + ) + ) + ) + ) + + + (wire (pts (xy 31.75 26.035) (xy 44.45 26.035)) + (stroke (width 0) (type default)) + (uuid 49fa8bac-4fb0-4ff7-9213-540950189c76) + ) + (wire (pts (xy 31.75 31.75) (xy 31.75 31.115)) + (stroke (width 0) (type default)) + (uuid 5f59b4cb-72f4-4cb9-afaa-f96b69b581da) + ) + (wire (pts (xy 31.75 31.115) (xy 44.45 31.115)) + (stroke (width 0) (type default)) + (uuid bada701f-975b-43ca-a274-4bc3d6f21d60) + ) + (wire (pts (xy 31.75 25.4) (xy 31.75 26.035)) + (stroke (width 0) (type default)) + (uuid e3a51d62-7067-477f-84fe-62e48c2733c1) + ) + + (text "WOW A BARREL JACK!" (at 34.29 45.72 0) + (effects (font (size 1.27 1.27)) (justify left bottom)) + (uuid 99270f99-11a7-4499-a14b-5775c2528f67) + ) + + (symbol (lib_id "power:+5V") (at 31.75 25.4 0) (unit 1) + (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced) + (uuid 30f170cb-512a-4013-b8f0-53ca7a8fee24) + (property "Reference" "#PWR02" (at 31.75 29.21 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Value" "+5V" (at 31.75 21.59 0) + (effects (font (size 1.27 1.27))) + ) + (property "Footprint" "" (at 31.75 25.4 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Datasheet" "" (at 31.75 25.4 0) + (effects (font (size 1.27 1.27)) hide) + ) + (pin "1" (uuid 7e892dc3-0d13-427f-ac2c-073ae6f99789)) + (instances + (project "codeberg-kicad-kibot-example" + (path "/3f155b01-ecb6-4430-a1f5-a89fbffe2c4b" + (reference "#PWR02") (unit 1) + ) + ) + ) + ) + + (symbol (lib_id "Connector:Barrel_Jack") (at 52.07 28.575 0) (mirror y) (unit 1) + (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced) + (uuid 6cf979ce-2cc8-49d1-8454-dab2833b6925) + (property "Reference" "J1" (at 58.42 27.94 0) + (effects (font (size 1.27 1.27)) (justify right)) + ) + (property "Value" "Barrel_Jack" (at 58.42 30.48 0) + (effects (font (size 1.27 1.27)) (justify right)) + ) + (property "Footprint" "Connector_BarrelJack:BarrelJack_Horizontal" (at 50.8 29.591 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Datasheet" "~" (at 50.8 29.591 0) + (effects (font (size 1.27 1.27)) hide) + ) + (pin "1" (uuid c17a03ba-1dd8-418a-a02a-133202b9114b)) + (pin "2" (uuid efec6bac-c404-4f2a-ac18-18bff249951e)) + (instances + (project "codeberg-kicad-kibot-example" + (path "/3f155b01-ecb6-4430-a1f5-a89fbffe2c4b" + (reference "J1") (unit 1) + ) + ) + ) + ) + + (symbol (lib_id "power:GNDD") (at 31.75 31.75 0) (unit 1) + (in_bom yes) (on_board yes) (dnp no) (fields_autoplaced) + (uuid ab848cb8-f435-44e1-afea-d29e53138f9a) + (property "Reference" "#PWR01" (at 31.75 38.1 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Value" "GNDD" (at 31.75 36.83 0) + (effects (font (size 1.27 1.27))) + ) + (property "Footprint" "" (at 31.75 31.75 0) + (effects (font (size 1.27 1.27)) hide) + ) + (property "Datasheet" "" (at 31.75 31.75 0) + (effects (font (size 1.27 1.27)) hide) + ) + (pin "1" (uuid d895b17f-f837-4712-93dd-78663f451f13)) + (instances + (project "codeberg-kicad-kibot-example" + (path "/3f155b01-ecb6-4430-a1f5-a89fbffe2c4b" + (reference "#PWR01") (unit 1) + ) + ) + ) + ) + + (sheet_instances + (path "/" (page "1")) + ) +) diff --git a/KiCad/codeberg-kicad-kibot-example/config.kibot.yaml b/KiCad/codeberg-kicad-kibot-example/config.kibot.yaml index c35d272..a8c4690 100644 --- a/KiCad/codeberg-kicad-kibot-example/config.kibot.yaml +++ b/KiCad/codeberg-kicad-kibot-example/config.kibot.yaml @@ -14,8 +14,7 @@ preflight: # you can use this to raise errors in DRC or ERC outputs: - - - name: 'gerbers' + - name: "gerbers" comment: "Gerbers for production" type: gerber dir: kibot/gerber @@ -39,14 +38,14 @@ outputs: - from_output: "gerber-drill" dest: / - - name: 'ibom' - type: 'ibom' + - name: "ibom" + type: "ibom" comment: "ibom for your convenience" dir: kibot - - name: 'schematic-pdf' - comment: 'schematic for your convenience' - type: 'pdf_sch_print' + - name: "schematic-pdf" + comment: "schematic for your convenience" + type: "pdf_sch_print" dir: kibot - name: "production-files" diff --git a/mdbook/mdbook.yml b/Mdbook/.woodpecker.yaml similarity index 94% rename from mdbook/mdbook.yml rename to Mdbook/.woodpecker.yaml index bee172a..160e206 100644 --- a/mdbook/mdbook.yml +++ b/Mdbook/.woodpecker.yaml @@ -17,7 +17,7 @@ clone: when: branch: master - event: [ push, cron ] + event: [push, cron] steps: build: @@ -27,7 +27,7 @@ steps: publish: image: bitnami/git - secrets: [ mail, codeberg_token ] + secrets: [mail, codeberg_token] environment: - MDBOOK_OUTPUT=book commands: diff --git a/NodeJS/11ty.yml b/NodeJS/.woodpecker.yaml similarity index 94% rename from NodeJS/11ty.yml rename to NodeJS/.woodpecker.yaml index 7b937b1..858421f 100644 --- a/NodeJS/11ty.yml +++ b/NodeJS/.woodpecker.yaml @@ -25,7 +25,7 @@ steps: build: # Use the official jekyll build container image: node - secrets: [ cbtoken, cbmail, cbusername, sourcerepo, destrepo ] + secrets: [cbtoken, cbmail, cbusername, sourcerepo, destrepo] commands: # Avoid permission denied errors - chmod -R a+w . @@ -49,4 +49,4 @@ steps: - cd _site - git add --all - git commit -m "Woodpecker CI 11ty Build at $( env TZ=America/Chicago date +"%Y-%m-%d %X %Z" )" - - git push -u origin pages \ No newline at end of file + - git push -u origin pages diff --git a/Python/.woodpecker.yml b/Python/.woodpecker/code-quality.yaml similarity index 88% rename from Python/.woodpecker.yml rename to Python/.woodpecker/code-quality.yaml index 90ed26f..7e4666a 100644 --- a/Python/.woodpecker.yml +++ b/Python/.woodpecker/code-quality.yaml @@ -1,11 +1,9 @@ - -# This config shows how to handle Python-CI focusing on code quality +# This config shows how to handle Python-CI focusing on code quality # was taken from https://codeberg.org/sail.black/serial-sphinx/src/branch/main/.woodpecker.yml # check there for license information - steps: - standardize: + standardize: image: python:3.9-buster when: event: pull_request @@ -16,8 +14,8 @@ steps: - python -m pip install pylint flake8 mypy>=0.971 - python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - mypy --strict serial_sphinx/ - - python -m pylint -f parseable serial_sphinx/*.py - + - python -m pylint -f parseable serial_sphinx/*.py + build: image: python:${TAG}-buster when: @@ -26,18 +24,15 @@ steps: commands: - ls - - python -m venv venv + - python -m venv venv - /bin/bash -c "source venv/bin/activate" - python -m pip install --upgrade pip - python -m pip install -r requirements.txt - pytest tests/ - - matrix: TAG: - 3.7 - 3.9 - 3.8 - 3.10 - diff --git a/Python/mkdocs.yml b/Python/.woodpecker/mkdocs.yaml similarity index 100% rename from Python/mkdocs.yml rename to Python/.woodpecker/mkdocs.yaml diff --git a/Python/pdoc.yml b/Python/.woodpecker/pdoc.yaml similarity index 98% rename from Python/pdoc.yml rename to Python/.woodpecker/pdoc.yaml index a1b8b1a..b4b753a 100644 --- a/Python/pdoc.yml +++ b/Python/.woodpecker/pdoc.yaml @@ -26,7 +26,7 @@ steps: publish: image: bitnami/git:2 - secrets: [ cbtoken ] + secrets: [cbtoken] commands: # config git to commit and push changes - git config --global --add safe.directory $CI_WORKSPACE/public diff --git a/README.md b/README.md index 45b557e..2d4d3a4 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,14 @@ Pull requests are welcome! ## More examples from Codeberg -[https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1](https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1) +[Codeberg repos with Woodpecker YAML files](https://codeberg.org/explore/repos?q=woodpecker-ci&topic=1) [1]: https://github.com/GoogleContainerTools/kaniko [2]: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx + +## How to add a new example + +1. Create a new subdirectory with a descriptive name. Capitalize the first letter. +1. If you only add one file: name it `.woodpecker.yaml`. If you want to add multiple files: add a `.woodpecker` directory and use descriptive names for the individual yaml files. +1. Add your example to the README table while respecting the alphabetical order. +1. Add your new subdirectory to the "woodpecker-cli" step in `.woodpecker.yaml` so it is getting linted over time. diff --git a/Rust/.woodpecker.yml b/Rust/.woodpecker.yaml similarity index 100% rename from Rust/.woodpecker.yml rename to Rust/.woodpecker.yaml diff --git a/StandardML/sml.yml b/StandardML/.woodpecker.yaml similarity index 100% rename from StandardML/sml.yml rename to StandardML/.woodpecker.yaml diff --git a/tectonic/.woodpecker.yml b/Tectonic/.woodpecker.yaml similarity index 100% rename from tectonic/.woodpecker.yml rename to Tectonic/.woodpecker.yaml diff --git a/Typst/.woodpecker.yml b/Typst/.woodpecker.yaml similarity index 100% rename from Typst/.woodpecker.yml rename to Typst/.woodpecker.yaml