Skip to content

Update qhelp style guide for markdown format #19730

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Jun 11, 2025

We now support query help files formatted as markdown, but this was not documented. I have tried to update the documentation (with a lot of help from copilot). I am not particularly familiar with markdown query help files, so I may have got some things wrong.

@Copilot Copilot AI review requested due to automatic review settings June 11, 2025 13:06
@owen-mc owen-mc requested a review from a team as a code owner June 11, 2025 13:06
Copy link
Contributor

@Copilot Copilot AI left a 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 PR updates the Query Help Style Guide to document support for Markdown-formatted query help files alongside the existing XML format.

  • Introduces a new section detailing the structure and requirements for Markdown .md query help files.
  • Harmonizes references to section-level elements across both Markdown and XML formats.
  • Adds a combined Markdown and XML query help example for Java.
Comments suppressed due to low confidence (2)

docs/query-help-style-guide.md:77

  • The term “description section” is ambiguous in the Markdown context (we only define Overview, Recommendation, Example, etc.). Consider replacing “description section” with “overview section” or clarifying when each section should contain examples.
* Put the code example after the recommendation section where possible. Only include an example in the description section if absolutely necessary.

docs/query-help-style-guide.md:144

  • Suggest clarifying that authors should not commit generated HTML (not Markdown) when writing native Markdown query help; the current wording may confuse manual vs. generated files.
Please include the query help files (and any associated code snippets) in your pull request, but do not commit the generated Markdown.

@owen-mc
Copy link
Contributor Author

owen-mc commented Jun 11, 2025

I based the updated guidance on a few java qhelp files, like this. I see there are also qhelp files for actions, like this, which have some small differences. We should decide which we way we want to go and standardize. In both cases the java ones are closer to the custom XML format.

  • The first section in the java ones is ##Overview, and in the actions ones it is ##Description.
  • The java ones have ##Recommendation and the actions ones have ##Recommendations.
  • The actions ones have a title briefly summarising the query.

@owen-mc owen-mc force-pushed the update-qhelp-style-guide-for-markdown-format branch from 1c54642 to 25adcc8 Compare June 11, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant