mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat(tt_tools): --check-docs now prints all errors
Previously, it only printed the first error it encountered, causing more iterations when fixing info.yaml and info.md errors
This commit is contained in:
-19
@@ -668,25 +668,6 @@ class Project:
|
||||
|
||||
logging.info(f"Bitstream created successfully: {build_dir}/{base_name}.bin")
|
||||
|
||||
# doc check
|
||||
# makes sure that the basic info is present
|
||||
def check_docs(self):
|
||||
info_md = os.path.join(self.local_dir, "docs/info.md")
|
||||
if not os.path.exists(info_md):
|
||||
logging.error("Missing docs/info.md file")
|
||||
exit(1)
|
||||
|
||||
with open(info_md) as fh:
|
||||
info_md_content = fh.read()
|
||||
|
||||
if "# How it works\n\nExplain how your project works" in info_md_content:
|
||||
logging.error("Missing 'How it works' section in docs/info.md")
|
||||
exit(1)
|
||||
|
||||
if "# How to test\n\nExplain how to use your project" in info_md_content:
|
||||
logging.error("Missing 'How to test' section in docs/info.md")
|
||||
exit(1)
|
||||
|
||||
# use pandoc to create a single page PDF preview
|
||||
def create_pdf(self):
|
||||
template_args = copy.deepcopy(self.info.__dict__)
|
||||
|
||||
Reference in New Issue
Block a user