aboutsummaryrefslogtreecommitdiff
path: root/documentation/content/en/books/handbook/disks
diff options
context:
space:
mode:
authorSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2021-11-03 16:39:08 +0000
committerSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2021-11-03 16:44:52 +0000
commit64acd169b82416fe39ad8c4b1be106680d4a3eb3 (patch)
tree05b8bc3182dc4cfcf0a8a0964b4303903a4abf56 /documentation/content/en/books/handbook/disks
parent0636d709faeb6b7d1a44882ae33a02015d32774b (diff)
downloaddoc-64acd169b82416fe39ad8c4b1be106680d4a3eb3.tar.gz
doc-64acd169b82416fe39ad8c4b1be106680d4a3eb3.zip
Build offline documentation using Hugo and other improvements
* Allow to build the documentation offline using Hugo * Fix link problems * Remove SVN entities * Fix lang problems to help weblate * Move all the AsciiDoctor translations to the shared folder to help weblate * Allow the possibility to build each document. For example each document can be edited in and watched the result in real time in VS Code or Vim/NeoVim. Breaking changes: Eliminate the possibility of building books or articles. They must be builded at the same time. This functionality will be restored when version 0.89.0 is in the repositories in a couple of weeks. Reviewed by: dbaio@ Differential Revision: https://reviews.freebsd.org/D31926
Diffstat (limited to 'documentation/content/en/books/handbook/disks')
-rw-r--r--documentation/content/en/books/handbook/disks/_index.adoc40
1 files changed, 21 insertions, 19 deletions
diff --git a/documentation/content/en/books/handbook/disks/_index.adoc b/documentation/content/en/books/handbook/disks/_index.adoc
index 5390274807..1665227d0a 100644
--- a/documentation/content/en/books/handbook/disks/_index.adoc
+++ b/documentation/content/en/books/handbook/disks/_index.adoc
@@ -15,33 +15,35 @@ tags: ["storage", "disks", "gpart", "mount", "quotas", "encrypt", "GPT", "cdreco
:icons: font
:sectnums:
:sectnumlevels: 6
+:sectnumoffset: 18
+:partnums:
:source-highlighter: rouge
:experimental:
-:skip-front-matter:
-:xrefstyle: basic
-:relfileprefix: ../
-:outfilesuffix:
-:sectnumoffset: 18
-
-ifeval::["{backend}" == "html5"]
-:imagesdir: ../../../../images/books/handbook/disks/
-endif::[]
-
-ifeval::["{backend}" == "pdf"]
-:imagesdir: ../../../../static/images/books/handbook/disks/
-endif::[]
+:images-path: books/handbook/disks/
-ifeval::["{backend}" == "epub3"]
-:imagesdir: ../../../../static/images/books/handbook/disks/
+ifdef::env-beastie[]
+ifdef::backend-html5[]
+:imagesdir: ../../../../images/{images-path}
endif::[]
-
+ifndef::book[]
include::shared/authors.adoc[]
+include::shared/mirrors.adoc[]
include::shared/releases.adoc[]
-include::shared/en/mailing-lists.adoc[]
-include::shared/en/teams.adoc[]
-include::shared/en/urls.adoc[]
+include::shared/attributes/attributes-{{% lang %}}.adoc[]
+include::shared/{{% lang %}}/teams.adoc[]
+include::shared/{{% lang %}}/mailing-lists.adoc[]
+include::shared/{{% lang %}}/urls.adoc[]
+toc::[]
+endif::[]
+ifdef::backend-pdf,backend-epub3[]
+include::../../../../../shared/asciidoctor.adoc[]
+endif::[]
+endif::[]
+ifndef::env-beastie[]
toc::[]
+include::../../../../../shared/asciidoctor.adoc[]
+endif::[]
[[disks-synopsis]]
== Synopsis