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
		
			
				
	
	
		
			29 lines
		
	
	
		
			798 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			798 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% import 'lib/cli.html' as cli %}
 | |
| {% import "../lib/githubLinks.html" as github -%}
 | |
| 
 | |
| <article>
 | |
|   {$ github.githubLinks(doc, cliVersionInfo) $}
 | |
|   {% include 'include/cli-breadcrumb.html' %}
 | |
|   {% include 'include/cli-header.html' %}
 | |
| 
 | |
|   <aio-toc class="embedded"></aio-toc>
 | |
| 
 | |
|   <div class="cli-body">
 | |
|     {$ doc.shortDescription | marked $}
 | |
|     {$ doc.description | marked $}
 | |
|     {$ cli.renderSyntax(doc) $}
 | |
| 
 | |
|     {% if doc.longDescription.length %}
 | |
|     <h2 class="no-anchor">
 | |
|         {$ github.githubLinks(doc.longDescriptionDoc, cliVersionInfo) $}
 | |
|         Description
 | |
|     </h2>
 | |
|     {$ doc.longDescription | marked $}
 | |
|     {% endif%}
 | |
| 
 | |
|     {$ cli.renderArguments(doc.positionalOptions, 2) $}
 | |
|     {$ cli.renderNamedOptions(doc.namedOptions, 2) $}
 | |
|     {$ cli.renderSubcommands(doc) $}
 | |
|   </div>
 | |
| </article>
 |