literalinclude and absolute paths to files on Linux

88 views Asked by At

I would like to use Sphinx to document the changes I do to my Ubuntu installation, such as network configuration, apache site configuration, supporting scripts etc.

In order to do this I would like to have literalinclude access the system / structure, in the same way as this is possible under Windows using something like

.. literalinclude:: C:\Users\XYZ\Desktop\sphinx\legacy\scripts\xyz_00.sh
   :language: bash
   :linenos:
   :lineno-match:
   :start-after: # LOG START
   :end-before: # LOG END
   :emphasize-lines: 10-13

Is there any way to do this? An alternative perspective on the task?

I thought about including a symbolic link to system / under the source home but ... it seems neverending as I guess it traverses the whole system.

0

There are 0 answers