horizon-eda / horizon-docs

Creative Commons Attribution Share Alike 4.0 International
7 stars 15 forks source link

Building the documentation locally #3

Closed atoav closed 5 years ago

atoav commented 5 years ago

I am trying to build the documentation locally, so I can get a preview of what I am working on. I am just getting familiar with sphinx, so maybe this is my own fault, or some version incompatibility I use:

>>> sphinx.version_info
(1, 6, 7, 'final', 0)

What I tried

What I suspect

If we sort this out, we might add some info on how to build this documentation locally to the Readme, to make further contribution easier.


¹ this is apparently due to the fact that Sphinx changed this in Changed in version 2.0: The default is changed to 'index' from 'contents'. So I assume you use version 1.something

atoav commented 5 years ago

Okay the sphinx installed by apt-get install python-sphinx shows the same problems.

Edit: weird – when I delete the line with :caption: Contents: on it, and use my own conf.py it works. Although the documentation for sphinx clearly states this is using :caption: is possible...

carrotIndustries commented 5 years ago

I just added my conf.py and Makefile. With sphinx installted, make html should be all you need to build the docs. I'm using

$ sphinx-build --version
sphinx-build 2.0.1