Commit Graph

13 Commits

Author SHA1 Message Date
Arnaud Joset
a0f6d3e925 [IMP] technical: allow building with Python 3 and Sphinx 2.4.0
This commit updates the requirements of the documentation to Python 3 and Sphinx 2.4.0 and later.
2020-02-20 11:01:03 +01:00
Antoine Vandevenne (anv)
1081f8b7b5 [REV] Revert dbba515 to 8678876
Reason: delay changes until internal build tools are updated
2020-02-12 15:01:08 +01:00
Arnaud Joset
dbba515566 [IMP] technical: allow building with Python3 and Sphinx 2.X
Before this commit, sphinx-build could not be used with Python3 and Sphinx 2.X.
2020-02-12 10:41:48 +01:00
Martin Trigaux
f7cb30b6d8 [FIX] _extension: complete monkeypatch in sphinx 1.6
The monkey patch made for sphinx 1.6 was not complete. In comparison
to the one done for previous versions (resolve_toctree), navbarify was
not called.

In the toctree, the sub-levels were turned into a link in 1.6 while
navbarify prevents this.
2019-11-05 15:02:06 +01:00
Xavier Morel
da7f9932cc [FIX] odoo: compatibility sphinx2
Cherry-pick of odoo/odoo@2b28dd89b8
2019-07-01 18:05:00 +02:00
Xavier Morel
63a615bc67 [FIX] port db0cb1b09237b2e004c7a7eceadedde668f4ac30 from tech doc
fix Sphinx 1.6 compatibility leading to the "tiles" on the home page
not working anymore: 1.6 replaces BuildEnvironment.reolve_toctree by
TocTree().resolve(), while the method still exists it's not actually
called anymore
2018-05-31 16:04:46 +02:00
xmo-odoo
95b64ca2de Fix custom translator setup
Programmatically setting html_translator_class is apparently broken in
Sphinx 1.5 (which sorta makes sense, it's a bit of a hack, I'm not sure
why we even did that instead of going through the configuration object).
2017-04-25 16:18:26 +02:00
Xavier Morel
e2204cdd72 [FIX] 1.2 compatibility
app.add_node doesn't work right for custom translators in 1.2, since
mementos are using ``h:div`` reimplement that in the
BootstrapTranslator.

Alternative would be to monkeypatch app.add_node for Sphinx 1.2, but
let's not do that...
2015-11-20 11:37:57 +01:00
Martin Trigaux
3929109f8a Revert "[FIX] doc: odoo theme so it's compatible with Sphinx 1.2 / 1.3"
This reverts commit 8151a78aed.

This breaks accounting memento, will figure out later a proper fix
2015-11-09 11:06:07 +01:00
Thibault Delavallée
8151a78aed [FIX] doc: odoo theme so it's compatible with Sphinx 1.2 / 1.3
Sphinx.set_translator is a Sphinx 1.3 API, and we only require Sphinx
1.2 at this point. Replace the use of set_translator with explicitly
setting the html_translator_class config setting.

Coming from the Odoo technical documentation, fix done by @xmo-odoo. See
odoo/odoo/commit/a139d81c46b669fa9186ceaf2a0ca43fb0601e1c.
2015-11-04 11:45:55 +01:00
Xavier Morel
0e58ae3ee0 [IMP] make application TOC toplevel look like subtitles 2015-07-20 13:43:28 +02:00
Xavier Morel
c4e798e970 [ADD] demo/POC functional documentation
* by-application (odoo-wise) grouping
* use part of the accounting TOC defined on pad
* support for "internal" tocs & fixup front toc
* various changes and improvements to extensions

May be missing: inherited document banners?
2015-07-09 11:49:42 +02:00
Xavier Morel
705e0d56b2 [CHG] initial port to new theme 2015-07-08 13:24:24 +02:00