Skip to content

Commit

Permalink
fix imports / and references in md files.
Browse files Browse the repository at this point in the history
  • Loading branch information
samouri committed May 5, 2021
1 parent ddee29e commit d430428
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion extensions/amp-bind/amp-bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ Some AMP components and HTML elements have specific bindable attributes. They ar
- `[src]`
- `[srcset]`

Bind to `[srcset]` instead of `[src]` to support responsive images. See corresponding [`amp-img` attributes](../../builtins/amp-img.md#attributes).
Bind to `[srcset]` instead of `[src]` to support responsive images. See corresponding [`amp-img` attributes](../../builtins/amp-img/amp-img.md#attributes).
[/filter] <!-- formats="websites, ads" -->
[filter formats="email"]

Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-nested-menu/amp-nested-menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ limitations under the License.

The `<amp-nested-menu>` component must be placed inside `<amp-sidebar>`. The component may contain the following AMP elements:

- [`<amp-img>`](../../builtins/amp-img.md)
- [`<amp-img>`](../../builtins/amp-img/amp-img.md)
- [`<amp-list>`](../amp-list/amp-list.md)
- [`<amp-accordion>`](../amp-accordion/amp-accordion.md)

Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-next-page/0.1/amp-next-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ component will render a maximum of three documents (total) on screen at one sing

[tip type="important"]
**Important** [`<amp-analytics>`](../../amp-analytics/amp-analytics.md) is [currently unsupported](https://github.com/ampproject/amphtml/issues/15807) on pages users land on through `<amp-next-page>`.
Tracking page views is supported through [`<amp-pixel>`](../../../builtins/amp-pixel.md) or `<amp-analytics>` on the host page.
Tracking page views is supported through [`<amp-pixel>`](../../../builtins/amp-pixel/amp-pixel.md) or `<amp-analytics>` on the host page.
[/tip]

### Configuration spec
Expand Down
2 changes: 1 addition & 1 deletion extensions/amp-next-page/amp-next-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Each document loads with a full-width gray horizontal line to separate it from t
The `<amp-next-page>` component supports analytics on the hosted page as well as on subsequently loaded articles. We recommend using the same analytics triggers used on standalone articles, including scroll-bound triggers.

[tip type="important"]
Tracking page views is supported through [`<amp-pixel>`](../../builtins/amp-pixel.md) or `<amp-analytics>` on the host page. It is recommended to use the `useInitialPageSize` property of `<amp-analytics>` to get a more accurate measurement of the scroll triggers otherwise the host page's `100%` trigger point would only be fired after the user scrolled past all sub-documents. Note that this will also ignore the size changes caused by other extensions (such as expanding embedded content) so some scroll events might fire prematurely instead.
Tracking page views is supported through [`<amp-pixel>`](../../builtins/amp-pixel/amp-pixel.md) or `<amp-analytics>` on the host page. It is recommended to use the `useInitialPageSize` property of `<amp-analytics>` to get a more accurate measurement of the scroll triggers otherwise the host page's `100%` trigger point would only be fired after the user scrolled past all sub-documents. Note that this will also ignore the size changes caused by other extensions (such as expanding embedded content) so some scroll events might fire prematurely instead.
[/tip]

Two custom analytics events are also provided on the host page to indicate transitioning between pages. These events can be tracked in the [amp-analytics](https://amp.dev/documentation/components/amp-analytics) config as follows:
Expand Down
2 changes: 1 addition & 1 deletion spec/amp-html-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ In these cases, services may set up endpoints that produce data that conforms to

## Components

Built-in components include [amp-img](../builtins/amp-img.md), [amp-layout](../builtins/amp-layout.md) and [amp-pixel](../builtins/amp-pixel.md).
Built-in components include [amp-img](../builtins/amp-img/amp-img.md), [amp-layout](../builtins/amp-layout/amp-layout.md) and [amp-pixel](../builtins/amp-pixel/amp-pixel.md).

AMP HTML extensions include [extended components](../extensions) and extended templates.
2 changes: 1 addition & 1 deletion spec/amp-var-substitutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ The following table lists the features that enable variable substitutions, as we
<td width="25%">None</td>
</tr>
<tr>
<td width="25%"><code>amp-pixel</code><br><a href="https://github.com/ampproject/amphtml/blob/main/builtins/amp-pixel.md#substitutions">Detailed documentation</a></td>
<td width="25%"><code>amp-pixel</code><br><a href="https://github.com/ampproject/amphtml/blob/main/builtins/amp-pixel/amp-pixel.md#substitutions">Detailed documentation</a></td>
<td width="25%">Requests must be HTTPS URLs (not a requirement specific to variable substitutions)</td>
<td width="25%">No</td>
<td width="25%">None</td>
Expand Down
6 changes: 3 additions & 3 deletions src/service/core-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ import {installGlobalNavigationHandlerForDoc} from './navigation';
import {installGlobalSubmitListenerForDoc} from '../document-submit';
import {installHiddenObserverForDoc} from './hidden-observer-impl';
import {installHistoryServiceForDoc} from './history-impl';
import {installImg} from '../../builtins/amp-img';
import {installImg} from '../../builtins/amp-img/amp-img';
import {installInaboxResourcesServiceForDoc} from '../inabox/inabox-resources';
import {installInputService} from '../input';
import {installLayout} from '../../builtins/amp-layout';
import {installLayout} from '../../builtins/amp-layout/amp-layout';
import {installLoadingIndicatorForDoc} from './loading-indicator';
import {installMutatorServiceForDoc} from './mutator-impl';
import {installOwnersServiceForDoc} from './owners-impl';
import {installPixel} from '../../builtins/amp-pixel';
import {installPixel} from '../../builtins/amp-pixel/amp-pixel';
import {installPlatformService} from './platform-impl';
import {installPreconnectService} from '../preconnect';
import {installResourcesServiceForDoc} from './resources-impl';
Expand Down
2 changes: 1 addition & 1 deletion test/integration/test-amp-pixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {AmpPixel} from '../../builtins/amp-pixel';
import {AmpPixel} from '../../builtins/amp-pixel/amp-pixel';
import {BrowserController, RequestBank} from '../../testing/test-helper';
import {createElementWithAttributes} from '../../src/dom';

Expand Down
2 changes: 1 addition & 1 deletion test/unit/test-amp-img-intrinsic.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {BrowserController} from '../../testing/test-helper';
import {applyStaticLayout} from '../../src/layout';
import {createElementWithAttributes} from '../../src/dom';
import {createIframePromise} from '../../testing/iframe';
import {installImg} from '../../builtins/amp-img';
import {installImg} from '../../builtins/amp-img/amp-img';
import {toArray} from '../../src/core/types/array';

describes.sandboxed('amp-img layout intrinsic', {}, () => {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test-amp-img-v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {AmpImg} from '../../builtins/amp-img';
import {AmpImg} from '../../builtins/amp-img/amp-img';
import {BaseElement} from '../../src/base-element';
import {Layout, LayoutPriority} from '../../src/layout';
import {createElementWithAttributes, dispatchCustomEvent} from '../../src/dom';
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test-amp-img.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

import {AmpImg, installImg} from '../../builtins/amp-img';
import {AmpImg, installImg} from '../../builtins/amp-img/amp-img';
import {BaseElement} from '../../src/base-element';
import {Layout, LayoutPriority} from '../../src/layout';
import {Services} from '../../src/services';
Expand Down

0 comments on commit d430428

Please sign in to comment.