= Building Documentation
:page-parent: Contributing
:page-nav_order: 4

// 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
----
. Run a server for previewing changes locally:
+
[source,shell]
----
nix-shell --run 'jekyll serve'
----
+
This will serve a local copy of the documentation at http://localhost:4000/.

After making changes to the documentation, see how to
xref:first-patch.adoc[send your patch] and submit the changes for review.
