patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob da5fa8c168e7de9d51122fd0010f6ca94cfe9417 1394 bytes (raw)
name: Documentation/development/building-documentation.adoc 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
= Building Documentation
:page-parent: Development

// SPDX-FileCopyrightText: 2022 Unikie
// SPDX-License-Identifier: GFDL-1.3-no-invariants-or-later OR CC-BY-SA-4.0

This tutorial assumes that you have https://nixos.org/[Nix] installed.
You may also want to xref:binary-cache.adoc[configure the Spectrum
binary cache], to avoid having to wait for dependencies to compile on
your local system.

1. Get a copy of the Spectrum source code:
+
[source,shell]
----
git clone https://spectrum-os.org/git/spectrum
----
2. Enter the documentation directory:
+
[source,shell]
----
cd spectrum/Documentation
----
3. Enter the development environment:
+
[source,shell]
----
nix-shell -I nixpkgs=https://spectrum-os.org/git/nixpkgs/snapshot/nixpkgs-rootfs.tar.gz
----
4. In the development shell, do an initial build of the documentation
site:
+
[source,shell]
----
scripts/build.sh
----
5. 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 doesn't handle rendering of the draw.io diagrams, so
if you modify any of those, or add new ones, you'll have to run
`scripts/build.sh` again to do a full rebuild of the site.

Once you made your changes to the documentation, see
xref:first-patch.adoc[Patching] for information
on how to submit your patch for review.

debug log:

solving da5fa8c ...
found da5fa8c in https://inbox.spectrum-os.org/spectrum-devel/20220906135533.576642-1-evgeniia.nikolaenko@unikie.com/
found b491105 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100644 b491105099ae863bf01c89c9c8b4cd1bee5f1786	Documentation/building-documentation.adoc

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20220906135533.576642-1-evgeniia.nikolaenko@unikie.com/
diff --git a/Documentation/building-documentation.adoc b/Documentation/development/building-documentation.adoc
similarity index 85%
rename from Documentation/building-documentation.adoc
rename to Documentation/development/building-documentation.adoc
index b491105..da5fa8c 100644

Checking patch Documentation/building-documentation.adoc => Documentation/development/building-documentation.adoc...
Applied patch Documentation/building-documentation.adoc => Documentation/development/building-documentation.adoc cleanly.

index at:
100644 da5fa8c168e7de9d51122fd0010f6ca94cfe9417	Documentation/development/building-documentation.adoc

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).