Commit eb6cf577 authored by Jan Koniarik's avatar Jan Koniarik
Browse files

added automatic example readme

parent bbca6de6
......@@ -10,5 +10,8 @@ example/%.stl: example/%.scad
example/%.png: example/%.scad
openscad $< --autocenter --viewall --imgsize=640,480 -o $@
.PHONY: all
.PHONY: all gen_example_readme
all: $(STL) $(PNG)
gen_example_readme:
python3 example/gen_readme.py $(SCAD:.scad=) > example/README.md
![](tile_T24_2mm.png)
![](tile_T24_5mm.png)
![](tile_T24_5mm_centered.png)
![](tile_T36_5mm.png)
![](tile_raw_plate_T24_2x3_2mm.png)
![](tile_H_T24_5mm.png)
![](tile_sandwitch.png)
# Gallery of tile examples
## example/tile_T24_5mm.scad
![example/tile_T24_5mm](example/tile_T24_5mm.png)
## example/tile_T36_5mm.scad
![example/tile_T36_5mm](example/tile_T36_5mm.png)
## example/tile_T24_5mm_centered.scad
![example/tile_T24_5mm_centered](example/tile_T24_5mm_centered.png)
## example/tile_sandwitch.scad
![example/tile_sandwitch](example/tile_sandwitch.png)
## example/tile_T24_2mm.scad
![example/tile_T24_2mm](example/tile_T24_2mm.png)
## example/tile_H_T24_5mm.scad
![example/tile_H_T24_5mm](example/tile_H_T24_5mm.png)
## example/tile_raw_plate_T24_2x3_2mm.scad
![example/tile_raw_plate_T24_2x3_2mm](example/tile_raw_plate_T24_2x3_2mm.png)
#!/usr/bin/env python3
import sys
args = sys.argv[1:]
print("# Gallery of tile examples")
for arg in args:
print("## " + arg + ".scad")
print("![" + arg + "](" + arg + ".png)")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment