diff --git a/config.toml b/config.toml index a23efb8..420e75f 100644 --- a/config.toml +++ b/config.toml @@ -18,6 +18,9 @@ weight = 2 [markup] +[markup.asciidocExt] +workingFolderCurrent = true + [markup.asciidocExt.attributes] source-highlighter = "rouge" diff --git a/content/korhonen_aur/code_blocks/check_processor.sh b/content/korhonen_aur/code_blocks/check_processor.sh new file mode 100644 index 0000000..5c6031f --- /dev/null +++ b/content/korhonen_aur/code_blocks/check_processor.sh @@ -0,0 +1 @@ +/lib/ld-linux-x86-64.so.2 --help | grep "x86-64-v3 (supported, searched)" diff --git a/content/korhonen_aur/pacman.conf b/content/korhonen_aur/code_blocks/pacman.conf similarity index 100% rename from content/korhonen_aur/pacman.conf rename to content/korhonen_aur/code_blocks/pacman.conf diff --git a/content/korhonen_aur/pacman-commands.sh b/content/korhonen_aur/code_blocks/pacman_commands.sh similarity index 100% rename from content/korhonen_aur/pacman-commands.sh rename to content/korhonen_aur/code_blocks/pacman_commands.sh diff --git a/content/korhonen_aur/index.adoc b/content/korhonen_aur/index.adoc index 393c622..1db3cf5 100644 --- a/content/korhonen_aur/index.adoc +++ b/content/korhonen_aur/index.adoc @@ -15,7 +15,7 @@ check if you CPU is supported, run the following command [source,shell] ---- -/lib/ld-linux-x86-64.so.2 --help | grep "x86-64-v3 (supported, searched)" +include::code_blocks/check_processor.sh[] ---- If the command outputs nothing, your CPU is not supported. Otherwise, @@ -39,12 +39,12 @@ First, add link:/pgp[my PGP key] to your pacman keyring and trust it [source,shell] ---- -include::content/korhonen_aur/pacman-commands.sh[] +include::code_blocks/pacman_commands.sh[] ---- Then add the following to your `/etc/pacman.conf` -[source,shell] +[source,conf] ---- -include::content/korhonen_aur/pacman.conf[] +include::code_blocks/pacman.conf[] ---- diff --git a/content/korhonen_aur/index.fi.adoc b/content/korhonen_aur/index.fi.adoc index bde4c34..4d10efe 100644 --- a/content/korhonen_aur/index.fi.adoc +++ b/content/korhonen_aur/index.fi.adoc @@ -15,7 +15,7 @@ Tarkastaaksesi oman prosessorisi yhteensopivuuden, aja seuraava komento. [source,shell] ---- -/lib/ld-linux-x86-64.so.2 --help | grep "x86-64-v3 (supported, searched)" +include::code_blocks/check_processor.sh[] ---- Jos edeltävä komento ei tulosta mitään, prosessorisi ei valitettavasti @@ -37,7 +37,7 @@ avainnippuusi ja luota siihen [source,shell] ---- -include::content/korhonen_aur/pacman-commands.sh[] +include::code_blocks/pacman_commands.sh[] ---- Sitten lisää seuraava sisältö pacman konfiguraatioosi @@ -45,5 +45,5 @@ Sitten lisää seuraava sisältö pacman konfiguraatioosi [source,shell] ---- -include::content/korhonen_aur/pacman.conf[] +include::code_blocks/pacman.conf[] ----