mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-11 18:04:02 +02:00
[Feature] Add link to STL files in documentation
This commit is contained in:
@@ -353,7 +353,7 @@ def views(target, do_assemblies = None):
|
|||||||
print('### 3D Printed parts', file = doc_file)
|
print('### 3D Printed parts', file = doc_file)
|
||||||
keys = sorted(list(printed.keys()))
|
keys = sorted(list(printed.keys()))
|
||||||
for i, p in enumerate(keys):
|
for i, p in enumerate(keys):
|
||||||
print('%s %d x %s |' % ('\n|' if not (i % 3) else '', printed[p]["count"], p), file = doc_file, end = '')
|
print('%s %d x [%s](stls/%s) |' % ('\n|' if not (i % 3) else '', printed[p]["count"], p, p), file = doc_file, end = '')
|
||||||
if (i % 3) == 2 or i == len(printed) - 1:
|
if (i % 3) == 2 or i == len(printed) - 1:
|
||||||
n = (i % 3) + 1
|
n = (i % 3) + 1
|
||||||
print('\n|%s' % ('---|' * n), file = doc_file)
|
print('\n|%s' % ('---|' * n), file = doc_file)
|
||||||
|
Reference in New Issue
Block a user