[PATCH] docs: render <span class="literal"> with monospace font

Daniel P. Berrangé berrange at redhat.com
Thu Feb 6 15:14:29 UTC 2020


On Thu, Feb 06, 2020 at 04:00:56PM +0100, Ján Tomko wrote:
> On Thu, Feb 06, 2020 at 01:05:18PM +0000, Daniel P. Berrangé wrote:
> > When using ``....`` in RST, this results in <span class="literal">...</span>
> 
> Same for me [0], however it shows up as <tt class="literal"> on the libvirt
> website.

Oh because Fedora uses HTML5, but our configure script is set to
fallback to the HTML4 generator on older docutils.

I'll  extend the CSS to cover 'tt' too

> 
> > instead of <code>...</code>. We thus need an extra rule to render it
> > with a monospace font. Colouring a light gray also helps the text
> > stand out a little more and matches background of <pre> blocks.
> > 
> > Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> > ---
> > docs/libvirt.css | 5 +++++
> > 1 file changed, 5 insertions(+)
> > 
> 
> Reviewed-by: Ján Tomko <jtomko at redhat.com>
> 
> Jano
> 
> [0] python3-docutils-0.14-6.fc30.noarch



Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list