This commit includes the following changes: * CLI version information is read from the CLI package from which we read the help files. * CLI API pages now contain GH links * line numbers are not shown in GH links, if the doc does not have a truthy `startingLine` value. This allows us to remove hard coded checks for `guide` pages * content pages and CLI api docs no longer have a `startingLine` * the hard-coded `packages` path segment has been removed from the templates; instead we now only use the `realProjectRelativePath`. * the `realProjectRelativePath` has been updated accordingly for API and CLI API docs. PR Close #26515
21 lines
611 B
HTML
21 lines
611 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) $}
|
|
{$ cli.renderArguments(doc.positionalOptions, 2) $}
|
|
{$ cli.renderNamedOptions(doc.namedOptions, 2) $}
|
|
{$ cli.renderSubcommands(doc) $}
|
|
{$ doc.longDescription | marked $}
|
|
</div>
|
|
</article>
|