Skip to contentSkip to conversation

Documentation: typec.rst: Use literal-block element with ascii art

PATCH In review Heikki Krogerus 4 participants 5 messages Apr 6, 2018 – Apr 25, 2018

Subsystems (3)
lore
Share & tools
lore

Heikki Krogerus

author maintainer
#0 lore raw

PATCH v2 1/1 Documentation: typec.rst: Use literal-block element with ascii art

Using reStructuredText literal-block element with ascii-art. That prevents the ascii art from being processed as reStructuredText.

Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")

---
Changed since v1:
- Using literal-block element instead of comment
- Subject in v1 was "Documentation: typec.rst: Mark ascii art as a comment"

---
 Documentation/driver-api/usb/typec.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/usb/typec.rst +1 -1
index feb31946490b..48ff58095f11 100644
@@ -210,7 +210,7 @@ If the connector is dual-role capable, there may also be a switch for the data
 role. USB Type-C Connector Class does not supply separate API for them. The
 port drivers can use USB Role Class API with those.
 
-Illustration of the muxes behind a connector that supports an alternate mode:
+Illustration of the muxes behind a connector that supports an alternate mode::
 
                      ------------------------
                      |       Connector      |
#1 lore raw
Quoted 7 lines · Heikki Krogerus

Using reStructuredText literal-block element with ascii-art. That prevents the ascii art from being processed as reStructuredText.

Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")
Reviewed-and-tested-by Jani Nikula <[email protected]>
Quoted 21 lines

---
Changed since v1:
- Using literal-block element instead of comment
- Subject in v1 was "Documentation: typec.rst: Mark ascii art as a comment"

---
 Documentation/driver-api/usb/typec.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/usb/typec.rst +1 -1
index feb31946490b..48ff58095f11 100644
@@ -210,7 +210,7 @@ If the connector is dual-role capable, there may also be a switch for the data
 role. USB Type-C Connector Class does not supply separate API for them. The
 port drivers can use USB Role Class API with those.
 
-Illustration of the muxes behind a connector that supports an alternate mode:
+Illustration of the muxes behind a connector that supports an alternate mode::
 
                      ------------------------
                      |       Connector      |
Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
#2 lore raw
In reply to Heikki Krogerus
Quoted 7 lines · Heikki Krogerus

Using reStructuredText literal-block element with ascii-art. That prevents the ascii art from being processed as reStructuredText.

Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")

Jon, this fixes a documentation build failure in v4.17-rc1. It's not just a warning, it's a complete fail. Our docs builder at 01.org is failing, apparently the same at kernel.org. Please pick it up soon.

Thanks,
Jani.

Quoted 21 lines

---
Changed since v1:
- Using literal-block element instead of comment
- Subject in v1 was "Documentation: typec.rst: Mark ascii art as a comment"

---
 Documentation/driver-api/usb/typec.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/usb/typec.rst +1 -1
index feb31946490b..48ff58095f11 100644
@@ -210,7 +210,7 @@ If the connector is dual-role capable, there may also be a switch for the data
 role. USB Type-C Connector Class does not supply separate API for them. The
 port drivers can use USB Role Class API with those.
 
-Illustration of the muxes behind a connector that supports an alternate mode:
+Illustration of the muxes behind a connector that supports an alternate mode::
 
                      ------------------------
                      |       Connector      |
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center
--
To unsubscribe from this list: send the line "unsubscribe linux-doc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#3 lore raw
Quoted 5 lines · On Wed, 25 Apr 2018 16:47:01 +0300 Jani Nikula <[email protected]>…
Quoted 4 lines · Heikki Krogerus

Using reStructuredText literal-block element with ascii-art. That prevents the ascii art from being processed as reStructuredText.

Quoted 7 lines
Quoted 3 lines
Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")

Jon, this fixes a documentation build failure in v4.17-rc1. It's not just a warning, it's a complete fail. Our docs builder at 01.org is failing, apparently the same at kernel.org. Please pick it up soon.

Sorry, I'd seen the attached and was assuming Greg would ship it Linusward. I'll get it upstream soon.

jon

From: Greg KH <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: [PATCH] Documentation: fix reST markup error in driver-api/usb/typec.rst
Date: Sun, 8 Apr 2018 09:19:58 +0200
Sender: [email protected]

Quoted 14 lines · On Sun, Apr 08, 2018 at 10:47:12AM +0800, [email protected] wrote:

From: Changbin Du <[email protected]>

There is an format error in driver-api/usb/typec.rst that breaks sphinx docs building.

reST markup error:
/home/changbin/work/linux/Documentation/driver-api/usb/typec.rst:215: (SEVERE/4) Unexpected section title or transition.

------------------------
Documentation/Makefile:68: recipe for target 'htmldocs' failed make[1]: *** [htmldocs] Error 1
Makefile:1527: recipe for target 'htmldocs' failed
make: *** [htmldocs] Error 2

Quoted 4 lines
---
 Documentation/driver-api/usb/typec.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)  

Thanks, someone else already sent this, sorry. I'll be sending it onward after 4.17-rc1 is out.

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

maintainer
#4 lore raw
In reply to Jani Nikula
Quoted 5 lines · Jani Nikula
Quoted 4 lines · Heikki Krogerus

Using reStructuredText literal-block element with ascii-art. That prevents the ascii art from being processed as reStructuredText.

Quoted 7 lines
Quoted 3 lines
Fixes bdecb33af34f ("usb: typec: API for controlling USB Type-C Multiplexers")

Jon, this fixes a documentation build failure in v4.17-rc1. It's not just a warning, it's a complete fail. Our docs builder at 01.org is failing, apparently the same at kernel.org. Please pick it up soon.

This is in my tree, will go to Linus in a day or so.

thanks,

greg k-h
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html