diff mbox series

[1/9] index.rst: add introduction paragraphs

Message ID 20260724-rework-welcome-page-v1-1-491772cc4b65@bootlin.com
State New
Headers show
Series Rework the docs.yoctoproject.org welcome page | expand

Commit Message

Antonin Godard July 24, 2026, 1:24 p.m. UTC
The homepage of the Yocto Project documentation currently has no
introduction and only displays the table of contents. Inspired by
https://docs.kernel.org, provide a short introduction to the
documentation and also precede each section with a short sentence about
what the section contains.

The section titles are voluntarily duplicated in the document itself and
in the toctree directive, so that the sidebar still contains them, and we
can have text between the section titles and the toctree content.
However this also duplicates the title in the document itself, so add
CSS directive in our customization file to hide the duplicates.

Note that these titles do not show in the PDF and ePub outputs as those
are generated differently.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/index.rst                         | 25 +++++++++++++++++++++++--
 documentation/sphinx-static/theme_overrides.css |  4 ++++
 2 files changed, 27 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/documentation/index.rst b/documentation/index.rst
index 46b775711..802f895b4 100644
--- a/documentation/index.rst
+++ b/documentation/index.rst
@@ -5,10 +5,19 @@ 
    You can adapt this file completely to your liking, but it should at least
    contain the root `toctree` directive.
 
+==========================================
 Welcome to the Yocto Project Documentation
 ==========================================
 
-|
+This is the top level of the Yocto Project documentation tree. The Yocto Project
+documentation is always a work in progress, just like the Yocto Project itself.
+Improvements to the documentation are always welcome; join the
+:yocto_lists:`docs mailing list </g/docs>` if you want to help out.
+
+Introduction and Overview
+=========================
+
+Get started using the Yocto Project.
 
 .. toctree::
    :maxdepth: 1
@@ -20,6 +29,13 @@  Welcome to the Yocto Project Documentation
    Yocto Project Technical Overview <https://www.yoctoproject.org/development/technical-overview/>
    Tips and Tricks Wiki <https://wiki.yoctoproject.org/wiki/TipsAndTricks>
 
+Manuals
+=======
+
+A collection of manuals covering many aspects of the Yocto Project, including
+reference definitions, tutorials, and details about the project's
+infrastructure.
+
 .. toctree::
    :maxdepth: 1
    :caption: Manuals
@@ -37,9 +53,14 @@  Welcome to the Yocto Project Documentation
    Test Environment Manual <test-manual/index>
    bitbake
 
+Security Reference
+==================
+
+Security-related processes and contact information for vulnerability reporting.
+
 .. toctree::
    :maxdepth: 1
-   :caption: Security
+   :caption: Security Reference
 
    Yocto Project Security Reference <security-reference/index>
 
diff --git a/documentation/sphinx-static/theme_overrides.css b/documentation/sphinx-static/theme_overrides.css
index 3cb16dbcc..f9e067239 100644
--- a/documentation/sphinx-static/theme_overrides.css
+++ b/documentation/sphinx-static/theme_overrides.css
@@ -103,6 +103,10 @@  em {
     background: #f8f8f8;
 }
 
+section#welcome-to-the-yocto-project-documentation p.caption {
+   display: none;
+}
+
 @media screen {
     .wy-nav-content {
        max-width: 1000px;