Commit Graph

10 Commits

Author SHA1 Message Date
Xavier Morel 92d1ecdefb [IMP] doc: note about XMLRPC + Odoo Online
Also added some styling for guilabel as it was indistinguishable from
regular body text.
2015-10-08 12:03:01 +02:00
Xavier Morel a139d81c46 [FIX] doc: odoo theme so it's compatible with Sphinx 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.
2015-09-15 16:06:13 +02:00
Xavier Morel 2474a91bc9 [IMP] doc: recommend not using @api.one
* alter docstring of @api.one to mark it as deprecated for 9.0,
  recommend using @api.multi instead
  - deprecation notes were not correctly styled, add styling
    matching "warning" alerts
* move @api.one down the doc page to deemphasize it
* fix "backend" tutorial to remove all instances of ``@api.one``

closes #8527
2015-09-15 14:38:45 +02:00
Xavier Morel 610f6fdafe [IMP] doc: support for image centering
Also handle (and ignore) substitution definition nodes.
2015-07-10 11:57:06 +02:00
Xavier Morel f94a667ed1 [IMP] doc: handling of toc outside master_doc
* remove local toc sidebar in non-index documents with a toctree
* change toctree rendering to only have links on leaf nodes (don't link
  to intermediate toctree'd documents)
2015-07-09 11:11:08 +02:00
Xavier Morel 5f768ed5b3 [IMP] doc: don't limit width of pages with code column 2015-07-08 13:06:11 +02:00
Xavier Morel c97cb35086 [FIX] doc: prevent compacting paragraphs with custom classes 2015-07-08 13:06:11 +02:00
Xavier Morel 9beaeddf60 [FIX] doc: new theme snags
* fix handling of no banner (and no default banner) on documents:
  - don't try to build a banner URL at the top of document
  - don't build a mini-banner in cards
* fix compatibility between custom HTML translator and domains creating
  new nodes (and their rendering): hook translator via
  app.add_translator so app.add_node can do the job correctly: with
  html_translator_class the application is not aware of the new HTML
  translator and add_node can't add the relevant rendering methods
* add translation for line_block and line (classes not used, point is
  just to have a div for each line so "newlines" are kept
2015-07-08 13:06:10 +02:00
Xavier Morel 41ee29119d [REM] doc: unnecessary sidebar title/heading 2015-07-07 16:31:48 +02:00
Xavier Morel 95e56a109d [ADD] doc: new theme
Pretty much completely rewritten theme with custom HTML translator and a
few parts of the old theme extracted to their own extensions.

Banner images thought not to be that huge after all, and not worth the
hassle of them living in a different repository.

co-authored with @stefanorigano
2015-07-07 11:22:50 +02:00