summary refs log tree commit diff
path: root/Documentation/development/building-documentation.adoc
diff options
context:
space:
mode:
authorJenni Nikolaenko <evgeniia.nikolaenko@unikie.com>2022-11-08 16:52:28 +0200
committerAlyssa Ross <alyssa.ross@unikie.com>2022-11-08 17:56:20 +0000
commit0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715 (patch)
tree91198c396b0646e5ec15bcb8acda85ae3705290e /Documentation/development/building-documentation.adoc
parentf3247c14cb525991e701fb3f87ac5d5ab0587690 (diff)
downloadspectrum-0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715.tar
spectrum-0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715.tar.gz
spectrum-0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715.tar.bz2
spectrum-0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715.tar.lz
spectrum-0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715.tar.xz
spectrum-0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715.tar.zst
spectrum-0a2a5c6d34eb94d18f9cc6a5076ed5d97f7e0715.zip
Docs: new structure
Create separate folders for new parent pages, update Introduction page,
remove a and the articles from titles, quick check text for simple english

Signed-off-by: Jenni Nikolaenko <evgeniia.nikolaenko@unikie.com>
Message-Id: <20221108145228.21188-1-evgeniia.nikolaenko@unikie.com>
Diffstat (limited to 'Documentation/development/building-documentation.adoc')
-rw-r--r--Documentation/development/building-documentation.adoc52
1 files changed, 52 insertions, 0 deletions
diff --git a/Documentation/development/building-documentation.adoc b/Documentation/development/building-documentation.adoc
new file mode 100644
index 0000000..4f464f5
--- /dev/null
+++ b/Documentation/development/building-documentation.adoc
@@ -0,0 +1,52 @@
+= Building Documentation
+:page-parent: Development
+:page-nav_order: 5
+
+// SPDX-FileCopyrightText: 2022 Unikie
+// SPDX-License-Identifier: GFDL-1.3-no-invariants-or-later OR CC-BY-SA-4.0
+
+Make sure you have https://nixos.org/download.html[Nix] installed.
+You may also want to xref:../installation/binary-cache.adoc[configure the Spectrum
+binary cache], to avoid having to wait for dependencies to compile on
+your local system.
+
+. Get a copy of the Spectrum source code:
++
+[source,shell]
+----
+git clone https://spectrum-os.org/git/spectrum
+----
+. Enter the documentation directory:
++
+[source,shell]
+----
+cd spectrum/Documentation
+----
+. Enter the development environment:
++
+[source,shell]
+----
+nix-shell -I nixpkgs=https://spectrum-os.org/git/nixpkgs/snapshot/nixpkgs-rootfs.tar.gz
+----
+. In the development shell, do an initial build of the documentation
+site:
++
+[source,shell]
+----
+scripts/build.sh
+----
+. Run a development server for previewing changes locally:
++
+[source,shell]
+----
+jekyll serve
+----
++
+This will serve a local copy of the documentation at http://localhost:4000/.
++
+IMPORTANT: Jekyll does not handle rendering of the draw.io diagrams. If you
+modify any of those, or add new ones, run `scripts/build.sh` again to do a full
+rebuild of the site.
+
+After making changes to the documentation, see how to
+xref:first-patch.adoc[send your patch] and submit the changes for review.