Skip to content
Open
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
2 changes: 1 addition & 1 deletion _includes/new-includes/components/linux-releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ <h2>RPM</h2>
</div>
</div>
{% endif %}
<h2 id="development-snapshots" class="header-with-anchor">Development Snapshots</h2>
<h2 id="development-snapshots" class="html-header-with-anchor">Development Snapshots</h2>
<div>
<p class="content-copy">Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion assets/javascripts/new-javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if (codeBoxes.length) {
})
}

document.querySelectorAll('h2.header-with-anchor').forEach(header => {
document.querySelectorAll('h2.html-header-with-anchor').forEach(header => {
if (!header.id) return;

const link = document.createElement('a');
Expand Down
6 changes: 4 additions & 2 deletions assets/stylesheets/new-stylesheets/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ blockquote {
}
}

.header-with-anchor {
.header-with-anchor,
.html-header-with-anchor {
scroll-margin-top: 80px;

a {
Expand All @@ -82,7 +83,8 @@ blockquote {
}
}

h2.header-with-anchor {
h2.header-with-anchor,
.html-header-with-anchor {
&:hover {
a {
display: inline-block;
Expand Down
12 changes: 6 additions & 6 deletions install/linux/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title: Install Swift - Linux
---

<div class="content">
<h3 id="swiftly" class="header-with-anchor">1. Install Swift via Swiftly</h3>
<h3 id="swiftly" class="html-header-with-anchor">1. Install Swift via Swiftly</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.linux.releases.latest-release.swiftly %}
Expand All @@ -17,7 +17,7 @@ title: Install Swift - Linux
{% include new-includes/components/code-box.html content = site.data.new-data.install.linux.releases.latest-release.container %}
</div>
</div>
<h3 id="editor" class="header-with-anchor">2. Select an Editor</h3>
<h3 id="editor" class="html-header-with-anchor">2. Select an Editor</h3>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
Expand All @@ -30,13 +30,13 @@ title: Install Swift - Linux
</div>
</div>
</div>
<h3 id="build-a-command-line-tool" class="header-with-anchor">3. Build a Command-line Tool</h3>
<h3 id="build-a-command-line-tool" class="html-header-with-anchor">3. Build a Command-line Tool</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.build-a-package%}
</div>
</div>
<h2 id="swift-sdk-bundles" class="header-with-anchor">Swift SDK Bundles</h2>
<h2 id="swift-sdk-bundles" class="html-header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
Expand All @@ -54,7 +54,7 @@ title: Install Swift - Linux
</div>
<br><br>
<hr>
<h2 id="development-snapshots" class="header-with-anchor">Development Snapshots</h2>
<h2 id="development-snapshots" class="html-header-with-anchor">Development Snapshots</h2>
<div>
<p class="content-copy">Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.</p>
</div>
Expand All @@ -63,7 +63,7 @@ title: Install Swift - Linux
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.linux.dev.latest-dev.swiftly %}
</div>
</div>
<h2 id="swift-sdk-bundles" class="header-with-anchor">Swift SDK Bundles</h2>
<h2 id="swift-sdk-bundles" class="html-header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
Expand Down
14 changes: 7 additions & 7 deletions install/macos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ title: Install Swift - macOS


<div class="content">
<h3 id="swiftly" class="header-with-anchor">1. Install Swift via Swiftly</h3>
<h3 id="swiftly" class="html-header-with-anchor">1. Install Swift via Swiftly</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.macos.releases.latest-release.swiftly%}
</div>
</div>
<h3 id="editor" class="header-with-anchor">2. Select an Editor</h3>
<h3 id="editor" class="html-header-with-anchor">2. Select an Editor</h3>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
Expand All @@ -34,13 +34,13 @@ title: Install Swift - macOS
{% include new-includes/components/code-box.html content = site.data.new-data.install.macos.releases.latest-release.other_editors%}
</div>
</div>
<h3 id="build-a-command-line-tool" class="header-with-anchor">3. Build a Command-line Tool</h3>
<h3 id="build-a-command-line-tool" class="html-header-with-anchor">3. Build a Command-line Tool</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.build-a-package%}
</div>
</div>
<h2 id="swift-sdk-bundles" class="header-with-anchor">Swift SDK Bundles</h2>
<h2 id="swift-sdk-bundles" class="html-header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
Expand All @@ -56,7 +56,7 @@ title: Install Swift - macOS
</div>
</div>
</div>
<h3 id="alternative-install-options" class="header-with-anchor">Alternative toolchain install options</h3>
<h3 id="alternative-install-options" class="html-header-with-anchor">Alternative toolchain install options</h3>
<div class="release-box section">
<div class="content">
<div class="code-box content-wrapper">
Expand All @@ -83,7 +83,7 @@ title: Install Swift - macOS
</div>
<br><br>
<hr>
<h2 id="development-snapshots" class="header-with-anchor">Development Snapshots</h2>
<h2 id="development-snapshots" class="html-header-with-anchor">Development Snapshots</h2>
<div>
<p class="content-copy">Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.</p>
<p class="content-copy">The easiest way to install development snapshots is with the Swiftly tool. Read more on the <a href="/install/macos/swiftly">instructions page</a>.</p>
Expand Down Expand Up @@ -151,7 +151,7 @@ title: Install Swift - macOS
</details>
</div>
</div>
<h2 id="swift-sdk-buindles-dev" class="header-with-anchor">Swift SDK Bundles</h2>
<h2 id="swift-sdk-buindles-dev" class="html-header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
Expand Down
12 changes: 6 additions & 6 deletions install/windows/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ title: Install Swift - Windows
{% assign platform = site.data.builds.swift_releases.last.platforms | where: 'name', 'Windows 10' | first %}

<div class="content">
<h3 id="winget" class="header-with-anchor">1. Install Swift via WinGet</h3>
<h3 id="winget" class="html-header-with-anchor">1. Install Swift via WinGet</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.winget %}
</div>
</div>
<h3 id="editor" class="header-with-anchor">2. Select an Editor</h3>
<h3 id="editor" class="html-header-with-anchor">2. Select an Editor</h3>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
Expand All @@ -32,13 +32,13 @@ title: Install Swift - Windows
</div>
</div>
</div>
<h3 id="build-a-command-line-tool" class="header-with-anchor">3. Build a Command-line Tool</h3>
<h3 id="build-a-command-line-tool" class="html-header-with-anchor">3. Build a Command-line Tool</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.build-a-package%}
</div>
</div>
<h2 id="alternative-install-options" class="header-with-anchor">Alternative install options</h2>
<h2 id="alternative-install-options" class="html-header-with-anchor">Alternative install options</h2>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
Expand Down Expand Up @@ -76,7 +76,7 @@ title: Install Swift - Windows
</div>
</div>
</div>
<h2 id="previous-releases" class="header-with-anchor">Previous Releases</h2>
<h2 id="previous-releases" class="html-header-with-anchor">Previous Releases</h2>
<div>
<p class="content-copy">Previous releases of Swift are available for installation on Windows using the manual installer, <a href="/install/windows/archived">as documented here</a>.</p>
</div>
Expand All @@ -88,7 +88,7 @@ title: Install Swift - Windows
</details>
</div>
</div>
<h2 id="development-snapshots" class="header-with-anchor">Development Snapshots</h2>
<h2 id="development-snapshots" class="html-header-with-anchor">Development Snapshots</h2>
<div>
<p class="content-copy">Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.</p>
</div>
Expand Down