Code Monkey home page Code Monkey logo

Comments (3)

xmo-odoo avatar xmo-odoo commented on August 27, 2024

Aye, I think we did not port odoo/odoo@2b28dd8 here so the "user" documentation currently isn't compatible with Sphinx 2.

In the meantime, use Sphinx 1.8

/cc @mart-e also @Julien00859 reported more / different errors so it's possible that Sphinx 2.2 further altered their API and we'd have some more changes to make.

from documentation.

Julien00859 avatar Julien00859 commented on August 27, 2024

Here is the complete output on my laptop.

Odoo v12, sphinx 1.8

(odoo-venv) [12.0] ~/Projects/odoo-community/doc » ~/Projects/odoo-venv/bin/sphinx-build --version
sphinx-build 1.8.5
(odoo-venv) [12.0] ~/Projects/odoo-community/doc » make clean html
rm -rf _build/*
sphinx-build -b html -d _build/doctrees  -q -t solutions . _build/html
WARNING: Could not lex literal_block as "xml+django". Highlighting skipped.
WARNING: Could not lex literal_block as "xml". Highlighting skipped.
WARNING: Could not lex literal_block as "xml". Highlighting skipped.

Build finished. The HTML pages are in _build/html.

Odoo master, sphinx 1.8

(odoo-venv) [master] ~/Projects/odoo-community/doc » make clean html    
rm -rf _build/*
sphinx-build -b html -d _build/doctrees  -q -t solutions . _build/html
/home/julien/Projects/odoo-community/doc/reference/data.rst:252: WARNING: Error with CSV data in "csv-table" directive:
',' expected after '"'

.. csv-table::
    :file: ../../odoo/addons/base/data/res.country.state.csv
    :header-rows: 1
    :class: table-striped table-hover table-condensed
WARNING: missing attribute mentioned in :members: or __all__: module odoo.api, attribute 
WARNING: Could not lex literal_block as "xml+django". Highlighting skipped.
WARNING: Could not lex literal_block as "xml". Highlighting skipped.
WARNING: Could not lex literal_block as "xml". Highlighting skipped.
WARNING: Could not lex literal_block as "xml". Highlighting skipped.

Build finished. The HTML pages are in _build/html.

Odoo master, sphinx 2.2

(odoo-venv) [master] ~/Projects/odoo-community/doc » pip install -U sphinx
Installing collected packages: sphinx
  Found existing installation: Sphinx 1.8.5
    Uninstalling Sphinx-1.8.5:
      Successfully uninstalled Sphinx-1.8.5
Successfully installed sphinx-2.2.0
(odoo-venv) [master] ~/Projects/odoo-community/doc » make clean html      
rm -rf _build/*
sphinx-build -b html -d _build/doctrees  -q -t solutions . _build/html
/home/julien/Projects/odoo-community/doc/reference/data.rst:252: WARNING: Error with CSV data in "csv-table" directive:
',' expected after '"'

.. csv-table::
    :file: ../../odoo/addons/base/data/res.country.state.csv
    :header-rows: 1
    :class: table-striped table-hover table-condensed
WARNING: missing attribute mentioned in :members: or __all__: module odoo.api, attribute 

Exception occurred:
  File "/home/julien/Projects/odoo-venv/lib/python3.6/site-packages/sphinx/ext/todo.py", line 290, in visit_todo_node
    if self.config.todo_include_todos:
AttributeError: 'BootstrapTranslator' object has no attribute 'config'
The full traceback has been saved in /tmp/sphinx-err-di_yyje6.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Makefile:52: recipe for target 'html' failed
make: *** [html] Error 2

As suggested, it works fine with pip install -U 'sphinx==1.8.5

from documentation.

rim-odoo avatar rim-odoo commented on August 27, 2024

On my machine (ArchLinux)

~$ sphinx-build --version
sphinx-build 2.2.0
~$ sphinx-build2 --version
sphinx-build2 1.8.5

therefore I can force the version to the Makefile like this

make html SPHINXBUILD=sphinx-build2

from documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.