Skip to content

Commit

Permalink
πŸ“– [Story documentation] Fix page attachment docs location (#37669)
Browse files Browse the repository at this point in the history
* Added tasts

* Undo

* Moved page attachment and outlink docs

* Fixed links
  • Loading branch information
mszylkowski authored Feb 14, 2022
1 parent fdb1fec commit 4944583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ A UI button prompting the viewer to open the attachment will appear at the botto
The `<amp-story-page-attachment>` element must be the last child of `<amp-story-page>`, and must have the `layout="nodisplay"` attribute. The attachment AMPHTML content is expected to be provided inline in your AMP Story, within this `<amp-story-page-attachment>` tag.

[tip type="important"]
Both [`amp-story-page-attachment`](amp-story-page-attachment.md) and [`amp-story-page-outlink`](amp-story-page-outlink.md) must be the last child tag of an [`amp-story-page`](amp-story-page.md). Because of this, you may include neither or one, but not both.
Both [`amp-story-page-attachment`](amp-story-page-attachment.md) and [`amp-story-page-outlink`](amp-story-page-outlink.md) must be the last child tag of an [`amp-story-page`](https://amp.dev/documentation/components/amp-story-page?format=stories). Because of this, you may include neither or one, but not both.
[/tip]

## Attributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ It must have the `layout="nodisplay"` attribute.
The `<amp-story-page-outlink>` element must be the last child of `<amp-story-page>`, and must have the `layout="nodisplay"` attribute.

[tip type="important"]
Both [`amp-story-page-outlink`](amp-story-page-outlink.md) and [`amp-story-page-attachment`](amp-story-page-attachment.md) must be the last child tag of an [`amp-story-page`](amp-story-page.md). Because of this, you may include neither or one, but not both.
Both [`amp-story-page-outlink`](amp-story-page-outlink.md) and [`amp-story-page-attachment`](amp-story-page-attachment.md) must be the last child tag of an [`amp-story-page`](https://amp.dev/documentation/components/amp-story-page?format=stories). Because of this, you may include neither or one, but not both.
[/tip]

## `Custom Text` (optional)
Expand Down Expand Up @@ -147,5 +147,5 @@ Specifying `cta-image=none` will remove the default link icon.
```

[tip type="note"]
The functionality of `amp-story-page-outlink` used to be supported by [`amp-story-page-attachment`](https://amp.dev/documentation/components/amp-story-page-attachment/?format=stories). Please use `amp-story-page-outlink` for one-tap outlinking UI.
The functionality of `amp-story-page-outlink` used to be supported by [`amp-story-page-attachment`](amp-story-page-attachment.md). Please use `amp-story-page-outlink` for one-tap outlinking UI.
[/tip]

0 comments on commit 4944583

Please sign in to comment.