build(docs-infra): fix CLI command github links (#30889)
The "view" links were broken because the version used to compute the git tag for the GitHub URL included a build SHA. Now we clean that off before using it in the URL. The links are to the JSON schema that defines the documentation for the command. This is accurate but confusing because the content for the long description is stored in a separate markdown file referenced from this schema file. This commit adds a second set of links for the long description, if it exists, which links directly to the markdown file. Closes #30700 PR Close #30889
This commit is contained in:

committed by
Miško Hevery

parent
3859bcc70c
commit
f440bd1793
@ -14,7 +14,10 @@
|
||||
{$ cli.renderSyntax(doc) $}
|
||||
|
||||
{% if doc.longDescription.length %}
|
||||
<h2 class="no-anchor">Description</h2>
|
||||
<h2 class="no-anchor">
|
||||
{$ github.githubLinks(doc.longDescriptionDoc, cliVersionInfo) $}
|
||||
Description
|
||||
</h2>
|
||||
{$ doc.longDescription | marked $}
|
||||
{% endif%}
|
||||
|
||||
|
Reference in New Issue
Block a user