fixed reference errors, minor enhancements to the docs, fix pyproject.toml, alt text to images

This commit is contained in:
qubedmaiska 2025-09-09 11:39:34 -04:00
parent 4404a5d5f5
commit e93ddb3796
No known key found for this signature in database
GPG key ID: 204BCE0FD52C0501
15 changed files with 73 additions and 99 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
_build
**/__pycache__/*
uv.lock
poetry.lock

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 128 KiB

Before After
Before After

View file

@ -5,10 +5,11 @@ How to edit the documentation
The Qubes OS documentation is stored as `reStructuredText (rST) <https://docutils.sourceforge.io/rst.html>`__ files in
the `qubes-doc <https://github.com/QubesOS/qubes-doc>`__ repository.
We use `Sphinx <https://www.sphinx-doc.org/>`__ for building and
`Read The Docs <https://readsthedocs.com/>`__ for hosting.
`Read The Docs (RTD) <https://readsthedocs.com/>`__ for hosting.
RTD is a `continuousdocumentation deployment platform <https://docs.readthedocs.com/platform/stable/continuous-deployment.html>`__ that automatically detects changes in the qubes-doc GittHub repository and builds the latest version of the docs.
.. figure:: /attachment/doc/rst-rtd-workflow.png
:alt: Qubes OS Documentation Workflow - TODO description
:alt: Qubes OS Documentation Workflow - once new documentation is written or changed, it is built and verified with Sphinx, pushed on GitHub/GitLab and hosted on RTD
:scale: 15 %
:align: center
@ -21,8 +22,7 @@ be downloaded from `doc.qubes-os.org <https://doc.qubes-os.org/en/latest/>`__:
|epub-pdf|
..
TODO screenshot with main branch instead of rst
TODO add alt description overall with the images
TODO screenshots with main branch instead of rst when rst merged in main
TODO add draft pull request screenshot
The documentation is a volunteer community effort. People like you are
@ -64,12 +64,13 @@ Ok, lets begin. Every documentation page has a “Edit on GitHub” link.
When you click on it, youll be taken to the source file — a reStructuredText (``.rst``) file — on GitHub.
|github-edit|
On this page, there will be a
button to edit the file (if you are already logged in in).
TODO screenshot
..
TODO screenshot when rst merged in main
|github-edit|
If you are not logged in you can click on :guilabel:`Sign In`
and youll be prompted to sign in with your GitHub username and password.
@ -105,7 +106,7 @@ if you want to locally verify that everything looks correct before submitting an
Once youre finished, describe your changes at the bottom and click
:guilabel:`Propose file change`.
:guilabel:`Commit changes`.
|commit|
@ -115,8 +116,6 @@ stage, those changes are still in your own copy of the documentation
the :guilabel:`Create pull request` button.
|draft-pull-request-confirm|
You will be able to adjust the pull request message and title there. In
most cases, the defaults are ok, so you can just confirm by pressing the
:guilabel:`Create pull request` button again. However, if youre not ready for
@ -140,7 +139,8 @@ cant.
Viewing your pull request on RTD
--------------------------------
To view your pull request on RTD you can go to Qubes OS builds on `RTD <https://app.readthedocs.org/projects/qubes-doc/builds/>`__:
Every time you push a commit to your pull request, a build on RTD will be triggered.
To view your PR you can go to Qubes OS builds on `RTD <https://app.readthedocs.org/projects/qubes-doc/builds/>`__:
|pull-request-builds|
@ -184,7 +184,10 @@ TL;DR: How to edit the documentation index
For a more comprehensive guide to the rST syntax and pitfalls please refer to the :doc:`reStrucutredText Style Guide </developer/general/rst-documentation-style-guide/>`.
The source file for the :doc:`documentation index (a.k.a. table of contents) </index>` is
`index.rst <https://github.com/QubesOS/qubes-doc/blob/rst/index.rst>`__ (TODO: main).
`index.rst <https://github.com/QubesOS/qubes-doc/blob/rst/index.rst>`__.
..
TODO: point to index, conf.py etc on main not on rst when rst merged in main
:file:`index.rst` contains information about the hierarchy between the files in the documentation and/or
@ -231,7 +234,7 @@ Then, add your image(s) in a the :file:`attachment/doc` folder in the `qubes-doc
repository using the same path and filename.
This is the only permitted way to include images. Do not link to images on other websites.
.. _cross_refrencing:
.. _cross_referencing:
TL;DR: Cross-referencing
========================
@ -267,7 +270,7 @@ which will point to :ref:`this section <user/troubleshooting/vm-troubleshooting:
which will refer to :ref:`this section <introduction/faq:what does it mean to "distrust the infrastructure"?>`.
TODO: label of sections and referencing them
For further options and use cases please refer to `Cross-references <https://www.sphinx-doc.org/en/master/usage/referencing.html>`__.
.. _build_locally:
@ -280,7 +283,7 @@ In order to build the Qubes OS rST documentation locally clone the `qubes-doc <h
(or your forked one if you want to submit a pull request).
It is recommended to use a virtual environment, f.ex. venv or poetry.
It is recommended to use a virtual environment, f.ex. venv or uv poetry.
In the following section there is a sample setup to prepare local environments
for building Qubes OS rST documentation.
@ -368,7 +371,7 @@ Using poetry
1. `Install poetry <https://python-poetry.org/docs/#installation>`__ and git and clone the repository.
A `pyproject.toml` file is provided.
A :file:`pyproject.toml` file is provided.
.. code-block:: console
@ -504,16 +507,26 @@ you are not willing or able to do so.)
.. |page-source-button| image:: /attachment/doc/doc-pr_01_page-source-button-rtd.png
:alt: Highlights the Edit Source Button to GitHub sources on doc.qubes-os.org
.. |github-edit| image:: /attachment/doc/doc-pr_02_github-edit-rst.png
:alt: Highlights the Sign-In on GitHub
.. |github-sign-in| image:: /attachment/doc/doc-pr_03_sign-in-rst.png
:alt: GitHub Login
.. |fork1| image:: /attachment/doc/doc-pr_04_fork-rst1.png
:alt: Highlights the Fork Button on GitHub for the qubes-doc repository
.. |fork2| image:: /attachment/doc/doc-pr_04_fork-rst2.png
:alt: Highlights the Create Fork Button on GitHub when forking the qubes-doc repository
.. |fork3| image:: /attachment/doc/doc-pr_04_fork-rst3.png
:alt: Forked qubes-doc repository on GitHub
.. |edit| image:: /attachment/doc/doc-pr_05_edit-rst.png
:alt: Highlights the edit options for an rst file in the GitHub forked qubes-doc repository
.. |commit| image:: /attachment/doc/doc-pr_06_commit-msg-rst.png
:alt: Highlights the commit changes button on GitHub
.. |pull-request-confirm| image:: /attachment/doc/doc-pr_09_create-pr-rst.png
.. |draft-pull-request-confirm| image:: /attachment/doc/doc-pr_09_create-dpr-rst.png
:alt: Highlights the create pull request button on GitHub when creating a pull request
.. |pull-request-builds| image:: /attachment/doc/doc-pr_10_view-pr-rtd.png
:alt: Highlights the pull request <number> and its build in the build list on RTD
.. |pull-request-build| image:: /attachment/doc/doc-pr_11_view-pr-rtd.png
.. |done| image:: /attachment/doc/doc-pr_09_done.png
:alt: Highlights the View Docs button in a specific build for a pull request <number> on RTD
.. |epub-pdf| image:: /attachment/doc/rst-rtd-epub-pdf.png
:alt: Highlights from where one can download a ePUB or PDF of hte Qubes OS documentation deployed on RTD

View file

@ -216,4 +216,6 @@ Questions, problems, and improvements
If you have a question about something you read in the website or about how to edit the it, please post it on the `forum <https://forum.qubes-os.org/>`__ or send it to the appropriate :doc:`mailing list </introduction/support>`. If you see that something in the website should be fixed or improved, please `contribute <#how-to-submit-a-pull-request>`__ the change yourself. To report an issue with the wesbite, please follow our standard :doc:`issue reporting guidelines </introduction/issue-tracking>`. (If you report an issue with the website, you will likely be asked to submit a pull request for it, unless there is a clear indication in your report that you are not willing or able to do so.)
.. |news-section| image:: /attachment/doc/website_news_section.png
:alt: Depicts the News section of the Qubes OS website
.. |hcl-section| image:: /attachment/doc/website_hcl.png
:alt: Depicts the Hardware Compatibility List table on the Qubes OS website

View file

@ -308,7 +308,7 @@ use `:ref:` for specific sections
:ref:`qubes <user/reference/glossary:qube>`
For further information please :ref:`see <developer/general/how-to-edit-the-rst-documentation:cross-referencing>`.
For further information please :ref:`cross_referencing`.
Hyperlink syntax
@ -331,7 +331,7 @@ Do *not* use reference-style links like
This facilitates the localization process.
Take a look also :ref:`here <developer/general/how-to-edit-the-rst-documentation:cross-referencing>`.
Take a look also :ref:`cross_referencing`.
Relative vs. absolute links
@ -570,7 +570,7 @@ Core vs. external documentation
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Core documentation resides in the `Qubes OS Projects official repositories <https://github.com/QubesOS/>`__, mainly in `qubes-doc <https://github.com/QubesOS/qubes-doc>`__. External documentation can be anywhere else (such as forums, community websites, and blogs), but there is an especially large collection in the `Qubes Forum <https://forum.qubes-os.org/docs>`__. External documentation should not be submitted to `qubes-doc <https://github.com/QubesOS/qubes-doc>`__. If youve written a piece of documentation that is not appropriate for `qubes-doc <https://github.com/QubesOS/qubes-doc>`__, we encourage you to submit it to the `Qubes Forum <https://forum.qubes-os.org/docs>`__ instead. However, *linking* to external documentation from `qubes-doc <https://github.com/QubesOS/qubes-doc>`__ is perfectly fine. Indeed, the maintainers of the `Qubes Forum <https://forum.qubes-os.org/>`__ should regularly submit PRs against the documentation index (see :ref:`How to edit the documentation index <developer/general/how-to-edit-the-rst-documentation:how to edit the documentation index>`) to add and update Qubes Forum links in the :ref:`“External documentation” <index:external documentation>` section of the documentation table of contents.
Core documentation resides in the `Qubes OS Projects official repositories <https://github.com/QubesOS/>`__, mainly in `qubes-doc <https://github.com/QubesOS/qubes-doc>`__. External documentation can be anywhere else (such as forums, community websites, and blogs), but there is an especially large collection in the `Qubes Forum <https://forum.qubes-os.org/docs>`__. External documentation should not be submitted to `qubes-doc <https://github.com/QubesOS/qubes-doc>`__. If youve written a piece of documentation that is not appropriate for `qubes-doc <https://github.com/QubesOS/qubes-doc>`__, we encourage you to submit it to the `Qubes Forum <https://forum.qubes-os.org/docs>`__ instead. However, *linking* to external documentation from `qubes-doc <https://github.com/QubesOS/qubes-doc>`__ is perfectly fine. Indeed, the maintainers of the `Qubes Forum <https://forum.qubes-os.org/>`__ should regularly submit PRs against the documentation index (see :ref:`edit_doc_index`) to add and update Qubes Forum links in the :ref:`“External documentation” <index:external documentation>` section of the documentation table of contents.
The main difference between **core** (or **official**) and **external** (or **community** or **unofficial**) documentation is whether it documents software that is officially written and maintained by the Qubes OS Project. The purpose of this distinction is to keep the core docs maintainable and high-quality by limiting them to the software output by the Qubes OS Project. In other words, we take responsibility for documenting all of the software we put out into the world, but it doesnt make sense for us to take on the responsibility of documenting or maintaining documentation for anything else. For example, Qubes OS may use a popular Linux distribution for an official :doc:`TemplateVM </user/templates/templates>`. However, it would not make sense for a comparatively small project like ours, with modest funding and a lean workforce, to attempt to document software belonging to a large, richly-funded project with an army of paid and volunteer contributors, especially when they probably already have documentation of their own. This is particularly true when it comes to Linux in general. Although many users who are new to Qubes are also new to Linux, it makes absolutely no sense for our comparatively tiny project to try to document Linux in general when there is already a plethora of documentation out there.
@ -751,7 +751,7 @@ Internal
:doc:`Link Text </path/to/file>`
For example on cross referencing please see :ref:`cross-referencing <developer/general/how-to-edit-the-rst-documentation:cross-referencing>`.
For example on cross referencing please see :ref:`cross_referencing`.
Text Decoration
^^^^^^^^^^^^^^^
@ -865,4 +865,3 @@ Markdown does not have built-in support for alerts and warnings.
.. danger::
This is a danger message.

View file

@ -397,3 +397,4 @@ Git conventions
Please follow our :ref:`Git commit message guidelines <developer/code/coding-style:commit message guidelines>`.
.. |alerts| image:: /attachment/doc/website_alerts.png
:alt: Depicts different alerts and messages: note, warning, danger and how they are rendered on the website

View file

@ -192,13 +192,6 @@ Documentation
Browse our extensive library of :doc:`documentation </index>` for users and developers of Qubes OS. You can even :doc:`help us improve it </developer/general/how-to-edit-the-rst-documentation>`!
.. |snapshot_41.png| image:: /attachment/doc/r4.1-snapshot_40.png
.. |r4.0-taskbar.png| image:: /attachment/doc/r4.0-taskbar.png
.. |r4.1-widgets.png| image:: /attachment/doc/r4.1-widgets.png
.. |r4.1-qubes-manager.png| image:: /attachment/doc/r4.1-qubes-manager.png

View file

@ -193,6 +193,6 @@ presentation.
- If youre a current or potential Qubes user, you may want to check out the :doc:`documentation </index>` and the :ref:`user FAQ <introduction/faq:users>`.
- If youre a developer, theres dedicated :ref:`index:Developer Documentation` and a :ref:`developer FAQ <introduction/faq:developers>` just for you.
- Ready to give Qubes a try? Head on over to the `downloads page <https://www.qubes-os.org/downloads/>`__, and read the :ref:`Installation guide`.
- Ready to give Qubes a try? Head on over to the `downloads page <https://www.qubes-os.org/downloads/>`__, and read the :doc:`Installation guide </user/downloading-installing-upgrading/installation-guide>`.
- Need help, or just want to join the conversation? Learn more about :doc:`help, support, the mailing lists, and the forum </introduction/support>`.

View file

@ -130,61 +130,22 @@ And some more screenshots:
|r2b3-windows-seamless-2.png|
.. |r4.0-xfce-desktop.png| image:: /attachment/doc/r4.0-xfce-desktop.png
.. |r4.0-xfce-start-menu.png| image:: /attachment/doc/r4.0-xfce-start-menu.png
.. |r4.0-xfce-three-domains-at-work.png| image:: /attachment/doc/r4.0-xfce-three-domains-at-work.png
.. |r2b3-windows-seamless-1.png| image:: /attachment/doc/r2b3-windows-seamless-1.png
.. |r2b3-windows-seamless-filecopy.png| image:: /attachment/doc/r2b3-windows-seamless-filecopy.png
.. |r4.0-xfce-programmers-desktop.png| image:: /attachment/doc/r4.0-xfce-programmers-desktop.png
.. |r4.0-password-prompt.png| image:: /attachment/doc/r4.0-password-prompt.png
.. |r4.0-xfce-tray-icons.png| image:: /attachment/doc/r4.0-xfce-tray-icons.png
.. |r4.0-manager-and-sysnet-network-prompt.png| image:: /attachment/doc/r4.0-manager-and-sysnet-network-prompt.png
.. |r4.0-software-update.png| image:: /attachment/doc/r4.0-software-update.png
.. |r4.0-copy-paste.png| image:: /attachment/doc/r4.0-copy-paste.png
.. |“r4.0-copy-to-other-appvm-1.png| image:: /attachment/doc/r4.0-copy-to-other-appvm-1.png
.. |r4.0-copy-to-other-appvm-3.png| image:: /attachment/doc/r4.0-copy-to-other-appvm-2.png
.. |r4.0-open-in-dispvm-1.png| image:: /attachment/doc/r4.0-open-in-dispvm-1.png
.. |r4.0-open-in-dispvm-2.png| image:: /attachment/doc/r4.0-open-in-dispvm-2.png
.. |r4.0-convert-to-trusted-pdf-1.png| image:: /attachment/doc/r4.0-convert-to-trusted-pdf-1.png
.. |r4.1-converting-pdf.png| image:: /attachment/doc/r4.1-converting-pdf.png
.. |r4.0-manager-firewall.png| image:: /attachment/doc/r4.0-manager-firewall.png
.. |r4.0-xfce-red-and-green-terminals.png| image:: /attachment/doc/r4.0-xfce-red-and-green-terminals.png
.. |r2b3-windows-seamless-2.png| image:: /attachment/doc/r2b3-windows-seamless-2.png

View file

@ -11,6 +11,10 @@ dependencies = ["sphinx (>=8.2.3,<9.0.0)"]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.poetry]
package-mode = false
[tool.uv]
package = false
@ -20,6 +24,8 @@ dev = [
"sphinx-autobuild>=2024.10.3,<2025",
"sphinx-lint>=1.0.0,<2",
"sphinx-reredirects>=1.0.0,<2",
"sphinxext-opengraph==0.12.0",
"sphinxnotes-any==2.5",
"sphinxnotes-strike>=1.2.1,<2",
"sphinx-rtd-theme>=3.0.2,<4",
]

View file

@ -62,7 +62,6 @@ The current Qubes-certified models are listed below in reverse chronological ord
- :doc:`Certification details </user/hardware/certified-hardware/insurgo-privacybeast-x230/>`
Become hardware certified
-------------------------

View file

@ -32,7 +32,6 @@ The `Dasharo FidelisGuard Z690 <https://web.archive.org/web/20240917145232/https
- SilentiumPC Armis AR1
|Photo of Dasharo FidelisGuard Z690 with open case|
This computer comes with a “Dasharo Supporters Entrance Subscription,” which includes the following:

View file

@ -42,7 +42,6 @@ Heres a summary of the main component options available for this mid-tower de
- Qubes OS 4.1 or Ubuntu 22.04 LTS
Of special note for Qubes users, the NitroPC Pro features a combined PS/2 port that supports both a PS/2 keyboard and a PS/2 mouse simultaneously with a Y-cable (not included). This allows for full control of dom0 without the need for USB keyboard or mouse passthrough. Nitrokey also offers a special tamper-evident shipping method for an additional fee. With this option, the case screws will be individually sealed and photographed, and the NitroPC Pro will be packed inside a sealed bag. Photographs of the seals will be sent to you by email, which you can use to determine whether the case was opened during transit.
The NitroPC Pro also comes with a “Dasharo Entry Subscription,” which includes the following:

View file

@ -9,7 +9,7 @@ Qubes OS is effectively a “meta” operating system (OS) that can run almost a
The following instructions explain how to permanently install new software in a template. There are different instructions for software from the default repositories and all other software. (If youre not sure, try the default repositories first.)
.. installing-software-from-default-repositories:
.. _installing-software-from-default-repositories:
Installing software from default repositories
---------------------------------------------
@ -109,12 +109,12 @@ If things are still not working as expected:
How to update software
----------------------
Please see :doc:`how-to-update`.
Please see :doc:`/user/how-to-guides/how-to-update`.
Why don't templates have normal network access?
-----------------------------------------------
In order to protect you from performing risky activities in templates, they do not have normal network access by default. Instead, templates use an :ref:`updates-proxy` which allows you to install and update software using the distributions package manager over the proxy connection. **The updates proxy is already set up to work automatically out-of-the-box and requires no special action from you.** Most users should simply follow the normal instructions for :ref:`installing-software-from-default-repositories` and :doc:`updating <how-to-update>` software. If your software is not available in the default repositories, see `installing software from other sources <#installing-software-from-other-sources>`__.
In order to protect you from performing risky activities in templates, they do not have normal network access by default. Instead, templates use an :ref:`updates-proxy` which allows you to install and update software using the distributions package manager over the proxy connection. **The updates proxy is already set up to work automatically out-of-the-box and requires no special action from you.** Most users should simply follow the normal instructions for :ref:`installing-software-from-default-repositories` and :doc:`updating </user/how-to-guides/how-to-update>` software. If your software is not available in the default repositories, see `installing software from other sources <#installing-software-from-other-sources>`__.
Advanced
--------
@ -223,7 +223,7 @@ This is like the simple revert, except:
- The saved revision of the volumes must be uncompromised. With the default ``revisions_to_keep=1`` for the root volume, you must **not** have started the template since the compromising action.
.. updates-proxy:
.. _updates-proxy:
Updates proxy
^^^^^^^^^^^^^