docs: 修正坏链

This commit is contained in:
Zhicheng Wang 2018-10-22 18:17:19 +08:00
parent 9a0d3e9633
commit deeeaa9647
10 changed files with 27 additions and 16 deletions

View File

@ -88,6 +88,7 @@
"chai": "^4.1.2",
"classlist.js": "^1.1.20150312",
"core-js": "^2.4.1",
"klaw-sync": "^6.0.0",
"rxjs": "^6.3.0",
"tslib": "^1.9.0",
"web-animations-js": "^2.2.5",

View File

@ -1,5 +1,5 @@
import { Component, ElementRef, EventEmitter, HostListener, Input, OnDestroy, Output } from '@angular/core';
import { Meta, Title } from '@angular/platform-browser';
import { Title } from '@angular/platform-browser';
import { Observable, of, timer } from 'rxjs';
import { catchError, switchMap, takeUntil, tap } from 'rxjs/operators';
@ -65,7 +65,6 @@ export class DocViewerComponent implements OnDestroy {
elementRef: ElementRef,
private logger: Logger,
private titleService: Title,
private metaService: Meta,
private tocService: TocService,
private elementsLoader: ElementsLoader) {
this.hostElement = elementRef.nativeElement;

View File

@ -13,7 +13,7 @@
{% if doc.description or doc.usageNotes %}
<section class="description">
<h2>Description</h2>
<h2 id="description">说明</h2>
{$ (doc.description or '') | trimBlankLines | marked $}
{$ (doc.usageNotes or '') | trimBlankLines | marked $}
</section>

View File

@ -1,14 +1,14 @@
{% import "lib/memberHelpers.html" as memberHelpers -%}
{$ memberHelpers.renderProperties(doc.staticProperties, 'static-properties', 'static-property', 'Static properties') $}
{$ memberHelpers.renderProperties(doc.staticProperties, 'static-properties', 'static-property', '静态属性') $}
{$ memberHelpers.renderMethodDetails(versionInfo, doc.staticMethods, 'static-methods', 'static-method', 'Static methods') $}
{$ memberHelpers.renderMethodDetails(versionInfo, doc.staticMethods, 'static-methods', 'static-method', '静态方法') $}
{% if doc.constructorDoc %}
<h2>Constructor</h2>
<h2 id="constructor">构造函数</h2>
{$ memberHelpers.renderMethodDetail(versionInfo, doc.constructorDoc, 'constructor') $}
{% endif %}
{$ memberHelpers.renderProperties(doc.properties, 'instance-properties', 'instance-property', 'Properties') $}
{$ memberHelpers.renderProperties(doc.properties, 'instance-properties', 'instance-property', '属性') $}
{$ memberHelpers.renderMethodDetails(versionInfo, doc.methods, 'instance-methods', 'instance-method', 'Methods') $}
{$ memberHelpers.renderMethodDetails(versionInfo, doc.methods, 'instance-methods', 'instance-method', '方法') $}

View File

@ -1,6 +1,6 @@
{%- if doc.exportAs %}
<section class="export-as">
<h2>模板变量参考手册</h2>
<h2 id="template-variable-references">模板变量参考手册</h2>
<table class="is-full-width list-table export-as-table">
<thead>
<tr>

View File

@ -1,6 +1,6 @@
{%- if doc.selector %}
<section class="selector-list">
<h2>选择器</h2>
<h2 id="selectors">选择器</h2>
{% if doc.selectors %}
{$ doc.selectors | marked $}
{% else %}

View File

@ -53,17 +53,17 @@
{$ ('**Deprecated** ' + overload.deprecated) | marked $}
</div>{% endif %}
<h4 class="no-anchor">参数</h4>
<h4 id="parameters" class="no-anchor">参数</h4>
{$ params.renderParameters(overload.parameterDocs, cssClass + '-parameters', cssClass + '-parameter') $}
{% if overload.type or overload.returns.type %}
<h4 class="no-anchor">返回值</h4>
<h4 id="returns" class="no-anchor">返回值</h4>
{% marked %}`{$ (overload.type or overload.returns.type) $}`{% if overload.returns %}: {$ overload.returns.description $}{% endif %}{% endmarked %}
{% endif %}
{% if overload.throws.length %}
<h4 class="no-anchor">异常</h4>
<h4 id="throws" class="no-anchor">异常</h4>
{% for error in overload.throws %}
{% marked %}`{$ (error.typeList or '错误') $}` {$ error.description $}{% endmarked %}
{% endfor %}

View File

@ -62,7 +62,7 @@
{$ memberHelpers.renderProperties(doc.staticProperties, 'static-properties', 'static-property', 'Static properties') $}
{$ memberHelpers.renderMethodDetails(versionInfo, doc.staticMethods, 'static-methods', 'static-method', 'Static methods') $}
{% if doc.constructorDoc %}
<h2>Constructor</h2>
<h2 id="constructor">构造函数</h2>
{$ memberHelpers.renderMethodDetail(versionInfo, doc.constructorDoc, 'constructor') $}{% endif %}
{$ memberHelpers.renderProperties(doc.properties, 'instance-properties', 'instance-property', 'Properties') $}

View File

@ -37,12 +37,16 @@
{% include "includes/see-also.html" %}
{% if doc.isPrimaryPackage %}
<h2>入口点</h2>
<h2 id="entry-points">入口点</h2>
{$ listItems([doc.packageInfo.primary], '主要', '#primary-entry-point-exports') $}
{$ listItems(doc.packageInfo.secondary, '次要') $}
{% endif %}
<h2>{% if doc.isPrimaryPackage %}主入口{% else %}入口{% endif %}点的导出</h2>
{% if doc.isPrimaryPackage %}
<h2 id="primary-entry-point-exports">主入口点的导出</h2>
{% else %}
<h2 id="entry-point-exports">入口点的导出</h2>
{% endif %}
{% include "includes/deprecation.html" %}
{$ listItems(doc.ngmodules, '模块') $}
{$ listItems(doc.classes, '类') $}

View File

@ -6577,6 +6577,13 @@ kind-of@^6.0.0, kind-of@^6.0.2:
resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.2.tgz#01146b36a6218e64e58f3a8d66de5d7fc6f6d051"
integrity sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==
klaw-sync@^6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/klaw-sync/-/klaw-sync-6.0.0.tgz#1fd2cfd56ebb6250181114f0a581167099c2b28c"
integrity sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==
dependencies:
graceful-fs "^4.1.11"
klaw@^1.0.0:
version "1.3.1"
resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439"