fix(docs): make project doc flow compatible with updated template (#158)

The shuttle datasheet flow was updated to santise strings properly, and within the changes were some updates to the template that was used. This template is shared between the shuttle and individual projects, but the standalone version wasn't updated to be compatible. This commit rectifies that issue.
This commit is contained in:
Kristaps Jurkans
2026-03-08 04:32:54 +01:00
committed by GitHub
parent bfd5020b4c
commit 1caab70038
+2 -2
View File
@@ -668,10 +668,10 @@ class Project:
content = { content = {
"template_version": template_version, "template_version": template_version,
"project_title": template_args["title"].replace('"', '\\"'), "project_title": f'str("{DocsHelper._escape_characters_in_string(template_args["title"])}")',
"project_author": f"({DocsHelper.format_authors(template_args['author'])})", "project_author": f"({DocsHelper.format_authors(template_args['author'])})",
"project_repo_link": self.get_git_remote(), "project_repo_link": self.get_git_remote(),
"project_description": template_args["description"], "project_description": f'str("{DocsHelper._escape_characters_in_string(template_args["description"])}")',
"project_address": "----", "project_address": "----",
"project_clock": DocsHelper.pretty_clock(self.info.clock_hz), "project_clock": DocsHelper.pretty_clock(self.info.clock_hz),
"project_type": DocsHelper.get_project_type( "project_type": DocsHelper.get_project_type(