Skip to content

Commit

Permalink
fix: 修正模板链接
Browse files Browse the repository at this point in the history
  • Loading branch information
asnowwolf committed Mar 8, 2024
1 parent e7df369 commit 12b9025
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aio/tools/transforms/templates/api/block.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{% block overview %}
{% if doc.syntax %}
<h2>Syntax</h2>
<h2 id="syntax">语法</h2>
{$ doc.syntax | marked $}
{% endif %}
{% endblock %}
Expand Down
6 changes: 3 additions & 3 deletions aio/tools/transforms/templates/api/lib/memberHelpers.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h4 class="no-anchor">{$ method.overloads.length $} 个重载形式...</h4>
{%- endif %}

{%- for overload in method.overloads %}
<h5 class="no-anchor">Overload #{$ loop.index $}</h5>
<h5 class="no-anchor">重载 #{$ loop.index $}</h5>
{$ renderOverloadInfo(overload, cssClass + '-overload', method) $}
{%- if not loop.last %}
<hr class="hr-margin">{% endif %}
Expand Down Expand Up @@ -215,7 +215,7 @@ <h4 id="{$ method.anchor $}-usage-notes">使用说明</h4>
{%- set nonInternalMethods = methods | filterByPropertyValue('internal', undefined) -%}
{%- if nonInternalMethods.length %}
<section class="{$ containerClass $}">
<h2>{$ headingText $}</h2>
<h2 id="{$ containerClass $}">{$ headingText $}</h2>

{%- for member in nonInternalMethods %}
{$ renderMethodDetail(versionInfo, member, itemClass) $}
Expand All @@ -229,7 +229,7 @@ <h2>{$ headingText $}</h2>
{%- set nonInternalProperties = properties | filterByPropertyValue('internal', undefined) -%}
{%- if nonInternalProperties.length %}
<section class="{$ containerClass $}">
<h{$ headingLevel $}>{$ headingText $}</h{$ headingLevel $}>
<h{$ headingLevel $} id="{$ containerClass $}">{$ headingText $}</h{$ headingLevel $}>
<table class="is-full-width list-table property-table">
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion aio/tools/transforms/templates/api/ngmodule.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% macro renderTable(items, containerClass, headingText, tableHeading) %}
<section class="{$ containerClass $}">
<h2>{$ headingText $}</h2>
<h2 id="{$ containerClass $}">{$ headingText $}</h2>
<table class="is-full-width list-table property-table">
<thead>
<tr>
Expand Down

0 comments on commit 12b9025

Please sign in to comment.