Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D846C433EF for ; Fri, 8 Oct 2021 18:59:00 +0000 (UTC) Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [217.70.178.230]) by mx.groups.io with SMTP id smtpd.web09.1731.1633719538718856356 for ; Fri, 08 Oct 2021 11:58:59 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: bootlin.com, ip: 217.70.178.230, mailfrom: michael.opdenacker@bootlin.com) Received: (Authenticated sender: michael.opdenacker@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 3E41D240008; Fri, 8 Oct 2021 18:58:55 +0000 (UTC) From: Michael Opdenacker To: docs@lists.yoctoproject.org Cc: Michael Opdenacker Subject: [RFC 1/1] Start of documentation standards document Date: Fri, 8 Oct 2021 20:58:50 +0200 Message-Id: <20211008185850.1032542-2-michael.opdenacker@bootlin.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211008185850.1032542-1-michael.opdenacker@bootlin.com> References: <20211008185850.1032542-1-michael.opdenacker@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Fri, 08 Oct 2021 18:59:00 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/1975 This first version specifies how to create consistent SGV graphics Signed-off-by: Michael Opdenacker --- README | 6 + documentation/README | 9 +- documentation/standards.md | 102 +++ documentation/template/template.svg | 1160 +++++++++++++++++++++++++++ 4 files changed, 1276 insertions(+), 1 deletion(-) create mode 100644 documentation/standards.md create mode 100644 documentation/template/template.svg diff --git a/README b/README index b3836baba0..c5ef2ffdcf 100644 --- a/README +++ b/README @@ -7,6 +7,12 @@ Project components. In particular see the README under doc= umentation/. An online version of the documentation can be found at: https://docs.yoctoproject.org =20 +Contributing +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Read the documentation/standards.md file with specifies some rules +to follow when contributing new documentation. + Where to Send Patches =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 diff --git a/documentation/README b/documentation/README index 2d9eb887b2..f2e2338b7e 100644 --- a/documentation/README +++ b/documentation/README @@ -56,9 +56,16 @@ poky.yaml This file defines variables used for documentation production. The variab= les are used to define release pathnames, URLs for the published manuals, etc. =20 +standards.md +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +Specifies some rules to follow when contributing new documentation. + template =3D=3D=3D=3D=3D=3D=3D=3D -Contains various templates, fonts, and some old PNG files. + +Contains a template.svg, to make it easier to create consistent +new SVG diagrams. =20 Sphinx =3D=3D=3D=3D=3D=3D diff --git a/documentation/standards.md b/documentation/standards.md new file mode 100644 index 0000000000..f89a1badab --- /dev/null +++ b/documentation/standards.md @@ -0,0 +1,102 @@ +# Standards for contributing to Yocto Project documentation + +This document attemps to standardize the way the Yocto Project +documentation is created. + +It is currently a work in progress. + +## Text standards + +This section has not been filled yet + +## ReStructured Text Syntax standards + +This section has not been filled yet + +## Adding screenshots + +The preferred format for adding screenshots is +[Portable Network Graphics (PNG)](https://en.wikipedia.org/wiki/Portable_N= etwork_Graphics). +Compared to the JPEG format, PNG is lossless and compresses screenshots be= tter. + +Screenshots are usually stored in a `figures/` subdirectory. + +To include a screenshot in PNG format: + + .. image:: figures/user-configuration.png + :align: center + +Depending of the size of the image, you may also shrink it +to prevent it from filling the whole page width: + + :scale: 50% + +For some types of screenshots, for example showing +programs displaying photographs or playing video, the JPEG +format may be more appropriate, because it is better at +compressing real-life images: + + .. image:: figures/vlc.jpg + :align: center + :scale: 75% + +## Adding new diagrams + +New diagrams should be added in +[Scalable Vector Graphics (SVG) format](https://en.wikipedia.org/wiki/Scal= able_Vector_Graphics). +Thanks to this, diagrams render nicely at any zoom level on generated docu= mentation, +instead of being pixellized. + +The recommended tool for creating SVG diagrams for the Yocto Project +documentation is [Inkscape](https://inkscape.org/). + +### Colors + +The "GNOME HIG Colors" palette is used for our graphics +(get it from +if you don't have it in your installation of Inkscape) + +It's easier to use than the default one in Inkscape, +as it has fewer but sufficient colors. This is a way +to guarantee that we use consistent colors across the +diagrams used in our documentation. + +See +for details about working with color palettes in Inkscape. + +### Template diagram + +The `template/` directory contains a `template.svg` file +to make it easier to create new diagrams. +In particular, you can use it to copy standard text, shapes, +arrows and clipart to the new SVG document which you create. + +### Fonts + +The recommend font for description text and labels is `Nimbus Roman`, size= 10. +Labels are with a bold style. + +`template.svg` contains ready to copy labels. + +### Text boxes + +Text boxes are rectangle boxes, with rounded corners, and contain centered= text +or labels inside of them. Their stroke color is using a slightly darker co= lor +that their fill color. + +See `template.svg` for example boxes with different colors, which are ready +to be reused. + +### Clipart + +To add new clipart, it's mandatory to use Public Domain files +which we can use in our documents without having license management +headackes. [Openclipart](https://openclipart.org) is the best +known and recommended source of such clipart. + +For the sake of consistency across diagrams, we recommend +to use the same clipart as in existing diagrams, whenever possible. +Therefore, you should check existing clipart in `template.svg` first, +and if you don't find what you need there, find a new one on +[Openclipart](https://openclipart.org) which looks consistent with +existing clipart. Then, please add the new clipart to `template.svg`! diff --git a/documentation/template/template.svg b/documentation/template/t= emplate.svg new file mode 100644 index 0000000000..43043e3afb --- /dev/null +++ b/documentation/template/template.svg @@ -0,0 +1,1160 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Server / compute= r + Note: Public domain graphics from https://openc= lipart.org/ + + + + + Light 3box + + + + + + + + + + + + + + + + + + + + Blue 1box + + + Orange 1box + + Objets + Shapes + Logos + Arrows + Text + + + + Normal text= + Orange 1 arrow + Blue 1 arrow + + Light 3 arrow + Label text (bold) + + + + --=20 2.25.1