-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set docsy version in config as
version
- Loading branch information
Showing
4 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ Run the following from the command line: | |
{{< tab header="Unix shell" lang="Bash" >}} | ||
cd /path/to/my-existing-site | ||
hugo mod init github.com/me-at-github/my-existing-site | ||
hugo mod get github.com/google/docsy@v0.4.0 | ||
hugo mod get github.com/google/docsy@v{{% param "version" %}} | ||
sed -i '/theme = \["docsy"\]/d' config.toml | ||
cat >> config.toml <<EOL | ||
[module] | ||
|
@@ -30,7 +30,7 @@ hugo server | |
{{< tab header="Windows command line" lang="Batchfile" >}} | ||
cd my-existing-site | ||
hugo mod init github.com/me-at-github/my-existing-site | ||
hugo mod get github.com/google/docsy@v0.4.0 | ||
hugo mod get github.com/google/docsy@v{{% param "version" %}} | ||
findstr /v /c:"theme = [\"docsy\"]" config.toml > config.toml.temp | ||
move /Y config.toml.temp config.toml | ||
(echo [module]^ | ||
|
@@ -70,7 +70,7 @@ This creates two new files, `go.mod` for the module definitions and `go.sum` whi | |
Next declare the Docsy theme module as a dependency for your site. | ||
|
||
```bash | ||
hugo mod get github.com/google/docsy@v0.4.0 | ||
hugo mod get github.com/google/docsy@v{{% param "version" %}} | ||
``` | ||
|
||
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 | |
```bash | ||
hugo mod graph | ||
hugo: collected modules in 1092 ms | ||
github.com/me/my-existing-site github.com/google/docsy@v0.4.0 | ||
github.com/me/my-existing-site github.com/google/docsy/dependencies@v0.4.0 | ||
github.com/google/docsy/dependencies@v0.4.0 github.com/twbs/[email protected]+incompatible | ||
github.com/google/docsy/dependencies@v0.4.0 github.com/FortAwesome/[email protected] | ||
github.com/me/my-existing-site github.com/google/docsy@v{{% param "version" %}} | ||
github.com/me/my-existing-site github.com/google/docsy/dependencies@v{{% param "version" %}} | ||
github.com/google/docsy/dependencies@v{{% param "version" %}} github.com/twbs/[email protected]+incompatible | ||
github.com/google/docsy/dependencies@v{{% param "version" %}} github.com/FortAwesome/[email protected] | ||
``` | ||
|
||
Make sure that three lines with dependencies `docsy`, `bootstrap` and `Font-Awesome` are listed. If not, please double check your config settings. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters