diff options
author | thingsym <thingsym@gmail.com> | 2020-03-19 13:24:51 +0300 |
---|---|---|
committer | thingsym <thingsym@gmail.com> | 2020-03-19 13:24:51 +0300 |
commit | cd51ec25cda56fbba696f5b6a3b7378d9d8ce6cf (patch) | |
tree | ce2a093e76695e2b9d19054dbe90d08786dc54ef | |
parent | b7afd194ba96f00268bf3b8aecd17aded985c4c7 (diff) | |
parent | ac816f3831dd5216062933b421830e1c5cdf28a7 (diff) |
Merge branch 'release-0.8.3'v0.8.3
-rw-r--r-- | README.md | 39 | ||||
-rwxr-xr-x | exampleSite/config.toml | 2 | ||||
-rw-r--r-- | exampleSite/content/getting-started/configuration.md | 4 | ||||
-rw-r--r-- | layouts/partials/edit-page.html | 2 | ||||
-rw-r--r-- | package-lock.json | 2 | ||||
-rw-r--r-- | package.json | 2 |
6 files changed, 45 insertions, 6 deletions
@@ -53,6 +53,13 @@ cd themes git clone https://github.com/thingsym/hugo-theme-techdoc.git ``` +作業環境が git 管理下にある場合は submodule として導入 + +git submodule add git submodule add https://github.com/spiegel-im-spiegel/hugo-theme-text.git themes/hugo-theme-text + + +or (zip arcive) + For more information read [the Hugo documentation](https://gohugo.io/themes/installing-and-using-themes/). ### Configure @@ -198,6 +205,36 @@ hugo server --themesDir ../.. Browse site on http://localhost:1313 +---- + +## Hugo install + +``` +curl -O https://github.com/gohugoio/hugo/releases/download/v0.30/hugo_0.30_Linux-64bit.tar.gz +tar -zxvf hugo_0.30_Linux-64bit.tar.gz +mv hugo /usr/local/bin +rm LICENSE.md README.md +hugo help +``` + +## Hugo server (port: 3000) + +``` +cd /path/to/dir + +hugo server --port 3000 --bind 0.0.0.0 -wD --ignoreCache --baseURL http://example.com/ -t hugo-theme-techdoc +``` + +## Preview exampleSite (port: 3000) + +``` +cd /path/to/dir/themes/hugo-theme-techdoc/exampleSite + +hugo server --port 3000 --bind 0.0.0.0 -wD --ignoreCache --baseURL http://example.com/ --themesDir ../.. +``` + +---- + ## Contribution ### Patches and Bug Fixes @@ -212,6 +249,8 @@ Small patches and bug reports can be submitted a issue tracker in Github. Forkin ## Changelog +* Version 0.8.3 - 2020.03.19 + * fix edit page link * Version 0.8.2 - 2020.03.07 * fix open graph image path * Version 0.8.1 - 2020.03.07 diff --git a/exampleSite/config.toml b/exampleSite/config.toml index f6d402c..044d7c4 100755 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -20,7 +20,7 @@ enableMissingTranslationPlaceholders = false # Source Code repository section description = "put your description" github_repository = "https://github.com/thingsym/hugo-theme-techdoc" - version = "0.8.2" + version = "0.8.3" # Documentation repository section # documentation repository (set edit link to documentation repository) diff --git a/exampleSite/content/getting-started/configuration.md b/exampleSite/content/getting-started/configuration.md index 614cd29..9eb6679 100644 --- a/exampleSite/content/getting-started/configuration.md +++ b/exampleSite/content/getting-started/configuration.md @@ -15,7 +15,7 @@ For an example of `config.toml`, see [config.toml](https://github.com/thingsym/h # Souce Code repository section description = "put your description" github_repository = "https://github.com/thingsym/hugo-theme-techdoc" - version = "0.8.2" + version = "0.8.3" # Documentation repository section # documentation repository (set edit link to documentation repository) @@ -72,7 +72,7 @@ default: `https://github.com/thingsym/hugo-theme-techdoc` The version of souce code -default: `0.8.2` +default: `0.8.3` #### `github_doc_repository` diff --git a/layouts/partials/edit-page.html b/layouts/partials/edit-page.html index f5dcaa9..d853bf8 100644 --- a/layouts/partials/edit-page.html +++ b/layouts/partials/edit-page.html @@ -1,3 +1,3 @@ {{- with .Site.Params.github_doc_repository -}} -{{- with $.File -}}<a href="{{ . }}/edit/master/content/{{ .Path }}" class="edit-page"><i class="fas fa-pen-square"></i> Edit on GitHub</a>{{- end -}} +<a href="{{ . }}/edit/master/content/{{ $.File.Path }}" class="edit-page"><i class="fas fa-pen-square"></i> Edit on GitHub</a> {{- end -}} diff --git a/package-lock.json b/package-lock.json index 7e15664..105cd58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-techdoc", - "version": "0.8.2", + "version": "0.8.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3acee4d..3e3e1bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-theme-techdoc", - "version": "0.8.2", + "version": "0.8.3", "description": "The Techdoc is a Hugo Theme for technical documentation.", "main": "gulpfile.js", "author": "Thingsym", |