From a086976d68cc5c2f4e913deaf77121db89ed20a5 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Tue, 2 Feb 2021 14:35:43 +0200 Subject: [PATCH] fix(docs-infra): improve heading styles (#40427) This commit includes some general improvements to heading styles (font-weight, margin/padding). It also adds a horizontal separator above `

` headings to segment important sections more easily. (As a consequence, we can remove several `
` elements right before `

` headings.) Co-authored-by: Stefanie Fluin PR Close #40427 --- aio/content/guide/aot-metadata-errors.md | 21 -------- aio/content/guide/architecture.md | 7 ++- aio/content/guide/attribute-binding.md | 9 ---- aio/content/guide/attribute-directives.md | 3 -- aio/content/guide/built-in-directives.md | 22 -------- aio/content/guide/dependency-injection.md | 3 -- aio/content/guide/deployment.md | 6 --- aio/content/guide/elements.md | 2 - aio/content/guide/entry-components.md | 2 - aio/content/guide/event-binding.md | 2 - aio/content/guide/feature-modules.md | 2 - aio/content/guide/frequent-ngmodules.md | 2 - .../hierarchical-dependency-injection.md | 2 - aio/content/guide/language-service.md | 2 - aio/content/guide/lazy-loading-ngmodules.md | 2 - aio/content/guide/ngmodule-api.md | 2 - aio/content/guide/ngmodule-faq.md | 53 ------------------- aio/content/guide/ngmodules.md | 2 - aio/content/guide/property-binding.md | 4 -- aio/content/guide/providers.md | 3 -- aio/content/guide/router.md | 3 -- .../guide/service-worker-communications.md | 2 - aio/content/guide/service-worker-devops.md | 16 +++--- .../guide/service-worker-getting-started.md | 2 - aio/content/guide/sharing-ngmodules.md | 2 - aio/content/guide/singleton-services.md | 2 - aio/content/guide/template-syntax.md | 1 - aio/content/guide/test-debugging.md | 2 - .../guide/testing-attribute-directives.md | 2 - .../guide/testing-components-scenarios.md | 36 ------------- aio/content/guide/testing-utility-apis.md | 6 --- aio/content/guide/testing.md | 2 - aio/content/start/index.md | 3 -- aio/src/styles/0-base/_typography.scss | 39 +++++++++----- aio/src/styles/2-modules/_api-list.scss | 1 + 35 files changed, 36 insertions(+), 234 deletions(-) diff --git a/aio/content/guide/aot-metadata-errors.md b/aio/content/guide/aot-metadata-errors.md index 18487917e4..143199e71b 100644 --- a/aio/content/guide/aot-metadata-errors.md +++ b/aio/content/guide/aot-metadata-errors.md @@ -15,8 +15,6 @@ The following are metadata errors you may encounter, with explanations and sugge [Tagged template expressions are not supported](#tagged-template-expressions-not-supported)
[Symbol reference expected](#symbol-reference-expected)
-
- {@a expression-form-not-supported} ## Expression form not supported @@ -47,8 +45,6 @@ Avoid this error by sticking to the compiler's [restricted expression syntax](gu when writing Angular metadata and be wary of new or unusual TypeScript features. -
- {@a reference-to-a-local-symbol} ## Reference to a local (non-exported) symbol @@ -128,8 +124,6 @@ The compiler needs the value of the `template` property _right now_ to generate The variable reference alone is insufficient. Prefixing the declaration with `export` merely produces a new error, "[`Only initialized variables and constants can be referenced`](#only-initialized-variables)". -
- {@a only-initialized-variables} ## Only initialized variables and constants @@ -187,8 +181,6 @@ export let someTemplate = '

Greetings from Angular

'; export class MyComponent {} ``` -
- {@a reference-to-a-non-exported-class} ## Reference to a non-exported class @@ -228,7 +220,6 @@ export abstract class MyStrategy { } ] ... ``` -
{@a reference-to-a-non-exported-function} ## Reference to a non-exported function @@ -266,7 +257,6 @@ export function myStrategy() { ... } ] ... ``` -
{@a function-calls-not-supported} ## Function calls are not supported @@ -322,8 +312,6 @@ export function someValueFactory() { ... ``` -
- {@a destructured-variable-not-supported} ## Destructured variable or constant not supported @@ -364,8 +352,6 @@ import { configuration } from './configuration'; ... ``` -
- {@a could-not-resolve-type} ## Could not resolve type @@ -437,7 +423,6 @@ export class MyComponent { constructor (@Inject(DOCUMENT) private doc: Document) { ... } } ``` -
{@a name-expected} ## Name expected @@ -462,8 +447,6 @@ Change the name of the property to something non-numeric. provider: [{ provide: Foo, useValue: { '0': 'test' } }] ``` -
- {@a unsupported-enum-member-name} ## Unsupported enum member name @@ -494,8 +477,6 @@ enum Colors { Avoid referring to enums with complicated initializers or computed properties. -
- {@a tagged-template-expressions-not-supported} ## Tagged template expressions are not supported @@ -520,8 +501,6 @@ is a _tag function_ native to JavaScript ES2015. The AOT compiler does not support tagged template expressions; avoid them in metadata expressions. -
- {@a symbol-reference-expected} ## Symbol reference expected diff --git a/aio/content/guide/architecture.md b/aio/content/guide/architecture.md index 8a8d6309f1..59977152b1 100644 --- a/aio/content/guide/architecture.md +++ b/aio/content/guide/architecture.md @@ -114,13 +114,12 @@ The router interprets a link URL according to your app's view navigation rules a To define navigation rules, you associate *navigation paths* with your components. A path uses a URL-like syntax that integrates your program data, in much the same way that template syntax integrates your views with your program data. You can then apply program logic to choose which views to show or to hide, in response to user input and your own access rules. -
+
- For a more detailed discussion, see [Routing and navigation](guide/router). + For a more detailed discussion, see [Routing and navigation](guide/router). -
+
-
## What's next diff --git a/aio/content/guide/attribute-binding.md b/aio/content/guide/attribute-binding.md index 81597a9fea..2ae2f3b0ea 100644 --- a/aio/content/guide/attribute-binding.md +++ b/aio/content/guide/attribute-binding.md @@ -74,10 +74,8 @@ For more information on how to bind to the `colSpan` property, see the [`colspan -
{@a class-binding} - ## Binding to the `class` attribute You can use class binding to add and remove CSS class names from an element's `class` attribute. @@ -159,10 +157,8 @@ The following table summarizes class binding syntax. -
{@a style-binding} - ## Binding to the style attribute You can use style binding to set styles dynamically. @@ -260,10 +256,7 @@ However, using the above style binding syntax without `NgStyle` is preferred bec -
- {@a styling-precedence} - ## Styling Precedence A single HTML element can have its CSS class list and style values bound to multiple sources (for example, host bindings from multiple directives). @@ -326,8 +319,6 @@ In that case, if `dirWithHostBinding` sets its binding to `undefined`, the `widt However, if `dirWithHostBinding` sets its binding to `null`, the `width` property will be removed entirely. -
- ## Injecting attribute values There are cases where you need to differentiate the behavior of a [Component](api/core/Component) or [Directive](api/core/Directive) based on a static value set on the host element as an HTML attribute. For example, you might have a directive that needs to know the `type` of a `