Skip to content

Commit 175db7f

Browse files
authored
Merge pull request #14 from dlang/fix-402
Link to SDL doc page from JSON doc page broken
2 parents a2e840c + e3bca5b commit 175db7f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

netlify.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ mv "127.0.0.1:8005" ${BUILD_DIR}
3434
find out -name "logo" | xargs -I {} mv {} {}.svg
3535
sed 's/src="\([^"]*\)\/logo"/src="\1\/logo.svg"/' -i $(find out -name "*.html")
3636

37+
# Replace all local links with dub.pm
38+
sed 's/http:\/\/127.0.0.1:8005/https:\/\/dub.pm/' -i $(find out -name "*.html")
39+
3740
kill -9 $PID_DOCS || true
3841

3942
# Final cleanup (in case something was missed)

views/package_format_json.dt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ block body
99
h2 Introduction
1010

1111
p
12-
strong NOTE: this describes the JSON version of the package file format. See also the <a href="package-format?lang=sdl">specification based on SDLang</a>.
12+
strong NOTE: this describes the JSON version of the package file format. See also the <a href="package-format-sdl">specification based on SDLang</a>.
1313

1414
p Every DUB package <em>should</em> contain a <code>dub.json</code> (or <code>dub.sdl</code>, formerly also <code>package.json</code>) file in its root folder. This file contains meta-information about the project and its dependencies. This information is used for building the project and for deploying it using the registry. The following sections give an overview of the recognized settings and their meaning. Note that any unknown settings are ignored for backwards compatibility reasons.
1515

@@ -398,7 +398,7 @@ block body
398398
li Require a version range: <code>"&gt;=1.3.0 &lt;=1.3.4"</code>
399399
li Match any released version (equivalent to <code>"&gt;=0.0.0"</code>): <code>"*"</code>
400400
li Use a GIT branch (deprecated): <code>"~master"</code>
401-
401+
402402
p Numbered versions are formatted and compared according to the <a href="http://semver.org/">SemVer specification</a>. The recommended way to specify versions is using the <code>~&gt;</code> operator as a way to balance between flexible upgrades and reducing the risk of code breakage.
403403

404404
p Whenever you refer to (sub) packages within the same repository, use the "any version" version specifier: <code>"*"</code>

views/package_format_sdl.dt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ block body
99
h2 Introduction
1010

1111
p
12-
strong NOTE: this describes the SDLang version of the package file format. See also the <a href="package-format?lang=json">specification based on JSON</a>.
12+
strong NOTE: this describes the SDLang version of the package file format. See also the <a href="package-format-json">specification based on JSON</a>.
1313

1414
p Every DUB package <em>should</em> contain a <code>dub.sdl</code> (or <code>dub.json</code>) file in its root folder. This file contains meta-information about the project and its dependencies. This information is used for building the project and for deploying it using the registry. The following sections give an overview of the recognized settings and their meaning. Note that any unknown settings are ignored for backwards compatibility reasons.
1515

@@ -382,7 +382,7 @@ block body
382382
li Require a version range: <code>"&gt;=1.3.0 &lt;=1.3.4"</code>
383383
li Match any released version (equivalent to <code>"&gt;=0.0.0"</code>): <code>"*"</code>
384384
li Use a GIT branch (deprecated): <code>"~master"</code>
385-
385+
386386
p Numbered versions are formatted and compared according to the <a href="http://semver.org/">SemVer specification</a>. The recommended way to specify versions is using the <code>~&gt;</code> operator as a way to balance between flexible upgrades and reducing the risk of code breakage.
387387

388388
p Whenever you refer to (sub) packages within the same repository, use the "any version" version specifier: <code>"*"</code>

0 commit comments

Comments
 (0)