Skip to contentSkip to conversation

docs/devel: Organize devel manual into further subsections

PATCH Superseded John Snow 3 participants 12 messages Aug 6, 2021

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

John Snow

author
#0 lore raw

v2 cover docs/devel: Organize devel manual into further subsections

It's a bit cluttered. On my way to converting the QAPI/QMP documents to ReST I thought it could do with another organizational level to help make sense of things a bit more quickly.

V2:
- Move decodetree into TCG subsection
- Rebase, add QOM/QAPI/QMP docs into API subsection

John Snow (7):
docs/devel: create "Community & Governance" subsection docs/devel: create "Developing QEMU" subsection docs/devel: create "Testing & Debugging" subsection docs/devel: create TCG subsection
docs/devel: create "Subsystem APIs" subsection docs/devel: create "QEMU API" section docs/devel: create "Miscellaneous Topics" subsection

 docs/devel/index.rst                        | 42 ++++-----------------
 docs/devel/section-api.rst                  | 10 +++++
 docs/devel/section-community-governance.rst |  9 +++++
 docs/devel/section-development.rst          | 12 ++++++
 docs/devel/section-misc.rst                 | 13 +++++++
 docs/devel/section-subsystems.rst           | 16 ++++++++
 docs/devel/section-tcg.rst                  | 12 ++++++
 docs/devel/section-testing-debugging.rst    | 12 ++++++
 8 files changed, 91 insertions(+), 35 deletions(-)
 create mode 100644 docs/devel/section-api.rst
 create mode 100644 docs/devel/section-community-governance.rst
 create mode 100644 docs/devel/section-development.rst
 create mode 100644 docs/devel/section-misc.rst
 create mode 100644 docs/devel/section-subsystems.rst
 create mode 100644 docs/devel/section-tcg.rst
 create mode 100644 docs/devel/section-testing-debugging.rst
Signature · 1 line
2.31.1
author
#1 lore raw

PATCH v2 1/7 docs/devel: create "Community & Governance" subsection

Plonk the Code of Conduct and Conflict Resolution Policy guides into a new "Community & Governance" subsection.

---
 docs/devel/index.rst                        | 3 +--
 docs/devel/section-community-governance.rst | 9 +++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)
 create mode 100644 docs/devel/section-community-governance.rst
docs/devel/index.rst +1 -2
index 5522db72411..008d489d751 100644
@@ -9,8 +9,7 @@ modifying QEMU's source code.
    :maxdepth: 2
    :includehidden:
 
-   code-of-conduct
-   conflict-resolution
+   section-community-governance
    build-system
    style
    kconfig
docs/devel/section-community-governance.rst new file +9 -0
new file mode 100644
index 00000000000..2c7e07257d1
@@ -0,0 +1,9 @@
+Community & Governance
+======================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   code-of-conduct
+   conflict-resolution
Signature · 1 line
2.31.1
author
#2 lore raw

PATCH v2 2/7 docs/devel: create "Developing QEMU" subsection

In reply to John Snow
---
 docs/devel/index.rst               |  6 +-----
 docs/devel/section-development.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-development.rst
docs/devel/index.rst +1 -5
index 008d489d751..57016edd841 100644
@@ -10,9 +10,7 @@ modifying QEMU's source code.
    :includehidden:
 
    section-community-governance
-   build-system
-   style
-   kconfig
+   section-development
    testing
    fuzzing
    control-flow-integrity
@@ -20,11 +18,9 @@ modifying QEMU's source code.
    memory
    migration
    atomics
-   stable-process
    ci
    qtest
    decodetree
-   secure-coding-practices
    tcg
    tcg-icount
    tracing
docs/devel/section-development.rst new file +12 -0
new file mode 100644
index 00000000000..bba4fea30cb
@@ -0,0 +1,12 @@
+Developing QEMU
+===============
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   build-system
+   kconfig
+   style
+   secure-coding-practices
+   stable-process
Signature · 1 line
2.31.1
#3 lore raw

Re: [PATCH v2 2/7] docs/devel: create "Developing QEMU" subsection

Quoted 42 lines · John Snow
---
 docs/devel/index.rst               |  6 +-----
 docs/devel/section-development.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-development.rst
docs/devel/index.rst +1 -5
index 008d489d751..57016edd841 100644
@@ -10,9 +10,7 @@ modifying QEMU's source code.
    :includehidden:
 
    section-community-governance
-   build-system
-   style
-   kconfig
+   section-development
    testing
    fuzzing
    control-flow-integrity
@@ -20,11 +18,9 @@ modifying QEMU's source code.
    memory
    migration
    atomics
-   stable-process
    ci
    qtest
    decodetree
-   secure-coding-practices
    tcg
    tcg-icount
    tracing
docs/devel/section-development.rst new file +0 -0
new file mode 100644
index 00000000000..bba4fea30cb

docs/devel/section-development.rst line 7

Quoted 7 lines
docs/devel/section-development.rst new file +7 -0
@@ -0,0 +1,12 @@
+Developing QEMU
+===============
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+

Could we order from generic to specific?

Quoted 7 lines
docs/devel/section-development.rst new file +5 -0
+   style
+   secure-coding-practices
 
+   stable-process
+   build-system
+   kconfig
#4 lore raw

Re: [PATCH v2 2/7] docs/devel: create "Developing QEMU" subsection

Quoted 44 lines · Philippe Mathieu-Daudé
Quoted 43 lines · John Snow
---
 docs/devel/index.rst               |  6 +-----
 docs/devel/section-development.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-development.rst
docs/devel/index.rst +1 -5
index 008d489d751..57016edd841 100644
@@ -10,9 +10,7 @@ modifying QEMU's source code.
    :includehidden:
 
    section-community-governance
-   build-system
-   style
-   kconfig
+   section-development
    testing
    fuzzing
    control-flow-integrity
@@ -20,11 +18,9 @@ modifying QEMU's source code.
    memory
    migration
    atomics
-   stable-process
    ci
    qtest
    decodetree
-   secure-coding-practices
    tcg
    tcg-icount
    tracing
docs/devel/section-development.rst new file +1 -0
new file mode 100644
index 00000000000..bba4fea30cb
@@ -0,0 +1,12 @@
+Developing QEMU
Quoted 8 lines

docs/devel/section-development.rst line 7

Quoted 6 lines
docs/devel/section-development.rst new file +6 -0
+===============
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+

Could we order from generic to specific?

Oh this is alphetically sorted, nevermind.

author
#5 lore raw

Re: [PATCH v2 2/7] docs/devel: create "Developing QEMU" subsection

Quoted 55 lines · Philippe Mathieu-Daudé
Quoted 30 lines · Philippe Mathieu-Daudé
Quoted 29 lines · John Snow
---
 docs/devel/index.rst               |  6 +-----
 docs/devel/section-development.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-development.rst
docs/devel/index.rst +1 -4
index 008d489d751..57016edd841 100644
@@ -10,9 +10,7 @@ modifying QEMU's source code.
    :includehidden:
 
    section-community-governance
-   build-system
-   style
-   kconfig
+   section-development
    testing
    fuzzing
    control-flow-integrity
@@ -20,11 +18,9 @@ modifying QEMU's source code.
    memory
    migration
    atomics
-   stable-process
Quoted 8 lines

Review

Quoted 8 lines
docs/devel/index.rst +0 -1
    ci
    qtest
    decodetree
-   secure-coding-practices
    tcg
    tcg-icount
    tracing
(quoted diff) +0 -0

b/docs/devel/section-development.rst

Quoted 6 lines
Quoted 6 lines

new file mode 100644
index 00000000000..bba4fea30cb

docs/devel/section-development.rst new file +1 -0
@@ -0,0 +1,12 @@
+Developing QEMU
Quoted 8 lines

docs/devel/section-development.rst line 7

Quoted 6 lines
docs/devel/section-development.rst new file +6 -0
+===============
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+

Could we order from generic to specific?

Quoted 3 lines

Oh this is alphetically sorted, nevermind.

If you want to give them a better "armchair order", I personally welcome it. A good intro paragraph or two directly in the section-*.rst that introduces the contents to follow, alongside a brief copy-editing of the layout and organization of the docs in the section would be very helpful. It was just more than I wanted to tackle with a quick series.

author
#6 lore raw

PATCH v2 3/7 docs/devel: create "Testing & Debugging" subsection

In reply to John Snow
---
 docs/devel/index.rst                     |  6 +-----
 docs/devel/section-testing-debugging.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-testing-debugging.rst
docs/devel/index.rst +1 -5
index 57016edd841..41fb32e922e 100644
@@ -11,19 +11,15 @@ modifying QEMU's source code.
 
    section-community-governance
    section-development
-   testing
-   fuzzing
+   section-testing-debugging
    control-flow-integrity
    loads-stores
    memory
    migration
    atomics
-   ci
-   qtest
    decodetree
    tcg
    tcg-icount
-   tracing
    multi-thread-tcg
    tcg-plugins
    bitops
docs/devel/section-testing-debugging.rst new file +12 -0
new file mode 100644
index 00000000000..e59ddab4cf5
@@ -0,0 +1,12 @@
+Testing & Debugging
+===================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   ci
+   fuzzing
+   qtest
+   testing
+   tracing
Signature · 1 line
2.31.1
author
#7 lore raw

PATCH v2 4/7 docs/devel: create TCG subsection

In reply to John Snow
---
 docs/devel/index.rst       |  6 +-----
 docs/devel/section-tcg.rst | 12 ++++++++++++
 2 files changed, 13 insertions(+), 5 deletions(-)
 create mode 100644 docs/devel/section-tcg.rst
docs/devel/index.rst +1 -5
index 41fb32e922e..84bdd10abcb 100644
@@ -12,16 +12,12 @@ modifying QEMU's source code.
    section-community-governance
    section-development
    section-testing-debugging
+   section-tcg
    control-flow-integrity
    loads-stores
    memory
    migration
    atomics
-   decodetree
-   tcg
-   tcg-icount
-   multi-thread-tcg
-   tcg-plugins
    bitops
    ui
    reset
docs/devel/section-tcg.rst new file +12 -0
new file mode 100644
index 00000000000..dec4ab984b6
@@ -0,0 +1,12 @@
+TCG - Tiny Code Generator
+=========================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   tcg
+   tcg-icount
+   multi-thread-tcg
+   decodetree
+   tcg-plugins
Signature · 1 line
2.31.1
author
#8 lore raw

PATCH v2 5/7 docs/devel: create "Subsystem APIs" subsection

In reply to John Snow
---
 docs/devel/index.rst              | 10 +---------
 docs/devel/section-subsystems.rst | 16 ++++++++++++++++
 2 files changed, 17 insertions(+), 9 deletions(-)
 create mode 100644 docs/devel/section-subsystems.rst
docs/devel/index.rst +1 -9
index 84bdd10abcb..b146ce00f7a 100644
@@ -13,18 +13,10 @@ modifying QEMU's source code.
    section-development
    section-testing-debugging
    section-tcg
+   section-subsystems
    control-flow-integrity
-   loads-stores
-   memory
-   migration
-   atomics
-   bitops
-   ui
-   reset
    s390-dasd-ipl
-   clocks
    qom
-   modules
    block-coroutine-wrapper
    multi-process
    ebpf_rss
docs/devel/section-subsystems.rst new file +16 -0
new file mode 100644
index 00000000000..fbe21f85adf
@@ -0,0 +1,16 @@
+Subsystem APIs
+==============
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   atomics
+   bitops
+   loads-stores
+   clocks
+   memory
+   ui
+   migration
+   reset
+   modules
Signature · 1 line
2.31.1
author
#9 lore raw

PATCH v2 6/7 docs/devel: create "QEMU API" section

In reply to John Snow
---
 docs/devel/index.rst       |  4 +---
 docs/devel/section-api.rst | 10 ++++++++++
 2 files changed, 11 insertions(+), 3 deletions(-)
 create mode 100644 docs/devel/section-api.rst
docs/devel/index.rst +1 -3
index b146ce00f7a..9f9e96204fc 100644
@@ -12,14 +12,12 @@ modifying QEMU's source code.
    section-community-governance
    section-development
    section-testing-debugging
+   section-api
    section-tcg
    section-subsystems
    control-flow-integrity
    s390-dasd-ipl
-   qom
    block-coroutine-wrapper
    multi-process
    ebpf_rss
    vfio-migration
-   qapi-code-gen
-   writing-qmp-commands
docs/devel/section-api.rst new file +10 -0
new file mode 100644
index 00000000000..d62b614fe3d
@@ -0,0 +1,10 @@
+QEMU API
+========
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   qapi-code-gen
+   writing-qmp-commands
+   qom
Signature · 1 line
2.31.1
Reviewed-by on v2 6/7
#10 lore raw

Re: [PATCH v2 6/7] docs/devel: create "QEMU API" section

Quoted 45 lines · John Snow
---
 docs/devel/index.rst       |  4 +---
 docs/devel/section-api.rst | 10 ++++++++++
 2 files changed, 11 insertions(+), 3 deletions(-)
 create mode 100644 docs/devel/section-api.rst
docs/devel/index.rst +1 -3
index b146ce00f7a..9f9e96204fc 100644
@@ -12,14 +12,12 @@ modifying QEMU's source code.
    section-community-governance
    section-development
    section-testing-debugging
+   section-api
    section-tcg
    section-subsystems
    control-flow-integrity
    s390-dasd-ipl
-   qom
    block-coroutine-wrapper
    multi-process
    ebpf_rss
    vfio-migration
-   qapi-code-gen
-   writing-qmp-commands
docs/devel/section-api.rst new file +10 -1
new file mode 100644
index 00000000000..d62b614fe3d
@@ -0,0 +1,10 @@
+QEMU API
+========
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   qapi-code-gen
+   writing-qmp-commands
+   qom
--
Quoted 1 line

2.31.1

thanks
-- PMM

author
#11 lore raw

PATCH v2 7/7 docs/devel: create "Miscellaneous Topics" subsection

In reply to John Snow

The hallmark of any truly great taxonomical reorganization: the bin of leftover bits and pieces that didn't neatly fit elsewhere.

---
 docs/devel/index.rst        |  7 +------
 docs/devel/section-misc.rst | 13 +++++++++++++
 2 files changed, 14 insertions(+), 6 deletions(-)
 create mode 100644 docs/devel/section-misc.rst
docs/devel/index.rst +1 -6
index 9f9e96204fc..3d86b4b5685 100644
@@ -15,9 +15,4 @@ modifying QEMU's source code.
    section-api
    section-tcg
    section-subsystems
-   control-flow-integrity
-   s390-dasd-ipl
-   block-coroutine-wrapper
-   multi-process
-   ebpf_rss
-   vfio-migration
+   section-misc
docs/devel/section-misc.rst new file +13 -0
new file mode 100644
index 00000000000..e663e0e8b14
@@ -0,0 +1,13 @@
+Miscellaneous Topics
+====================
+
+.. toctree::
+   :maxdepth: 2
+   :includehidden:
+
+   control-flow-integrity
+   s390-dasd-ipl
+   block-coroutine-wrapper
+   multi-process
+   ebpf_rss
+   vfio-migration
Signature · 1 line
2.31.1