Comments (3)
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.
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.
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)
- UncaughtPromiseError > TypeError Uncaught Promise > Cannot read properties of undefined (reading 'odooEditor') TypeError: Cannot read properties of undefined (reading 'odooEditor') at ReportEditorWysiwyg.discard (https://abdo21.odoo.com/web/assets/492852c/web_studio.studio_assets.min.js:362:30) at Object.mainEventHandler (https://abdo21.odoo.com/web/assets/e548ec7/web.assets_web.min.js:1582:77) at HTMLButtonElement.listener (https://abdo21.odoo.com/web/assets/e548ec7/web.assets_web.min.js:757:15) HOT 1
- Omission in External API documentation for ODOO 17 HOT 7
- [17.0+e] [SAAS] Wrong documentation for internal transfer HOT 2
- no German translation for Odoo 17 Documentation available HOT 1
- Whatsapp on Odoo Community 17 HOT 3
- [15.0+] Missing group node inside notebook page nodes HOT 1
- Missing video in 03_newapp.rst HOT 2
- Missing docs for `any` search domain operator in 17.0 HOT 1
- Not find repository HOT 1
- Url is unavailable HOT 1
- Accounting of salary slip payment is not documented HOT 3
- Inner content snippet cannot be placed HOT 5
- V17 Problem with JavaScript HOT 10
- Address View not documented anywhere
- remote: Support for password authentication was removed on August 13, 2021. HOT 3
- Loyalty Cards since version 16 are applied on current order or future, not on future only HOT 2
- Create a standalone Owl application
- Redirect is not a function
- The link is broken and redirects to a 404 page from version 14 to version 17 HOT 3
- [Feedback] Config file documentation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from documentation.