diff options
author | Julien Dessaux | 2020-11-29 15:01:07 +0100 |
---|---|---|
committer | Julien Dessaux | 2020-11-29 15:01:07 +0100 |
commit | 08d9166bfcb77d380b5c09b127a70844ae65edcc (patch) | |
tree | 89c645471826d19c3c7d7ada3e159b732fd7bb6f /content/en/docs | |
parent | Added some precisions to an old article (diff) | |
download | www-08d9166bfcb77d380b5c09b127a70844ae65edcc.tar.gz www-08d9166bfcb77d380b5c09b127a70844ae65edcc.tar.bz2 www-08d9166bfcb77d380b5c09b127a70844ae65edcc.zip |
Updated www.adyxax.org articles
Diffstat (limited to 'content/en/docs')
-rw-r--r-- | content/en/docs/adyxax.org/services/www.md | 37 |
1 files changed, 12 insertions, 25 deletions
diff --git a/content/en/docs/adyxax.org/services/www.md b/content/en/docs/adyxax.org/services/www.md index c50ffa6..852cfcc 100644 --- a/content/en/docs/adyxax.org/services/www.md +++ b/content/en/docs/adyxax.org/services/www.md @@ -10,35 +10,22 @@ This is the website you are currently reading. It is a static website built usin installed hugo, how I initialised this website and how I manage it. I often refer to it as wiki.adyxax.org because I hosted a unique dokuwiki for a long time as my main website (and a pmwiki before that), but with hugo it has become more than that. It is now a mix of wiki, blog and showcase of my work and interests. -## Installing hugo - -{{< highlight sh >}} -go get github.com/gohugoio/hugo -{{< / highlight >}} +For a log of how I made the initial setup, see [this blog article.]({{< relref "/blog/miscellaneous/switching-to-hugo.md" >}}) -You probably won't encounter this issue but this command failed at the time I installed hugo because the master branch in one of the dependencies was -tainted. I fixed it with by using a stable tag for this project and continue installing hugo from there: -{{< highlight sh >}} -cd go/src/github.com/tdewolff/minify/ -tig --all -git checkout v2.6.1 -go get github.com/gohugoio/hugo -{{< / highlight >}} +## Installing hugo -This did not build me the extended version of hugo that I need for the [docsy](https://github.com/google/docsy) theme I chose, so I had to get it by doing : +I am currently hosting this website on an OpenBSD server. Hugo is packaged on this system so the installation is as simple as : {{< highlight sh >}} -cd ~/go/src/github.com/gohugoio/hugo/ -go get --tags extended -go install --tags extended +pkg_add hugo--extended {{< / highlight >}} ## Bootstraping this site +The website is on my gitea : {{< highlight sh >}} -hugo new site www +cd /var/www/htdocs +git clone --recurse-submodules _gitea@git.adyxax.org:adyxax/www.git cd www -git init -git submodule add https://github.com/google/docsy themes/docsy {{< / highlight >}} The docsy theme requires two nodejs programs to run : @@ -49,12 +36,12 @@ npm install -D --save postcss-cli ## hugo commands -To spin up the live server for automatic rebuilding the website when writing articles : -{{< highlight sh >}} -hugo server --bind 0.0.0.0 --minify --disableFastRender -{{< / highlight >}} - To publish the website in the `public` folder : {{< highlight sh >}} hugo --minify {{< / highlight >}} + +## TODO + +TODO deploy on push to git.adyxax.org +TODO web server config |