Skip to content

Commit e06fad2

Browse files
change docs.py
1 parent 1b24080 commit e06fad2

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

scripts/documentation.py renamed to scripts/docs.py

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
#! /usr/bin/env python3
22
import re
3+
import os
34
from itertools import groupby
45
from schemascii.components_render import RENDERERS
56

6-
# pylint: disable=unspecified-encoding,missing-function-docstring,invalid-name,not-an-iterable
7+
# pylint: disable=unspecified-encoding,missing-function-docstring,invalid-name
8+
# pylint: disable=not-an-iterable
79
# cSpell:ignore siht etareneg redner iicsa stpircs nettirwrevo ylpmis segnahc
810
# cSpell:ignore mehcs daetsn detareneg yllacitamotua codc stnenopmoc lliw ruo
11+
# cSpell:ignore sgnirtscod
912

1013
TOP = ("# Supported Schemascii Components\n\n<!--\n"
14+
+ "".join(reversed("/stpircs nur dna\nyp.redner_stnenopmoc/iicsa"
15+
"mehcs ni sgnirtscod eht tide ,daetsnI\n"
16+
".nettirwrevo eb ylpmis "
17+
"lliw segnahc ruoY\n!TIDE TON OD\n!ELIF"
18+
" DETARENEG YLLACITAMOTUA"))
19+
+ os.path.basename(__file__)
1120
+ "".join(reversed(".elif siht etareneg-er ot "))
12-
+ __file__
13-
+ "".join(reversed("/stpircs nur dna yp.redner_stnenopmoc/iicsa"
14-
"mehcs tide ,daetsnI\n.nettirwrevo eb ylpmis "
15-
"lliw segnahc ruoY!TIDE TON OD\n!ELIF"
16-
" DETARENEG YLLACITAMOTUA")) +
17-
"\n-->\n\n| Reference Designators | Description | BOM Syntax | Supported Flags |"
18-
"\n|:--:|:--|:--:|:--|\n")
21+
+ "\n-->\n\n| Reference Designators | Description | "
22+
+ "BOM Syntax | Supported Flags |"
23+
+ "\n|:--:|:--|:--:|:--|\n")
1924

2025

2126
def group_components_by_func():

supported-components.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
<!--
44
AUTOMATICALLY GENERATED FILE!
55
DO NOT EDIT!
6-
Instead, edit schemascii/components_render.py and run scripts/cdoc.py to re-generate this file.
6+
Your changes will simply be overwritten.
7+
Instead, edit the docstrings in schemascii/components_render.py
8+
and run scripts/docs.py to re-generate this file.
79
-->
810

911
| Reference Designators | Description | BOM Syntax | Supported Flags |

0 commit comments

Comments
 (0)