I use this kind of directory structure:
project folder
source
images
In "source" I have all my .rst files.
In "images" I have all my graphics.
To include an image in an .rst file I use syntax like this:
.. image:: images/gui_alerts.png
:alt: Alerts settings page
:width: 800 px
Have you tried using the .. notation to navigate up to the other folder and
then down?
I would guess something like this:
.. image:: ../../media/fig1.png
Try a web search for command line navigation if you are unfamiliar with how
to navigate directories in a UNIX/Linux environment.
On Tuesday, June 21, 2016 at 8:17:36 AM UTC-4, fabien leboeuf wrote:
>
> Hi
>
> It s quite a simple question, but i struggle finding an answer
>
> I want to place all image in a media folder, and text separataly. But i
> don t know the syntax to call my image in the rst doc.
> I have this folder tree
> - ProjectFolder
> - media
> >fig1.png
> - folder1
> - subfolder 1
> > text.rst
>
> how can i call fig1.png in text.rst ?
> Do i have to use a parent path syntax necessiraly
> or
> does the Project path store anywhere in a config file ?
>
> cheers
>
>
>
>
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.