mirror of
https://github.com/fastfloat/fast_float.git
synced 2026-06-15 08:26:08 +08:00
Deploy docs for version 8.2.10
This commit is contained in:
parent
b5be21b142
commit
93a5f9e7ec
@ -16,7 +16,7 @@ The displayed release version is kept fresh by two independent mechanisms:
|
|||||||
|
|
||||||
1. **Build-time substitution.** The `Deploy GitHub Pages` workflow
|
1. **Build-time substitution.** The `Deploy GitHub Pages` workflow
|
||||||
(`.github/workflows/pages.yml`) replaces every occurrence of the literal
|
(`.github/workflows/pages.yml`) replaces every occurrence of the literal
|
||||||
`8.2.9` in `index.html` with the latest GitHub release tag before
|
`8.2.10` in `index.html` with the latest GitHub release tag before
|
||||||
publishing. The workflow runs on every push to `main` that touches
|
publishing. The workflow runs on every push to `main` that touches
|
||||||
`docs/**`, on every published release, and can be dispatched manually.
|
`docs/**`, on every published release, and can be dispatched manually.
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ---------- Live version refresh from GitHub Releases ----------
|
// ---------- Live version refresh from GitHub Releases ----------
|
||||||
// The build-time workflow substitutes 8.2.9 in the HTML; this
|
// The build-time workflow substitutes 8.2.10 in the HTML; this
|
||||||
// additionally refreshes the displayed version in the browser so the
|
// additionally refreshes the displayed version in the browser so the
|
||||||
// site always reflects the very latest release without redeploying.
|
// site always reflects the very latest release without redeploying.
|
||||||
const versionNodes = document.querySelectorAll("[data-version]");
|
const versionNodes = document.querySelectorAll("[data-version]");
|
||||||
|
|||||||
12
index.html
12
index.html
@ -61,12 +61,12 @@
|
|||||||
<a class="btn primary" href="#quickstart">Get started</a>
|
<a class="btn primary" href="#quickstart">Get started</a>
|
||||||
<a class="btn" href="https://github.com/fastfloat/fast_float">View on GitHub</a>
|
<a class="btn" href="https://github.com/fastfloat/fast_float">View on GitHub</a>
|
||||||
<a class="btn ghost" href="https://github.com/fastfloat/fast_float/releases/latest" id="download-latest">
|
<a class="btn ghost" href="https://github.com/fastfloat/fast_float/releases/latest" id="download-latest">
|
||||||
Download <code class="version-tag" data-version>v8.2.9</code>
|
Download <code class="version-tag" data-version>v8.2.10</code>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="hero-meta">
|
<div class="hero-meta">
|
||||||
<span class="badge" id="release-badge">
|
<span class="badge" id="release-badge">
|
||||||
<span class="dot"></span> Latest release: <code data-version>v8.2.9</code>
|
<span class="dot"></span> Latest release: <code data-version>v8.2.10</code>
|
||||||
</span>
|
</span>
|
||||||
<a class="meta-link" href="https://github.com/fastfloat/fast_float/blob/main/LICENSE-APACHE">Apache 2.0</a>
|
<a class="meta-link" href="https://github.com/fastfloat/fast_float/blob/main/LICENSE-APACHE">Apache 2.0</a>
|
||||||
<a class="meta-link" href="https://github.com/fastfloat/fast_float/blob/main/LICENSE-MIT">MIT</a>
|
<a class="meta-link" href="https://github.com/fastfloat/fast_float/blob/main/LICENSE-MIT">MIT</a>
|
||||||
@ -221,7 +221,7 @@ constexpr double pi = parse("3.1415"); // computed at compile time</code></pre>
|
|||||||
<pre data-lang="cmake"><code>FetchContent_Declare(
|
<pre data-lang="cmake"><code>FetchContent_Declare(
|
||||||
fast_float
|
fast_float
|
||||||
GIT_REPOSITORY https://github.com/fastfloat/fast_float.git
|
GIT_REPOSITORY https://github.com/fastfloat/fast_float.git
|
||||||
GIT_TAG tags/<span data-version>v8.2.9</span>
|
GIT_TAG tags/<span data-version>v8.2.10</span>
|
||||||
GIT_SHALLOW TRUE)
|
GIT_SHALLOW TRUE)
|
||||||
FetchContent_MakeAvailable(fast_float)
|
FetchContent_MakeAvailable(fast_float)
|
||||||
target_link_libraries(myprogram PUBLIC fast_float)</code></pre>
|
target_link_libraries(myprogram PUBLIC fast_float)</code></pre>
|
||||||
@ -232,13 +232,13 @@ target_link_libraries(myprogram PUBLIC fast_float)</code></pre>
|
|||||||
<pre data-lang="cmake"><code>CPMAddPackage(
|
<pre data-lang="cmake"><code>CPMAddPackage(
|
||||||
NAME fast_float
|
NAME fast_float
|
||||||
GITHUB_REPOSITORY "fastfloat/fast_float"
|
GITHUB_REPOSITORY "fastfloat/fast_float"
|
||||||
GIT_TAG <span data-version>v8.2.9</span>)</code></pre>
|
GIT_TAG <span data-version>v8.2.10</span>)</code></pre>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="card">
|
<article class="card">
|
||||||
<h3>Single header</h3>
|
<h3>Single header</h3>
|
||||||
<p>Download a pre-amalgamated header — no build system required.</p>
|
<p>Download a pre-amalgamated header — no build system required.</p>
|
||||||
<pre data-lang="bash"><code>curl -LO https://github.com/fastfloat/fast_float/releases/download/<span data-version>v8.2.9</span>/fast_float.h</code></pre>
|
<pre data-lang="bash"><code>curl -LO https://github.com/fastfloat/fast_float/releases/download/<span data-version>v8.2.10</span>/fast_float.h</code></pre>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article class="card">
|
<article class="card">
|
||||||
@ -327,7 +327,7 @@ target_link_libraries(myprogram PUBLIC fast_float)</code></pre>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container subfoot">
|
<div class="container subfoot">
|
||||||
<span>Current release <code data-version>v8.2.9</code></span>
|
<span>Current release <code data-version>v8.2.10</code></span>
|
||||||
<span>Maintained by the <a href="https://github.com/fastfloat">fast_float</a> contributors.</span>
|
<span>Maintained by the <a href="https://github.com/fastfloat">fast_float</a> contributors.</span>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user