DuyguKeskek
DuyguKeskek

Reputation: 343

Sphinx adding background image

I'm new to Sphinx docs generator and I want to add a background image to the website. How can I handle that ? I tried to put the bg image to the static folder and tried adding it to the css but it still doesn't appear.

Upvotes: 1

Views: 938

Answers (1)

errata
errata

Reputation: 6041

If you want to add image you can use image directive, for example:

.. image:: _static/path/to/your/image.png
   :scale: 10 %
   :align: left
   :class: intro-logo

Since you can add class to it, you can modify your style directly in CSS.

Also, be sure that you defined your static folder in conf.py:

html_static_path = ['_static']

Upvotes: 1

Related Questions