Try again GFM is so broken!

This commit is contained in:
Chris Palmer 2019-06-11 08:46:38 +01:00
parent 8297dc75ba
commit 00c6914e23
2 changed files with 10 additions and 13 deletions

View File

@ -1,4 +1,4 @@
<a name="TOP"/>
<a name="TOP"></a>
# MainsBreakOutBox
13A socket break out box with 4mm jacks to measure voltage and / or load current and earth leakage current.
@ -27,7 +27,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin
[Top](#TOP)
---
<a name="Parts_list"/>
<a name="Parts_list"></a>
## Parts list
| <span style="writing-mode: vertical-rl; text-orientation: mixed;">Base</span> | <span style="writing-mode: vertical-rl; text-orientation: mixed;">Feet</span> | <span style="writing-mode: vertical-rl; text-orientation: mixed;">Mains&nbsp;In</span> | <span style="writing-mode: vertical-rl; text-orientation: mixed;">Main</span> | <span style="writing-mode: vertical-rl; text-orientation: mixed;">TOTALS</span> | |
|--:|--:|--:|--:|--:|:--|
@ -54,7 +54,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin
[Top](#TOP)
---
<a name="base_assembly"/>
<a name="base_assembly"></a>
## Base Assembly
### Vitamins
|Qty|Description|
@ -81,7 +81,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin
[Top](#TOP)
---
<a name="feet_assembly"/>
<a name="feet_assembly"></a>
## Feet Assembly
### Vitamins
|Qty|Description|
@ -117,7 +117,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin
[Top](#TOP)
---
<a name="mains_in_assembly"/>
<a name="mains_in_assembly"></a>
## Mains In Assembly
### Vitamins
|Qty|Description|
@ -156,7 +156,7 @@ Earth leakage can be measured Canadian CSA style by disconnected the neutral lin
[Top](#TOP)
---
<a name="main_assembly"/>
<a name="main_assembly"></a>
## Main Assembly
### Vitamins
|Qty|Description|

View File

@ -178,8 +178,7 @@ def views(target, do_assemblies = None):
# Title, description and picture
#
project = ' '.join(word[0].upper() + word[1:] for word in os.path.basename(os.getcwd()).split('_'))
print('<a name="TOP"/>', file = doc_file)
print('# %s' % project, file = doc_file)
print('<a name="TOP"></a>\n# %s' % project, file = doc_file)
main_file = bom.find_scad_file('main_assembly')
if not main_file:
raise Exception("can't find source for main_assembly")
@ -205,8 +204,7 @@ def views(target, do_assemblies = None):
#
# Global BOM
#
print('<a name="Parts_list"/>', file = doc_file)
print('## Parts list', file = doc_file)
print('<a name="Parts_list"></a>\n## Parts list', file = doc_file)
vitamins = {}
printed = {}
routed = {}
@ -246,11 +244,10 @@ def views(target, do_assemblies = None):
name = ass["name"]
cap_name = name.replace('_', ' ').title()
print('<a name="%s"/>' % name, file = doc_file)
if ass["count"] > 1:
print("## %d x %s" % (ass["count"], cap_name), file = doc_file)
print('<a name="%s"></a>\n## %d x %s' % (name, ass["count"], cap_name), file = doc_file)
else:
print("## %s" % cap_name, file = doc_file)
print('<a name="%s"></a>\n## %s' % (name, cap_name), file = doc_file)
vitamins = ass["vitamins"]
if vitamins:
print("### Vitamins", file = doc_file)