Skip to content

Commit f80fb94

Browse files
authoredFeb 16, 2025··
Initial commit
0 parents  commit f80fb94

15 files changed

+1071
-0
lines changed
 
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Metadata updater
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
with:
17+
submodules: 'recursive'
18+
19+
- name: Set up Python 3.10
20+
uses: actions/setup-python@v3
21+
with:
22+
python-version: "3.10"
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install flake8 pytest
28+
if [ -f doc/assets/workflows/requirements.txt ]; then pip install -r doc/assets/workflows/requirements.txt; fi
29+
30+
- name: Update metadata
31+
env:
32+
gh_repo: ${{ github.event.repository.name }}
33+
gh_url: ${{ github.server_url }}/${{ github.repository }}
34+
gh_branch: ${{ github.head_ref || github.ref_name }}
35+
gh_description: ${{ github.event.repository.name }}
36+
gh_repository: ${{ github.repository }}
37+
gh_token: ${{ secrets.GITHUB_TOKEN }}
38+
run: |
39+
python3 doc/assets/workflows/update_metadata.py
40+
python3 doc/assets/workflows/update_kitspace.py
41+
42+
- uses: stefanzweifel/git-auto-commit-action@v4.16.0
43+
with:
44+
commit_message: Update metadata files
45+
commit_options: '-a'

‎.github/workflows/update_actions.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Update actions and assets repository
2+
on:
3+
schedule:
4+
- cron: "0 */24 * * *"
5+
6+
push:
7+
paths:
8+
- '.gitmodules'
9+
10+
workflow_dispatch:
11+
12+
jobs:
13+
Aktualizace:
14+
name: Update repository actions and other tools
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
submodules: recursive
20+
token: ${{ secrets.pat }}
21+
ref: ${{ github.head_ref }}
22+
23+
- name: Update submodules
24+
run: |
25+
git -C doc/assets config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
26+
git submodule sync doc/assets
27+
git submodule update --init --remote doc/assets
28+
29+
- name: Update submodules
30+
run: |
31+
git submodule update --remote doc/assets/
32+
33+
- name: Zaktualizovat skripty
34+
run: |
35+
cd doc/assets/workflows/ && ./copy_workflow_to_repo.sh && cd ${GITHUB_WORKSPACE}
36+
37+
- uses: stefanzweifel/git-auto-commit-action@v4.16.0
38+
with:
39+
commit_message: Update workflow files
40+
add_options: '-A'
41+
commit_options: '-a'

‎.gitignore

+247
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
doc/gen/*
2+
hw/cam_profi/*
3+
*-backups
4+
5+
# For PCBs designed using KiCad: http://www.kicad-pcb.org/
6+
7+
# Temporary files
8+
*.000
9+
*.bak
10+
*.bck
11+
*.kicad_pcb-bak
12+
*~
13+
*_autosave-*
14+
*.tmp
15+
*-backups
16+
17+
# Netlist files (exported from Eeschema)
18+
#*.net
19+
20+
# Autorouter files (exported from Pcbnew)
21+
.dsn
22+
23+
# Exported BOM files
24+
#*.xml
25+
#*.csv
26+
27+
## Core latex/pdflatex auxiliary files:
28+
*.aux
29+
*.lof
30+
*.log
31+
*.lot
32+
*.fls
33+
*.out
34+
*.toc
35+
*.fmt
36+
*.fot
37+
*.cb
38+
*.cb2
39+
40+
## Intermediate documents:
41+
*.dvi
42+
*-converted-to.*
43+
# these rules might exclude image files for figures etc.
44+
# *.ps
45+
# *.eps
46+
# *.pdf
47+
48+
## Generated if empty string is given at "Please type another file name for output:"
49+
.pdf
50+
51+
## Bibliography auxiliary files (bibtex/biblatex/biber):
52+
*.bbl
53+
*.bcf
54+
*.blg
55+
*-blx.aux
56+
*-blx.bib
57+
*.brf
58+
*.run.xml
59+
60+
## Build tool auxiliary files:
61+
*.fdb_latexmk
62+
*.synctex
63+
*.synctex(busy)
64+
*.synctex.gz
65+
*.synctex.gz(busy)
66+
*.pdfsync
67+
68+
## Auxiliary and intermediate files from other packages:
69+
# algorithms
70+
*.alg
71+
*.loa
72+
73+
# achemso
74+
acs-*.bib
75+
76+
# amsthm
77+
*.thm
78+
79+
# beamer
80+
*.nav
81+
*.pre
82+
*.snm
83+
*.vrb
84+
85+
# changes
86+
*.soc
87+
88+
# cprotect
89+
*.cpt
90+
91+
# elsarticle (documentclass of Elsevier journals)
92+
*.spl
93+
94+
# endnotes
95+
*.ent
96+
97+
# fixme
98+
*.lox
99+
100+
# feynmf/feynmp
101+
*.mf
102+
*.mp
103+
*.t[1-9]
104+
*.t[1-9][0-9]
105+
*.tfm
106+
*.[1-9]
107+
*.[1-9][0-9]
108+
109+
#(r)(e)ledmac/(r)(e)ledpar
110+
*.end
111+
*.?end
112+
*.[1-9]
113+
*.[1-9][0-9]
114+
*.[1-9][0-9][0-9]
115+
*.[1-9]R
116+
*.[1-9][0-9]R
117+
*.[1-9][0-9][0-9]R
118+
*.eledsec[1-9]
119+
*.eledsec[1-9]R
120+
*.eledsec[1-9][0-9]
121+
*.eledsec[1-9][0-9]R
122+
*.eledsec[1-9][0-9][0-9]
123+
*.eledsec[1-9][0-9][0-9]R
124+
125+
# glossaries
126+
*.acn
127+
*.acr
128+
*.glg
129+
*.glo
130+
*.gls
131+
*.glsdefs
132+
133+
# gnuplottex
134+
*-gnuplottex-*
135+
136+
# gregoriotex
137+
*.gaux
138+
*.gtex
139+
140+
# hyperref
141+
*.brf
142+
143+
# knitr
144+
*-concordance.tex
145+
# TODO Comment the next line if you want to keep your tikz graphics files
146+
*.tikz
147+
*-tikzDictionary
148+
149+
# listings
150+
*.lol
151+
152+
# makeidx
153+
*.idx
154+
*.ilg
155+
*.ind
156+
*.ist
157+
158+
# minitoc
159+
*.maf
160+
*.mlf
161+
*.mlt
162+
*.mtc[0-9]*
163+
164+
# minted
165+
_minted*
166+
*.pyg
167+
168+
# morewrites
169+
*.mw
170+
171+
# mylatexformat
172+
*.fmt
173+
174+
# nomencl
175+
*.nlo
176+
177+
# pax
178+
*.pax
179+
180+
# sagetex
181+
*.sagetex.sage
182+
*.sagetex.py
183+
*.sagetex.scmd
184+
185+
# scrwfile
186+
*.wrt
187+
188+
# sympy
189+
*.sout
190+
*.sympy
191+
sympy-plots-for-*.tex/
192+
193+
# pdfcomment
194+
*.upa
195+
*.upb
196+
197+
# pythontex
198+
*.pytxcode
199+
pythontex-files-*/
200+
201+
# thmtools
202+
*.loe
203+
204+
# TikZ & PGF
205+
*.dpth
206+
*.md5
207+
*.auxlock
208+
209+
# todonotes
210+
*.tdo
211+
212+
# easy-todo
213+
*.lod
214+
215+
# xindy
216+
*.xdy
217+
218+
# xypic precompiled matrices
219+
*.xyc
220+
221+
# endfloat
222+
*.ttt
223+
*.fff
224+
225+
# Latexian
226+
TSWLatexianTemp*
227+
228+
## Editors:
229+
# WinEdt
230+
*.bak
231+
*.sav
232+
233+
# Texpad
234+
.texpadtmp
235+
236+
# Kile
237+
*.backup
238+
239+
# KBibTeX
240+
*~[0-9]*
241+
242+
# auto folder when using emacs and auctex
243+
/auto/*
244+
245+
# expex forward references with \gathertags
246+
*-tags.tex
247+

‎.gitmodules

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[submodule "doc/assets"]
2+
path = doc/assets
3+
url = git@github.com:MLAB-project/documents.git
4+
branch = KiCADv6
5+
shallow = 1

‎LICENSE

+674
Large diffs are not rendered by default.

‎README.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# MODUL01 - Template to create a new MLAB module
2+
3+
MLAB's module template repository. Please [use the "Use this template" button](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template#creating-a-repository-from-a-template) to create a new MLAB module from this repository.
4+
5+
The new module repository name must be identical to the proposed new module name. Please look in [MLAB design rules](https://wiki.mlab.cz/doku.php?id=en:rules#identification_of_modules) for an acceptable naming convention.
6+
After creating the new repository, [rename](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch) the default git branch to be named corresponding to the revision of the module. It is generally adding the "A" suffix to the module name. Therefore, a new repository named MODULENAME01 should have the branch name MODULENAME01A.
7+
8+
Then [clone the new MLAB's module repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository) to your workstation. After that perform the following steps in the cloned repository.
9+
10+
## 1. Initialize the assets submodule, and update it to the latest version
11+
```bash
12+
git submodule update --init --remote
13+
```
14+
15+
## 2. Start the design work
16+
17+
At that point, you should start to design the new MLAB module project by using the [design tools](https://wiki.mlab.cz/doku.php?id=en:tools).
18+
19+
## 3. Copy the fresh automation workflows
20+
21+
The following command copies up-to-date KiCAD automation workflow to the new MLAB module repository.
22+
```bash
23+
cd doc/assets/workflows/
24+
./copy_workflow_to_repo.sh
25+
```
26+
27+
28+
## 4. Replace this readme
29+
30+
This readme should be replaced by a description of your new module project! :)
31+
Please look to the README.md in the root of other modules to get inspiration.
32+
33+
Thanks for contributing!
34+
35+
36+

‎doc/assets

Submodule assets added at 42c0fe3

‎doc/datasheets/placeholdel

Whitespace-only changes.

‎doc/metadata.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
description: Template repository
2+
github_branch: MODUL01A
3+
github_branches:
4+
- MODUL01A
5+
github_repo: MODUL01
6+
github_url: https://github.com/mlab-modules/MODUL01
7+
homepage: false
8+
images: []
9+
issues: 2
10+
mark: 50
11+
tags:
12+
- mlab
13+
- mlab-module
14+
title: MODUL01

‎doc/src/img/placeholder

Whitespace-only changes.

‎hw/cad/placeholder

Whitespace-only changes.

‎hw/hdl/placeholder

Whitespace-only changes.

‎hw/sch_pcb/placeholder

Whitespace-only changes.

‎kitspace.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
bom: hw/sch_pcb/MODUL01.kicad_pcb
2+
color: white
3+
eda:
4+
pcb: hw/sch_pcb/MODUL01.kicad_pcb
5+
type: kicad
6+
gerbers: hw/cam_profi/
7+
site: https://github.com/mlab-modules/MODUL01
8+
summary: Template repository

‎sw/src/placeholder

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.