Skip to content

Commit a512852

Browse files
chalinfekete-robert
authored andcommitted
Set docsy version in config as version
1 parent 0a07659 commit a512852

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

userguide/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ archived_version = false
8585
# The version number for the version of the docs represented in this doc set.
8686
# Used in the "version-banner" partial to display a version number for the
8787
# current doc set.
88-
version = "0.0"
88+
version = "0.4.0"
8989

9090
# A link to latest version of the docs. Used in the "version-banner" partial to
9191
# point people to the main doc site.

userguide/content/en/docs/Updating/Convert-site-to-module.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Run the following from the command line:
1515
{{< tab header="Unix shell" lang="Bash" >}}
1616
cd /path/to/my-existing-site
1717
hugo mod init github.com/me-at-github/my-existing-site
18-
hugo mod get github.com/google/docsy@v0.4.0
18+
hugo mod get github.com/google/docsy@v{{% param "version" %}}
1919
sed -i '/theme = \["docsy"\]/d' config.toml
2020
cat >> config.toml <<EOL
2121
[module]
@@ -30,7 +30,7 @@ hugo server
3030
{{< tab header="Windows command line" lang="Batchfile" >}}
3131
cd my-existing-site
3232
hugo mod init github.com/me-at-github/my-existing-site
33-
hugo mod get github.com/google/docsy@v0.4.0
33+
hugo mod get github.com/google/docsy@v{{% param "version" %}}
3434
findstr /v /c:"theme = [\"docsy\"]" config.toml > config.toml.temp
3535
move /Y config.toml.temp config.toml
3636
(echo [module]^
@@ -70,7 +70,7 @@ This creates two new files, `go.mod` for the module definitions and `go.sum` whi
7070
Next declare the Docsy theme module as a dependency for your site.
7171

7272
```bash
73-
hugo mod get github.com/google/docsy@v0.4.0
73+
hugo mod get github.com/google/docsy@v{{% param "version" %}}
7474
```
7575

7676
This command adds the `docsy` theme module to your definition file `go.mod`.
@@ -181,10 +181,10 @@ To make sure that your configuration settings are correct, run the command `hugo
181181
```bash
182182
hugo mod graph
183183
hugo: collected modules in 1092 ms
184-
github.com/me/my-existing-site github.com/google/docsy@v0.4.0
185-
github.com/me/my-existing-site github.com/google/docsy/dependencies@v0.4.0
186-
github.com/google/docsy/dependencies@v0.4.0 github.com/twbs/[email protected]+incompatible
187-
github.com/google/docsy/dependencies@v0.4.0 github.com/FortAwesome/[email protected]
184+
github.com/me/my-existing-site github.com/google/docsy@v{{% param "version" %}}
185+
github.com/me/my-existing-site github.com/google/docsy/dependencies@v{{% param "version" %}}
186+
github.com/google/docsy/dependencies@v{{% param "version" %}} github.com/twbs/[email protected]+incompatible
187+
github.com/google/docsy/dependencies@v{{% param "version" %}} github.com/FortAwesome/[email protected]
188188
```
189189

190190
Make sure that three lines with dependencies `docsy`, `bootstrap` and `Font-Awesome` are listed. If not, please double check your config settings.

userguide/content/en/docs/Updating/Updating-hugo-module.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Hugo automatically pulls in the latest theme version. That's it, your update is
2424

2525

2626
{{% alert title="Tip" %}}
27-
If you want to set your module to a certain version inside the docsy theme repo, simply specific the name of the tag representing this version (here: _v0.4.0_) when updating your theme:
27+
If you want to set your module to a certain version inside the docsy theme repo, simply specific the name of the tag representing this version (here: _v{{% param "version" %}}_) when updating your theme:
2828

2929
```bash
30-
hugo mod get -u github.com/google/docsy@v0.4.0
30+
hugo mod get -u github.com/google/docsy@v{{% param "version" %}}
3131
```
3232

3333
Instead of a version tag, you can also specify a commit hash inside the repo (here: _6c8a3afe_) when updating your theme:

userguide/content/en/docs/get-started/docsy-as-module/start-from-scratch.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ At your command prompt, run the following:
2121
hugo new site my-new-site
2222
cd my-new-site
2323
hugo mod init github.com/me/my-new-site
24-
hugo mod get github.com/google/docsy@v0.4.0
24+
hugo mod get github.com/google/docsy@v{{% param "version" %}}
2525
cat >> config.toml <<EOL
2626
[module]
2727
proxy = "direct"
@@ -36,7 +36,7 @@ hugo server
3636
hugo new site my-new-site
3737
cd my-new-site
3838
hugo mod init github.com/me/my-new-site
39-
hugo mod get github.com/google/docsy@v0.4.0
39+
hugo mod get github.com/google/docsy@v{{% param "version" %}}
4040
(echo [module]^
4141

4242
proxy = "direct"^
@@ -83,7 +83,7 @@ This creates two new files, `go.mod` for the module definitions and `go.sum` whi
8383
Next declare the Docsy theme module as a dependency for your site.
8484

8585
```bash
86-
hugo mod get github.com/google/docsy@v0.4.0
86+
hugo mod get github.com/google/docsy@v{{% param "version" %}}
8787
```
8888

8989
This command adds the `docsy` theme module to your definition file `go.mod`.

0 commit comments

Comments
 (0)