docs/can: convert to restructuredText
PATCH 1/1 docs/can: convert to restructuredText
From: Lucas Ramage <[email protected]>
---
docs/{can.txt => can.rst} | 14 ++++++--------
docs/index.rst | 1 +
2 files changed, 7 insertions(+), 8 deletions(-)
rename docs/{can.txt => can.rst} (97%)docs/can.rst renamed from docs/can.txt +6 -8
@@ -1,6 +1,5 @@ -QEMU CAN bus emulation support -============================== - +CAN Bus Emulation Support +========================= The CAN bus emulation provides mechanism to connect multiple emulated CAN controller chips together by one or multiple CAN busses (the controller device "canbus" parameter). The individual busses
@@ -32,8 +31,7 @@ emulated environment for testing and RTEMS GSoC slot has been donated to work on CAN hardware emulation on QEMU. Examples how to use CAN emulation for SJA1000 based boards -========================================================== - +---------------------------------------------------------- When QEMU with CAN PCI support is compiled then one of the next CAN boards can be selected
@@ -100,8 +98,7 @@ traffic with "candump" command which is included in "can-utils". candump can0 CTU CAN FD support examples -=========================== - +--------------------------- This open-source core provides CAN FD support. CAN FD drames are delivered even to the host systems when SocketCAN interface is found CAN FD capable.
@@ -170,7 +167,7 @@ The test can be run viceversa, generate messages in the guest system and capture in the host one and much more combinations. Links to other resources -======================== +------------------------ (1) CAN related projects at Czech Technical University, Faculty of Electrical Engineering http://canbus.pages.fel.cvut.cz/
@@ -196,3 +193,4 @@ Links to other resources http://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/driver_doc/ctucanfd-driver.html (11) Integration with PCIe interfacing for Intel/Altera Cyclone IV based board https://gitlab.fel.cvut.cz/canbus/pcie-ctu_can_fd +
docs/index.rst +1 -0
@@ -18,3 +18,4 @@ Welcome to QEMU's documentation! interop/index specs/index devel/index + can
--
2.32.0
Quoted 1 line · On 17/12/2021 22.21, [email protected] wrote:
From: Lucas Ramage <[email protected]>
Hi!
Thanks for your patch! This looks like a good idea, but I think there are some minor issues which should be fixed...
First: Please check your mailer setup. The mail has been sent via @gmx.us, but the Signed-off-by uses @infinite-omicron.com ... not a big issue, I guess, but it might be better to use the same address for both.
Second, it does not work here, at least not with Sphinx 1.7 which I have installed on my system:
docs/can.rst:39:Enumerated list ends without a blank line; unexpected unindent.
Does this render correctly on your system?
Also there are paragraphs in this file which should be clearly marked as pre-formatted text (use "::" for those), e.g.:
docs/can.rst +1 -1
@@ -122,7 +125,7 @@ is setup according to the previous SJA1000 section. -device ctucan_pci,canbus0=canbus0-bus,canbus1=canbus0-bus \ -nographic -Setup of CTU CAN FD controller in a guest Linux system +Setup of CTU CAN FD controller in a guest Linux system:: insmod ctucanfd.ko || modprobe ctucanfd insmod ctucanfd_pci.ko || modprobe ctucanfd_pci
Quoted 1 line
Please use "Buglink:" instead, it's more common in the QEMU project.
Quoted 3 lines
Signed-off-by Lucas Ramage <[email protected]>--- docs/{can.txt => can.rst} | 14 ++++++--------
While you're at it, I think this file should be moved into one of the subfolders as well, likely docs/system/ I guess.
Quoted 11 lines
docs/index.rst | 1 + 2 files changed, 7 insertions(+), 8 deletions(-)rename
docs/{can.txt=>can.rst} (97%)docs/can.rst renamed from docs/can.txt +0
-0
[...]
docs/can.rst Links to other resources · line 196
Quoted 5 lines
docs/can.rst renamed from docs/can.txt +1
-0@@ -196,3 +193,4 @@ Links to other resources http://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/driver_doc/ctucanfd-driver.html (11) Integration with PCIe interfacing for Intel/Altera Cyclone IV based board https://gitlab.fel.cvut.cz/canbus/pcie-ctu_can_fd +
This look like an unnecessary addition of an empty line.
Quoted 10 lines
docs/index.rst +1
-1@@ -18,3 +18,4 @@ Welcome to QEMU's documentation! interop/index specs/index devel/index + can --
Quoted 3 lines
2.32.0
Thomas
Hi Thomas,
I intentionally sent the email via my gmx address. But I want my commit under the infinite-omicron email address.
I had a few warnings on my end, but it builds fine with Sphinx v3.4.3 on Debian Bullseye. I can clean up the warnings in the new patch.
Yeah, it renders fine.
Let me submit a new patch for the rest of these changes too.
Regards,
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Quoted 120 lines · Thomas Huth
Quoted 1 line · On 17/12/2021 22.21, [email protected] wrote:
From: Lucas Ramage [email protected]
Hi!
Thanks for your patch! This looks like a good idea, but I think there are
some minor issues which should be fixed...
First: Please check your mailer setup. The mail has been sent via @gmx.us,
but the Signed-off-by uses @infinite-omicron.com ... not a big issue, I
guess, but it might be better to use the same address for both.
Second, it does not work here, at least not with Sphinx 1.7 which I have
installed on my system:
docs/can.rst:39:Enumerated list ends without a blank line;
unexpected unindent.
Does this render correctly on your system?
Also there are paragraphs in this file which should be clearly marked as
pre-formatted text (use "::" for those), e.g.:
docs/can.rst +2
-4--- a/docs/can.rst +++ b/docs/can.rst@@ -122,7 +125,7 @@ is setup according to the previous SJA1000 section. -device ctucan_pci,canbus0=canbus0-bus,canbus1=canbus0-bus \ -nographic -Setup of CTU CAN FD controller in a guest Linux system +Setup of CTU CAN FD controller in a guest Linux system::insmod ctucanfd.ko || modprobe ctucanfd
insmod ctucanfd_pci.ko || modprobe
ctucanfd_pciQuoted 1 line
Please use "Buglink:" instead, it's more common in the QEMU project.
Quoted 4 lines
Signed-off-by Lucas Ramage [email protected]-------------------------------------------------------------
docs/{can.txt=>can.rst} | 14 ++++++--------While you're at it, I think this file should be moved into one of the
subfolders as well, likely docs/system/ I guess.
Quoted 19 lines
docs/index.rst| 1 +2 files changed, 7 insertions(+), 8 deletions(-)rename
docs/{can.txt=>can.rst} (97%)docs/can.rst renamed from docs/can.txt +0
-0similarity index 97%
rename from
docs/can.txtrename to
docs/can.rstindex
0d310237df..995134d079100644---
a/docs/can.txt+++
b/docs/can.rst[...]
Quoted 9 lines
docs/can.rst renamed from docs/can.txt +0
-0@@ -196,3 +193,4 @@ Links to other resourceshttp://canbus.pages.fel.cvut.cz/ctucanfd_ip_core/driver_doc/ctucanfd-driver.html
(11) Integration with PCIe interfacing for Intel/Altera Cyclone IV based board
https://gitlab.fel.cvut.cz/canbus/pcie-ctu_can_fd
+
This look like an unnecessary addition of an empty line.
Quoted 14 lines
docs/index.rst +0
-0index
0b9ee9901d..beb868ca7f100644---
a/docs/index.rst+++
b/docs/index.rstdocs/index.rst +0
-0@@ -18,3 +18,4 @@ Welcome to QEMU's documentation!interop/index
specs/index
Quoted 7 lines
devel/index
- can
-- 2.32.0Thomas
Quoted 5 lines · Lucas Ramage
Hi Thomas,
I intentionally sent the email via my gmx address. But I want my commit under the infinite-omicron email address.
I had a few warnings on my end, but it builds fine with Sphinx v3.4.3 on Debian Bullseye. I can clean up the warnings in the new patch.
Yes, please do so. If you add "--enable-werror" to your "configure" options, the warnings should be turned into errors as well - and that's what we do in our CI, so the warnings have to be fixed first before this patch can be included.
Thanks,
Thomas
Hi Thomas,
Not sure if you saw my latest patch, but I fixed all of the warnings already.
I also updated the references at the bottom to use inline web links.
Regards,
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
Quoted 19 lines · Thomas Huth
Quoted 5 lines · Lucas Ramage
Hi Thomas,
I intentionally sent the email via my gmx address. But I want my commit under the infinite-omicron email address.
I had a few warnings on my end, but it builds fine with Sphinx v3.4.3 on Debian Bullseye. I can clean up the warnings in the new patch.
Yes, please do so. If you add "--enable-werror" to your "configure" options,
the warnings should be turned into errors as well - and that's what we do in
our CI, so the warnings have to be fixed first before this patch can be
included.
Thanks,
Thomas