fixup! feat(aio): allow template to position embedded ToC (#22565)
PR Close #22565
This commit is contained in:
parent
41064fcb36
commit
405d97431f
@ -37,14 +37,3 @@ aio-shell.page-docs {
|
|||||||
margin: 24px 0px;
|
margin: 24px 0px;
|
||||||
background: $lightgray;
|
background: $lightgray;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-actions {
|
|
||||||
float: right;
|
|
||||||
.material-icons {
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 4px;
|
|
||||||
font-size: 20px;
|
|
||||||
background-color: $mist;
|
|
||||||
color: $mediumgray;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,3 +1,15 @@
|
|||||||
|
.page-actions {
|
||||||
|
float: right;
|
||||||
|
.material-icons {
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 20px;
|
||||||
|
&:hover {
|
||||||
|
background-color: $mist;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.api-body {
|
.api-body {
|
||||||
|
|
||||||
.class-overview {
|
.class-overview {
|
||||||
@ -24,6 +36,11 @@
|
|||||||
.api-heading {
|
.api-heading {
|
||||||
padding: 5px 0;
|
padding: 5px 0;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.short-description {
|
||||||
|
margin: 6px 0 0 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.properties-table {
|
.properties-table {
|
||||||
|
@ -2,32 +2,22 @@
|
|||||||
{% set comma = joiner(',') %}
|
{% set comma = joiner(',') %}
|
||||||
{% set slash = joiner('/') %}
|
{% set slash = joiner('/') %}
|
||||||
<article>
|
<article>
|
||||||
<div class="page-actions">
|
<div class="page-actions">
|
||||||
<a href="{$ github.githubEditHref(doc, versionInfo) $}" aria-label="Suggest Edits" title="Suggest Edits"><i class="material-icons" aria-hidden="true" role="img">mode_edit</i></a>
|
<a href="{$ github.githubEditHref(doc, versionInfo) $}" aria-label="Suggest Edits" title="Suggest Edits"><i class="material-icons" aria-hidden="true" role="img">mode_edit</i></a>
|
||||||
<a href="{$ github.githubViewHref(doc, versionInfo) $}" aria-label="View Source" title="View Source"><i class="material-icons" aria-hidden="true" role="img">code</i></a>
|
<a href="{$ github.githubViewHref(doc, versionInfo) $}" aria-label="View Source" title="View Source"><i class="material-icons" aria-hidden="true" role="img">code</i></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="breadcrumb">
|
<div class="breadcrumb">
|
||||||
<script type="application/ld+json">
|
<script type="application/ld+json">
|
||||||
{
|
{
|
||||||
"@context": "http://schema.org",
|
"@context": "http://schema.org",
|
||||||
"@type": "BreadcrumbList",
|
"@type": "BreadcrumbList",
|
||||||
"itemListElement": [
|
"itemListElement": [
|
||||||
{% for crumb in doc.breadCrumbs %}
|
{%- for crumb in doc.breadCrumbs %}{$ comma() $}
|
||||||
{$ comma() $}{
|
{ "@type": "ListItem", "position": {$ loop.index $}, "item": { "@id": "https://angular.io/{$ crumb.path $}", "name": "{$ crumb.text $}" } }{% endfor %}
|
||||||
"@type": "ListItem",
|
|
||||||
"position": {$ loop.index $},
|
|
||||||
"item": {
|
|
||||||
"@id": "https://angular.io/{$ crumb.path $}",
|
|
||||||
"name": "{$ crumb.text $}"
|
|
||||||
}
|
|
||||||
}{% endfor %}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% for crumb in doc.breadCrumbs %}{% if not loop.last %}
|
{% for crumb in doc.breadCrumbs %}{% if not loop.last %} {$ slash() $} {% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}</a>{% else %}{$ crumb.text $}{% endif %}{% endif %}{% endfor %}
|
||||||
{$ slash() $}
|
|
||||||
{% if crumb.path %}<a href="{$ crumb.path $}">{$ crumb.text $}</a>{% else %}{$ crumb.text $}{% endif %}
|
|
||||||
{% endif %}{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
<header class="api-header">
|
<header class="api-header">
|
||||||
{% if doc.deprecated !== undefined %}<label class="api-status-label deprecated">deprecated</label>{% endif %}
|
{% if doc.deprecated !== undefined %}<label class="api-status-label deprecated">deprecated</label>{% endif %}
|
||||||
|
@ -4,5 +4,8 @@ https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInf
|
|||||||
|
|
||||||
|
|
||||||
{% macro githubEditHref(doc, versionInfo) -%}
|
{% macro githubEditHref(doc, versionInfo) -%}
|
||||||
https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/edit/master/packages/{$ doc.fileInfo.realProjectRelativePath $}?message=docs({$ doc.moduleDoc.id | escape $})%3A%20describe%20your%20change...#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $}
|
https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/edit/master/packages/{$ doc.fileInfo.realProjectRelativePath $}?message=docs(
|
||||||
|
{%- if doc.moduleDoc %}{$ doc.moduleDoc.id.split('/')[0] $}
|
||||||
|
{%- if doc.docType === 'module' %}{$ doc.id.split('/')[0] $}
|
||||||
|
{%- else %}...{%- endif%})%3A%20describe%20your%20change...#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
Loading…
x
Reference in New Issue
Block a user