Refactored syntax highlighting shortcodes into markdown

This commit is contained in:
Julien Dessaux 2023-04-23 22:33:49 +02:00
parent 9e6bb1a3e5
commit ea435049b3
Signed by: adyxax
GPG key ID: F92E51B86E07177E
71 changed files with 297 additions and 297 deletions

View file

@ -12,49 +12,49 @@ This is the website you are currently reading. It is a static website built usin
## Installing hugo
{{< highlight sh >}}
```sh
go get github.com/gohugoio/hugo
{{< / highlight >}}
```
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 >}}
```sh
cd go/src/github.com/tdewolff/minify/
tig --all
git checkout v2.6.1
go get github.com/gohugoio/hugo
{{< / highlight >}}
```
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 :
{{< highlight sh >}}
```sh
cd ~/go/src/github.com/gohugoio/hugo/
go get --tags extended
go install --tags extended
{{< / highlight >}}
```
## Bootstraping this site
{{< highlight sh >}}
```sh
hugo new site www
cd www
git init
git submodule add https://github.com/google/docsy themes/docsy
{{< / highlight >}}
```
The docsy theme requires two nodejs programs to run :
{{< highlight sh >}}
```sh
npm install -D --save autoprefixer
npm install -D --save postcss-cli
{{< / highlight >}}
```
## hugo commands
To spin up the live server for automatic rebuilding the website when writing articles :
{{< highlight sh >}}
```sh
hugo server --bind 0.0.0.0 --minify --disableFastRender
{{< / highlight >}}
```
To publish the website in the `public` folder :
{{< highlight sh >}}
```sh
hugo --minify
{{< / highlight >}}
```