Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated usages of 'layout' API of 'ContentAndMedia' in docs #531

Merged
merged 3 commits into from
Apr 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Use the `title` parameter to provide a name for the section. Then, use the ``Con
...

@Section(title: "Add a customization view") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {
Add the ability for users to customize sloths and select their powers.

@Image(source: 01-creating-section2.png, alt: "An outline of a sloth surrounded by four power type icons. The power type icons are arranged in the following order, clockwise from the top: fire, wind, lightning, and ice.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Use a `ContentAndMedia` directive within a ``Section`` or ``Stack`` directive to
...

@Section(title: "Add a customization view") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {
Add the ability for users to customize sloths and select their powers.

@Image(source: 01-creating-section2.png, alt: "An outline of a sloth surrounded by four power type icons. The power type icons are arranged in the following order, clockwise from the top: fire, wind, lightning, and ice.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,22 @@ Use the Stack directive to horizontally arrange between one and three groupings
...

@Section(title: "Add a customization view") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {
Add the ability for users to customize sloths and select their powers.

@Image(source: 01-creating-section2.png, alt: "An outline of a sloth surrounded by four power type icons. The power type icons are arranged in the following order, clockwise from the top: fire, wind, lightning, and ice.")
}

@Stack {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {
...
}

@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {
...
}

@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {
...
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Use the `Step` directive to define a single task the reader performs within a se
}

@Section(title: "Create a new folder and add SlothCreator") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {

...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Each individual step contains instructional text along with either a code listin
...

@Section(title: "Create a Swift Package") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {

...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Use a text editor to add a Tutorial file to your documentation catalog and ensur
}

@Section(title: "<#text#>") {
@ContentAndMedia(layout: horizontal) {
@ContentAndMedia {
<#text#>

@Image(source: <#file#>, alt: "<#accessible description#>")
Expand Down Expand Up @@ -112,7 +112,7 @@ Define sections using the ``Section`` directive. You can optionally start with d
}

@Section(title: "Create a Swift Package in a new directory") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {

...

Expand Down Expand Up @@ -146,7 +146,7 @@ Define sections using the ``Section`` directive. You can optionally start with d
}

@Section(title: "Add a customization view") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {

...

Expand Down Expand Up @@ -174,7 +174,7 @@ At the end of a tutorial page, you can optionally use an ``Assessments`` directi
}

@Section(title: "Create a new project and add SlothCreator") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {

...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Tutorial pages provide instructions that walk through using your APIs in realist
}

@Section(title: "Add the name of your section here.") {
@ContentAndMedia(layout: horizontal) {
@ContentAndMedia {
Add engaging section text here.

@Image(source: "section-image-filename-here.jpg", alt: "Add an accessible description for your image here.")
Expand Down Expand Up @@ -103,7 +103,7 @@ Replace the placeholders with your custom content. Use the ``Intro`` directive t
}

@Section(title: "Add a section title here") {
@ContentAndMedia(layout: "horizontal") {
@ContentAndMedia {
Add some content here to introduce the steps that follow.

@Image(source: "section-image-filename.png", alt: "Add an accessible description for your image here.")
Expand Down