-
-
Couldn't load subscription status.
- Fork 19
feat(help): rework help system and add French translations #1469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request significantly reworks and improves Nelson's help documentation system. It replaces the help browser module with a more modern help tools implementation and transitions from .qch (Qt Compiled Help) format to .nhz (Nelson Help Zip) format. The PR also adds comprehensive French (fr_FR) translations for multiple modules including control_system, constructors_functions, console, and com_engine, along with improvements to English documentation.
Key changes:
- Removes the help_browser module dependency and replaces help file format from
.qchto.nhz - Adds complete French documentation for control system, constructor functions, console, and COM engine modules
- Enhances English documentation with runnable example attributes and improved chapter descriptions
- Updates build configuration and installation scripts to reflect new help system
Reviewed Changes
Copilot reviewed 279 out of 3118 changed files in this pull request and generated 23 comments.
Show a summary per file
| File | Description |
|---|---|
| modules/control_system/help/fr_FR/xml/*.xml | New French documentation for 30+ control system functions |
| modules/control_system/help/en_US/xml/*.xml | Enhanced English docs with runnable example attributes and typo fixes |
| modules/constructors_functions/help/fr_FR/xml/*.xml | New French documentation for constructor functions |
| modules/constructors_functions/help/en_US/xml/*.xml | Enhanced English docs with runnable attributes |
| modules/console/help/fr_FR/xml/*.xml | New French documentation for console module |
| modules/console/help/en_US/xml/*.xml | Enhanced English docs with runnable attributes |
| modules/com_engine/help/fr_FR/xml/*.xml | New French documentation for COM engine |
| modules/com_engine/help/en_US/xml/*.xml | Enhanced English docs with runnable attributes |
| modules/*/CMakeLists.txt | Updated to install .nhz instead of .qch files |
| modules/*/module.iss | Updated installer scripts for new help format |
| modules/commons/src/include/nlsBuildConfig.h.* | Removed help_browser module dependency |
| modules/CMakeLists.txt | Removed HELP_BROWSER from module list |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 279 out of 3118 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
53451a5 to
dcc1ad6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 279 out of 3126 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
dcc1ad6 to
96548ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 279 out of 3126 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (3)
modules/control_system/help/en_US/xml/bode.xml:40
- The description text is in English but appears in a French translation context. This is likely a copy-paste error that wasn't corrected during translation.
<param_description>Phase: size 1 x 1 x k (SISO).</param_description>
modules/control_system/help/en_US/xml/bode.xml:44
- Similar to phase parameter, this description is in English within what should be French translation context based on file structure patterns.
<param_description>Frequencies: a vector: 1 x k.</param_description>
modules/control_system/help/en_US/xml/bode.xml:1
- The entire description block (lines 50-57) is in English in what appears to be the en_US file, which is correct. However, this English text was not translated in the fr_FR version of this file.
<?xml version="1.0" encoding="UTF-8" ?>
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 279 out of 3126 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
8510d70 to
2c96eef
Compare
|
|
||
| //============================================================================= | ||
| static void | ||
| addRawXml(xmlNodePtr parent, const std::string& rawxml) |
Check notice
Code scanning / CodeQL
Unused static function Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 days ago
To resolve this issue, we should remove the entire definition of the unused static void addRawXml function from this file. Specifically, delete lines 229 through 243 of XmlDocMergeSummary.cpp, which include the function's signature, body, and trailing comment-delineated separator. No other changes or imports are needed elsewhere; simply deleting this function is safe and maintains existing functionality.
| @@ -226,22 +226,6 @@ | ||
| } | ||
|
|
||
| //============================================================================= | ||
| static void | ||
| addRawXml(xmlNodePtr parent, const std::string& rawxml) | ||
| { | ||
|
|
||
| xmlNodePtr list = nullptr; | ||
|
|
||
| int ret = xmlParseInNodeContext(parent, rawxml.c_str(), (int)rawxml.size(), 0, &list); | ||
|
|
||
| if (ret == 0 && list) { | ||
| for (xmlNodePtr cur = list; cur; cur = cur->next) { | ||
| xmlAddChild(parent, xmlCopyNode(cur, 1)); | ||
| } | ||
| xmlFreeNodeList(list); | ||
| } | ||
| } | ||
| //============================================================================= | ||
| static bool | ||
| CreateMergedXmlDocument(const std::vector<SectionInfo>& sections, const std::string& mainPage, | ||
| const std::filesystem::path& outputPath, std::wstring& errorMessage) |
- html and md generation working - local help indexing working - some cleanup of helptools module - removed qch/qhcp generation (not used anymore) - removed hoedown (replaced by cmark) - fixed some issues with special characters in markdown - added crc32 builtin function (used for help indexing) - updated changelogs - help_browser module removed - theme support for html/md help (light/dark) - added images generation for examples TODO: - add more tests - update documentation - refactor some code
- french translation added
- Updated XSLT files to apply templates for parameter descriptions in HTML output, improving the rendering of complex descriptions. - Introduced a new template for rendering inline links in both HTML and Markdown formats, enhancing navigation within documentation. - Added emoji icons to various text labels in the Markdown output for better visual appeal and clarity. - Improved test scripts to skip tests if XML documentation is missing, ensuring robustness in test execution. - Created a new script to check XML documentation integrity across modules, enhancing documentation quality assurance. - Refactored existing XML documentation files for consistency and clarity, including translations and formatting adjustments.
…r contrast for better accessibility
… remove XmlDocMakeSummary.cpp
2c96eef to
b669437
Compare
13f8715 to
f3ec522
Compare
f3ec522 to
9fbc810
Compare
This commit significantly improves Nelson's help documentation system: