From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mauro Carvalho Chehab Subject: Re: [PATCH] docs-rst: automatically convert Graphviz and SVG images Date: Thu, 2 Mar 2017 18:47:00 -0300 Message-ID: <20170302184700.16f55cfc@vento.lan> References: <20170302151638.1882-2-daniel.vetter@ffwll.ch> <20170302154002.4552-1-daniel.vetter@ffwll.ch> <20170302182939.12204fc6@vento.lan> <20170302183631.1e3f79ce@vento.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20170302183631.1e3f79ce@vento.lan> Sender: linux-doc-owner@vger.kernel.org To: Daniel Vetter , Daniel Vetter Cc: linux-doc@vger.kernel.org, DRI Development , Markus Heiser , Jonathan Corbet , Jani Nikula , Laurent Pinchart List-Id: dri-devel@lists.freedesktop.org Em Thu, 2 Mar 2017 18:36:31 -0300 Mauro Carvalho Chehab escreveu: > > Found another issue on the patch. The HTML output is pointing to the > > wrong place: instead of using a relative patch, it is keeping > > an absolute one. > > > > This is what it produced from Documentation/media/uapi/v4l/dev-subdev.rst: > > > >
> > pipeline.dot

Image Format Negotiation on Pipelines

> >
> > High quality and high speed pipeline configuration
> >
> > > > There, the "src=" is pointing to the full patch, with doesn't work, as > > my html server uses a different patch to find the file. It should, > > instead, use a patch relative to the place where the html file is > > stored, e. g. in this case, either: > > ./pipeline.svg > > or just: > > pipeline.svg > > Btw, PDF conversion is also not working: > > > File "/d00/kernel/Documentation/sphinx/kfigure.py", line 241, in svg2pdf > cmd = [convert_cmd, svg_fname, pdf_fname] > > NameError: name 'convert_cmd' is not defined > > And including SVG files for HTML output also seems to be problematic. Forgot to mention, but I'm using here Sphinx 1.4.9, installed via pip3 (So, python3). > > I'll post the RFCv2 patch that I'm using to test it. Patch posted. Hopefully, it will help you to see the problems I'm facing on my tests. Thanks, Mauro