Skip to content

Commit

Permalink
Fix package version format in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chances committed Jul 2, 2024
1 parent 8980259 commit d3d60ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/docs.d
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ void main() {
import std.string : endsWith, replace, strip;

auto gitRevCmd = execute(["git", "describe", "--tags", "--abbrev=0"]);
const DUB_VERSION = gitRevCmd.status != 0 ? "0.1.0" : gitRevCmd.output.strip;
const DUB_VERSION = gitRevCmd.status != 0 ? "v0.1.0" : gitRevCmd.output.strip;

auto index = readText("views/index.hbs");
write("docs/index.html", index.replace("{{ DUB_VERSION }}", DUB_VERSION));
Expand Down
2 changes: 1 addition & 1 deletion views/docs.ddoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ DDOC=<!DOCTYPE html>
<main>
<a id="downloadButton" href="https://code.dlang.org/packages/dbpf">
<div class="bs-hbtn right black">
<div class="content">get <strong>dbpf</strong><br><large>v{{ DUB_VERSION }}</large></div>
<div class="content">get <strong>dbpf</strong><br><large>{{ DUB_VERSION }}</large></div>
</div><div class="bs-hbtn left red">
<div class="dub-logo"></div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<main>
<a id="downloadButton" href="https://code.dlang.org/packages/dbpf">
<div class="bs-hbtn right black">
<div class="content">get <strong>dbpf</strong><br><large>v{{ DUB_VERSION }}</large></div>
<div class="content">get <strong>dbpf</strong><br><large>{{ DUB_VERSION }}</large></div>
</div><div class="bs-hbtn left red">
<div class="dub-logo"></div>
</div>
Expand Down

0 comments on commit d3d60ae

Please sign in to comment.