diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2020-06-26 19:10:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-17 10:09:33 +0100 |
commit | 9bd69b1f1d71a9692189beeac75af9dfbad816cc (patch) | |
tree | 305347fca899074aed5610e0e82eaec180bf630c /documentation/ref-manual/ref-varlocality.rst | |
parent | c40a8d5904c29046f1cbbeb998e6cd7c24f9b206 (diff) | |
download | poky-9bd69b1f1d71a9692189beeac75af9dfbad816cc.tar.gz |
sphinx: initial sphinx support
This commit is autogenerated pandoc to generate an inital set
of reST files based on DocBook XML files.
A .rst file is generated for each .xml files in all manuals with this
command:
cd <manual>
for i in *.xml; do \
pandoc -f docbook -t rst --shift-heading-level-by=-1 \
$i -o $(basename $i .xml).rst \
done
The conversion was done with: pandoc 2.9.2.1-91 (Arch Linux).
Also created an initial top level index file for each document, and
added all 'books' to the top leve index.rst file.
The YP manuals layout is organized as:
Book
Chapter
Section
Section
Section
Sphinx uses section headers to create the document structure.
ReStructuredText defines sections headers like that:
To break longer text up into sections, you use section headers. These
are a single line of text (one or more words) with adornment: an
underline alone, or an underline and an overline together, in dashes
"-----", equals "======", tildes "~~~~~~" or any of the
non-alphanumeric characters = - ` : ' " ~ ^ _ * + # < > that you feel
comfortable with. An underline-only adornment is distinct from an
overline-and-underline adornment using the same character. The
underline/overline must be at least as long as the title text. Be
consistent, since all sections marked with the same adornment style
are deemed to be at the same level:
Let's define the following convention when converting from Docbook:
Book => overline === (Title)
Chapter => overline *** (1.)
Section => ==== (1.1)
Section => ---- (1.1.1)
Section => ~~~~ (1.1.1.1)
Section => ^^^^ (1.1.1.1.1)
During the conversion with pandoc, we used --shift-heading-level=-1 to
convert most of DocBook headings automatically. However with this
setting, the Chapter header was removed, so I added it back
manually. Without this setting all headings were off by one, which was
more difficult to manually fix.
At least with this change, we now have the same TOC with Sphinx and
DocBook.
(From yocto-docs rev: 3c73d64a476d4423ee4c6808c685fa94d88d7df8)
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual/ref-varlocality.rst')
-rw-r--r-- | documentation/ref-manual/ref-varlocality.rst | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/documentation/ref-manual/ref-varlocality.rst b/documentation/ref-manual/ref-varlocality.rst new file mode 100644 index 0000000000..d98283c6fb --- /dev/null +++ b/documentation/ref-manual/ref-varlocality.rst | |||
@@ -0,0 +1,164 @@ | |||
1 | **************** | ||
2 | Variable Context | ||
3 | **************** | ||
4 | |||
5 | While you can use most variables in almost any context such as | ||
6 | ``.conf``, ``.bbclass``, ``.inc``, and ``.bb`` files, some variables are | ||
7 | often associated with a particular locality or context. This chapter | ||
8 | describes some common associations. | ||
9 | |||
10 | .. _ref-varlocality-configuration: | ||
11 | |||
12 | Configuration | ||
13 | ============= | ||
14 | |||
15 | The following subsections provide lists of variables whose context is | ||
16 | configuration: distribution, machine, and local. | ||
17 | |||
18 | .. _ref-varlocality-config-distro: | ||
19 | |||
20 | Distribution (Distro) | ||
21 | --------------------- | ||
22 | |||
23 | This section lists variables whose configuration context is the | ||
24 | distribution, or distro. | ||
25 | |||
26 | - ``DISTRO`` | ||
27 | |||
28 | - ``DISTRO_NAME`` | ||
29 | |||
30 | - ``DISTRO_VERSION`` | ||
31 | |||
32 | - ``MAINTAINER`` | ||
33 | |||
34 | - ``PACKAGE_CLASSES`` | ||
35 | |||
36 | - ``TARGET_OS`` | ||
37 | |||
38 | - ``TARGET_FPU`` | ||
39 | |||
40 | - ``TCMODE`` | ||
41 | |||
42 | - ``TCLIBC`` | ||
43 | |||
44 | .. _ref-varlocality-config-machine: | ||
45 | |||
46 | Machine | ||
47 | ------- | ||
48 | |||
49 | This section lists variables whose configuration context is the machine. | ||
50 | |||
51 | - ``TARGET_ARCH`` | ||
52 | |||
53 | - ``SERIAL_CONSOLES`` | ||
54 | |||
55 | - ``PACKAGE_EXTRA_ARCHS`` | ||
56 | |||
57 | - ``IMAGE_FSTYPES`` | ||
58 | |||
59 | - ``MACHINE_FEATURES`` | ||
60 | |||
61 | - ``MACHINE_EXTRA_RDEPENDS`` | ||
62 | |||
63 | - ``MACHINE_EXTRA_RRECOMMENDS`` | ||
64 | |||
65 | - ``MACHINE_ESSENTIAL_EXTRA_RDEPENDS`` | ||
66 | |||
67 | - ``MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS`` | ||
68 | |||
69 | .. _ref-varlocality-config-local: | ||
70 | |||
71 | Local | ||
72 | ----- | ||
73 | |||
74 | This section lists variables whose configuration context is the local | ||
75 | configuration through the ``local.conf`` file. | ||
76 | |||
77 | - ``DISTRO`` | ||
78 | |||
79 | - ``MACHINE`` | ||
80 | |||
81 | - ``DL_DIR`` | ||
82 | |||
83 | - ``BBFILES`` | ||
84 | |||
85 | - ``EXTRA_IMAGE_FEATURES`` | ||
86 | |||
87 | - ``PACKAGE_CLASSES`` | ||
88 | |||
89 | - ``BB_NUMBER_THREADS`` | ||
90 | |||
91 | - ``BBINCLUDELOGS`` | ||
92 | |||
93 | - ``ENABLE_BINARY_LOCALE_GENERATION`` | ||
94 | |||
95 | .. _ref-varlocality-recipes: | ||
96 | |||
97 | Recipes | ||
98 | ======= | ||
99 | |||
100 | The following subsections provide lists of variables whose context is | ||
101 | recipes: required, dependencies, path, and extra build information. | ||
102 | |||
103 | .. _ref-varlocality-recipe-required: | ||
104 | |||
105 | Required | ||
106 | -------- | ||
107 | |||
108 | This section lists variables that are required for recipes. | ||
109 | |||
110 | - ``LICENSE`` | ||
111 | |||
112 | - ``LIC_FILES_CHKSUM`` | ||
113 | |||
114 | - ``SRC_URI`` - used in recipes that fetch local or remote files. | ||
115 | |||
116 | .. _ref-varlocality-recipe-dependencies: | ||
117 | |||
118 | Dependencies | ||
119 | ------------ | ||
120 | |||
121 | This section lists variables that define recipe dependencies. | ||
122 | |||
123 | - ``DEPENDS`` | ||
124 | |||
125 | - ``RDEPENDS`` | ||
126 | |||
127 | - ``RRECOMMENDS`` | ||
128 | |||
129 | - ``RCONFLICTS`` | ||
130 | |||
131 | - ``RREPLACES`` | ||
132 | |||
133 | .. _ref-varlocality-recipe-paths: | ||
134 | |||
135 | Paths | ||
136 | ----- | ||
137 | |||
138 | This section lists variables that define recipe paths. | ||
139 | |||
140 | - ``WORKDIR`` | ||
141 | |||
142 | - ``S`` | ||
143 | |||
144 | - ``FILES`` | ||
145 | |||
146 | .. _ref-varlocality-recipe-build: | ||
147 | |||
148 | Extra Build Information | ||
149 | ----------------------- | ||
150 | |||
151 | This section lists variables that define extra build information for | ||
152 | recipes. | ||
153 | |||
154 | - ``DEFAULT_PREFERENCE`` | ||
155 | |||
156 | - ``EXTRA_OECMAKE`` | ||
157 | |||
158 | - ``EXTRA_OECONF`` | ||
159 | |||
160 | - ``EXTRA_OEMAKE`` | ||
161 | |||
162 | - ``PACKAGECONFIG_CONFARGS`` | ||
163 | |||
164 | - ``PACKAGES`` | ||