Skip to content

Commit 0765268

Browse files
committed
added bosl2 lib
1 parent 5ac0e8b commit 0765268

27 files changed

+4840
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: revarbat
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Code To Reproduce Bug**
14+
```
15+
// Code goes here.
16+
```
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Screenshots**
22+
If applicable, add screenshots to help explain your problem.
23+
24+
**Additional context**
25+
Add any other context about the problem here.
26+
- OpenSCAD Version:
27+
- Other libraries used:
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: revarbat
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Example Code**
20+
```
21+
// Code goes here.
22+
```
23+
24+
**Additional context**
25+
Add any other context or screenshots about the feature request here.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"problemMatcher": [
3+
{
4+
"owner": "docsgen",
5+
"pattern": [
6+
{
7+
"regexp": "^!! (WARNING|ERROR) at ([^:]+:\\d+: .*[^:])$",
8+
"severity": 1,
9+
"message": 2
10+
}
11+
]
12+
}
13+
]
14+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
types: [closed]
7+
8+
jobs:
9+
GenerateDocs:
10+
if: github.event.pull_request.merged == true
11+
runs-on: macos-10.15
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Checkout Wiki
17+
uses: actions/checkout@v2
18+
with:
19+
repository: revarbat/BOSL2.wiki
20+
path: BOSL2.wiki
21+
22+
- name: Install gifsicle
23+
run: brew install gifsicle
24+
25+
- name: Install Pillow
26+
run: sudo pip3 install Pillow
27+
28+
- name: Install Docsgen
29+
run: sudo pip3 install openscad_docsgen
30+
31+
- name: Install OpenSCAD
32+
run: |
33+
curl -L -o OpenSCAD.dmg https://files.openscad.org/snapshots/OpenSCAD-2021.05.07.dmg
34+
hdiutil attach OpenSCAD.dmg
35+
cp -a /Volumes/OpenSCAD/OpenSCAD.app /Applications/
36+
37+
- name: Generating Docs
38+
run: |
39+
cd $GITHUB_WORKSPACE
40+
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
41+
echo "::add-matcher::.github/openscad_docsgen.json"
42+
openscad-docsgen -m -i -t -c -I *.scad
43+
cd BOSL2.wiki
44+
git config user.name github-actions
45+
git config user.email [email protected]
46+
git add --all
47+
git commit -m "Wiki docs auto-regen." && git push || true
48+
49+
- name: Bump Release Version
50+
run: |
51+
cd $GITHUB_WORKSPACE
52+
./scripts/increment_version.sh
53+
git config user.name github-actions
54+
git config user.email [email protected]
55+
git add version.scad
56+
git commit -m "Bump release version." && git push || true
57+
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
on: [pull_request]
3+
4+
jobs:
5+
Regressions:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v2
10+
11+
- name: Install OpenSCAD
12+
run: |
13+
cd $GITHUB_WORKSPACE
14+
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage
15+
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
16+
sudo chmod +x /usr/local/bin/openscad
17+
18+
- name: Run Regression Tests
19+
run: |
20+
cd $GITHUB_WORKSPACE
21+
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
22+
./scripts/run_tests.sh
23+
24+
CheckDocs:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout
28+
uses: actions/checkout@v2
29+
30+
- name: Clone Wiki
31+
uses: actions/checkout@v2
32+
with:
33+
repository: revarbat/BOSL2.wiki
34+
path: BOSL2.wiki
35+
36+
- name: Apt Update
37+
run: sudo apt update
38+
39+
- name: Install Python dev
40+
run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil
41+
42+
- name: Install OpenSCAD-DocsGen package.
43+
run: sudo pip3 install openscad-docsgen
44+
45+
- name: Install OpenSCAD
46+
run: |
47+
cd $GITHUB_WORKSPACE
48+
wget https://files.openscad.org/OpenSCAD-2021.01-x86_64.AppImage
49+
sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
50+
sudo chmod +x /usr/local/bin/openscad
51+
52+
- name: Checking Docs
53+
run: |
54+
cd $GITHUB_WORKSPACE
55+
echo "::add-matcher::.github/openscad_docsgen.json"
56+
export OPENSCADPATH=$(dirname $GITHUB_WORKSPACE)
57+
openscad-docsgen -Tm *.scad
58+
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
local_settings.py
56+
57+
# Flask stuff:
58+
instance/
59+
.webassets-cache
60+
61+
# Scrapy stuff:
62+
.scrapy
63+
64+
# Sphinx documentation
65+
docs/_build/
66+
67+
# PyBuilder
68+
target/
69+
70+
# Jupyter Notebook
71+
.ipynb_checkpoints
72+
73+
# pyenv
74+
.python-version
75+
76+
# celery beat schedule file
77+
celerybeat-schedule
78+
79+
# SageMath parsed files
80+
*.sage.py
81+
82+
# dotenv
83+
.env
84+
85+
# virtualenv
86+
.venv
87+
venv/
88+
ENV/
89+
90+
# Spyder project settings
91+
.spyderproject
92+
.spyproject
93+
94+
# Rope project settings
95+
.ropeproject
96+
97+
# mkdocs documentation
98+
/site
99+
100+
# mypy
101+
.mypy_cache/
102+
103+
# Mac stuff
104+
.DS_Store
105+
106+
# Vim temp files
107+
.*.swp
108+
109+
foo.scad
110+
BOSL2.wiki
111+
/ref/
112+
docsgen_report.json
113+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
DocsDirectory: BOSL2.wiki/
2+
IgnoreFiles:
3+
foo.scad
4+
std.scad
5+
bosl1compat.scad
6+
version.scad
7+
tmp_*.scad
8+
PrioritizeFiles:
9+
constants.scad
10+
transforms.scad
11+
distributors.scad
12+
mutators.scad
13+
attachments.scad
14+
primitives.scad
15+
shapes.scad
16+
shapes2d.scad
17+
masks.scad
18+
math.scad
19+
vectors.scad
20+
arrays.scad
21+
quaternions.scad
22+
affine.scad
23+
coords.scad
24+
geometry.scad
25+
edges.scad
26+
vnf.scad
27+
paths.scad
28+
regions.scad
29+
debug.scad
30+
common.scad
31+
strings.scad
32+
errors.scad
33+
beziers.scad
34+
threading.scad
35+
rounding.scad
36+
knurling.scad
37+
partitions.scad
38+
rounding.scad
39+
skin.scad
40+
hull.scad
41+
triangulation.scad
42+
turtle3d.scad
43+
stacks.scad
44+
queues.scad
45+
structs.scad
46+
DefineHeader(BulletList): Side Effects
47+
DefineHeader(Table:Anchor Name|Position): Extra Anchors
48+
DefineHeader(Table:Name|Definition): Terminology
49+

0 commit comments

Comments
 (0)