fix(datasheet): broken links to git / extra docs

This commit is contained in:
Uri Shaked
2023-09-06 10:02:13 +03:00
parent 09c57b7938
commit da5f3cb1f8
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -4,10 +4,10 @@
* Author: {author} * Author: {author}
* Description: {description} * Description: {description}
* [GitHub repository]({git_url}) * [GitHub repository](__git_url__)
* {project_type} project * {project_type} project
* Mux address: {mux_address} * Mux address: {mux_address}
* [Extra docs]({doc_link}) * [Extra docs](__doc_link__)
* Clock: {clock_hz} Hz * Clock: {clock_hz} Hz
* External hardware: {external_hw} * External hardware: {external_hw}
+5 -1
View File
@@ -104,7 +104,11 @@ class Docs():
# now build the doc & print it # now build the doc & print it
try: try:
doc = doc_template.format(**yaml_data) doc = (doc_template
.replace('__git_url__', '{git_url}')
.replace('__doc_link__', '{doc_link}')
.format(**yaml_data)
)
fh.write(doc) fh.write(doc)
fh.write("\n\clearpage\n") fh.write("\n\clearpage\n")
except IndexError: except IndexError: