Commit Graph
55 Commits
Author SHA1 Message Date
Xavier Morel 38b919251e [REM] doc: autodoc of removed api.* decorators
* @one was removed in 407f1f6cdb
* @v7 and @v8 were removed in c552fb7a61
* @multi was removed in a8767716cf
2019-07-30 09:29:28 +00:00
Xavier Morel f7e1f0645e [IMP] doc: PYTHONPATH configuration
Previously we'd `append` the extensions and odoo parent directories to
sys.path, however this means if an `odoo` is already installed in a
sys.path (e.g. global installation, or setup.py develop in a venv,
...) *that* will be used as the source of Python code (for autodoc)
instead of the Python source being synchronised with the rst, which
can lead to very odd behaviour.

Prepend the doc's stuff to the PYTHONPATH instead, to ensure they get
priority and the code matching the rst gets loaded.
2019-02-18 08:56:07 +00:00
Christophe Simonis c8ace043e5 [MERGE] forward port branch saas-11.3 up to 387d5cff90
closes odoo/odoo#30566
2019-01-25 17:29:34 +00:00
Xavier Morel cadefebd18 [REM] doc: outdated intersphinx mappings
ea6e7379a3 removed the few intersphinx
refs to sqlalchemy & django, so these mappings have not been necessary
in a year. This is especially annoying as the currently configured
sqlalchemy mapping has been very flaky / regularly failing.

Remove the mappings entirely.

closes odoo/odoo#30397
2019-01-21 10:11:32 +00:00
Martin Trigaux 2e6c071e9f [FIX] doc: set version for version dropdown
The version number is used in the version dropdown in the the switcher_list.html
file as well as in the page title
2018-09-26 13:46:51 +02:00
Martin Trigaux 583066f19e [FIX] doc: correct doc version
As now published at https://www.odoo.com/documentation/master/
2018-04-19 13:33:47 +02:00
Xavier Morel db0cb1b092 [FIX] doc: various
* 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
* rejigger some CSS as the second section went from one big tile to 3
  smaller tiles, and got laid out as a row rather than a second 2x2
  block. Recode the entire mess with flexbox, remove some stuff which
  conflicted with boostrap (this screen should probably be
  de-boostrapped and completely converted to flexbox or grid)
* add building CSS from LESS to the makefile, all Odoo devs should
  have less installed locally (for assets)
2017-10-12 15:11:26 +02:00
Martin Trigaux f5b2a4b0f2 [FIX] doc: update to version 11
Use python 3.5
Refer to correct page of the doc
Remove old bazar to git (was intended for the 8.0)

Remove outdated setup_dev script: it was intended for odoo developers but if you
are not able to make a git clone, you are going to have a bad time later.
2017-10-11 11:38:36 +02:00
Xavier Morel 313f69e948 [ADD] doc: JS document extraction system
* Fix a bunch of ill-documented/incomplete/incorrect method docs
* add start of Sphinx extension to extract & integrate jsdoc into
  Sphinx documentation:

  - parse JS files (and don't blow up), uses a fork of pyjsparser as
    the project currently does not parse comments
  - extract cross-module dependency information
  - parse JsDoc comments using pyjsdoc and infer structure from code &
    jsdoc
  - ``ast`` CLI printing a simplified AST of the input files
  - ``dependencies`` creating a dependency graph of either all modules
    in the provided input files or the modules matching the specified
    filters (warning: will not work if missing dependencies),
    generates a .dot file
  - ``extractor`` generating a plain text module documentation (mix of
    rst and markdown styles, not anything formal)
* sphinx extension with an "automodule" directive taking a module name
  and generating the documentation for it
2017-09-18 11:54:36 +02:00
Martin Trigaux 411f82081b [REM] doc: remove the accounting memento from technical doc
Will be moved to odoo/documentation-user repository

cf task id 34230
2017-06-16 16:25:37 +02:00
Martin Trigaux 731fe1c9ab [FIX] doc: avoid conflict on extenstion and odoo folder 2016-10-11 12:09:28 +02:00
Martin Trigaux ca43594a0d [FIX] doc: rename current branch name in configuration
It is used in the version switcher
2016-09-22 11:32:23 +02:00
Christophe Simonis 4a2aee45be [MERGE] forward port of branch 8.0 up to 9654b54 2015-07-10 17:12:57 +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
Christophe Simonis fe92deaa1d [MERGE] forward port of branch 8.0 up to 2de301d 2015-07-07 18:13:57 +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
Christophe Simonis 3206a35aed [MERGE] forward port of branch 8.0 up to 8ac8281 2015-04-13 12:07:58 +02:00
Xavier Morel a6493f77af [IMP] fix links to business mementoes
* rename functional -> business
* fix navbarification of main toctree: would stop processing after it
  hit the first toc item without children, and the business links (with
  children) follow the web service toc item (without children)
2015-04-09 10:29:38 +02:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Christophe Simonis 1d3f8eba87 [MERGE] forward port of branch 8.0 up to 591e329 2014-12-02 16:18:08 +01:00
Xavier Morel 8fb2c06a47 [CHG] doc: company officially renamed 2014-11-24 09:05:23 +01:00
Jeremy Kersten 86c634965e [MERGE] forward port of branch 8.0 up to 5ed0739 2014-11-18 10:40:59 +01:00
Xavier Morel 5ed0739e73 [FIX] doc: latex building
* add latex support for exercise admonition
* latex freezes/crashes on {HEAVY WIDE-HEADED RIGHTWARDS ARROW} so
  replace them by more manual arrows
* add some preamble configuration, may not even be necessary
* generate WS setup code only in HTML output. WS doc in latex still
  isn't great as it displays all 4 languages one after the other,
  ideally they should be tagged or something, so only one language at a
  time is generated in non-HTML outputs
2014-11-17 17:43:26 +01:00
Christophe Simonis 5068cffbb0 [MERGE] forward port of branch 8.0 up to 491372e 2014-11-05 20:30:40 +01:00
Xavier Morel 63e1afc5fd [IMP] doc: add link to company website in footer, fix release version 2014-10-31 09:34:55 +01:00
Christophe Simonis cf23a5deda [MERGE] forward port of branch 8.0 up to 92c7874 2014-10-29 19:45:09 +01:00
Xavier Morel 28a69fa250 [ADD] doc: support for analytics keys 2014-10-29 15:53:41 +01:00
Christophe Simonis a42167d085 [MERGE] forward port of branch 8.0 up to 262eb66 2014-10-21 14:59:56 +02:00
Xavier Morel ed18ab7649 [ADD] doc: basic index page instead of something completely blank 2014-10-20 10:00:20 +02:00
Christophe Simonis 52fee2811d [MERGE] forward port of branch 8.0 up to 2b192be 2014-10-16 16:04:39 +02:00
Xavier Morel 393331f948 [FIX] sphinx 'project' value
The project name automatically gets the release and the literal string
"documentation" appended by default (and "html_title" can be set to generate a
title differently), so having "documentation" set in the project variable
duplicates it in the page title.
2014-10-07 10:22:53 +02:00
Xavier Morel 62c9589485 [ADD] port webclient RPC doc from web/doc 2014-10-07 10:22:53 +02:00
xmo-odoo 2e31aa4bf8 [FIX] doc: branch name in configuration
The branch name is used in the version switcher, so the master branch should have a version of "master".

Maybe the release could be the revision hash? Not sure how to extract it from the repo.
2014-10-01 15:21:47 +02:00
xmo-odoo e7422b2f3a [REVERT] typo 2014-10-01 15:19:20 +02:00
xmo-odoo a1eacb9054 [FIX] doc: branch name in configuration
The branch name is used in the version switcher, so the master branch should have a version of "master".

Maybe the release could be the revision hash? Not sure how to extract it from the repo.
2014-10-01 15:02:20 +02:00
Xavier Morel bb007dd040 [ADD] support for a version switcher in odoo theme thing
needs beauty input
2014-09-04 14:43:55 +02:00
Xavier Morel 39208e1f42 [ADD] doc's readme
* also only enable linkcode if Sphinx >= 1.2
* fix html inline roles?
2014-09-04 14:43:54 +02:00
Xavier Morel 958f9106dd [ADD] support for canonical urls in technical doc
* canonical_root setting is the path to the root of the canonical sphinx doc,
  if not set no canonical link is generated, must end with "/"
* canonical_branch defines the canonical branch to which to redirect, defaults
  to master

also various side-fixes:

* disabled permalinks in sphinx instead of hiding them via CSS
* improved generation of github links, removed _app global and setting of
  linkcode_resolve in conf.py
2014-09-03 16:34:52 +02:00
Xavier Morel f00bf9a461 [ADD] github links from doc 2014-09-03 14:53:41 +02:00
Xavier Morel cccd3c888f [ADD] openerp.http reference doc
* fix some docstrings so they can be autodoc'd
* intersphinx mapping (and links to) werkzeug and python
2014-09-01 14:16:14 +02:00
Raphael Collet 2ad092b5e5 [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
Xavier Morel 6dcf6bb6bc [CHG] remove flask theme, add sphinx-bootstrap 0.3.8 2014-05-19 08:32:15 +02:00
Xavier Morel c2d5bf1bc3 [ADD] tutorial beginning
blocked at introducing qweb template, ir.qweb lives in the registry but nodb -> no database
with --db-filter there's a database in the session (kinda) but need to fetch it and manually get the corresponding registry...
2014-05-19 08:23:13 +02:00
Xavier Morel ff51574fae [FIX] somebody renamed classes without fixing the corresponding autodoc invocation
bzr revid: xmo@openerp.com-20140116144957-j2no6ls83vfxtgbk
2014-01-16 15:49:57 +01:00
Vo Minh Thu 432eccccc9 [IMP] To hell with global doc.
bzr revid: vmt@openerp.com-20130104134955-dpf9792ng2gqani3
2013-01-04 14:49:55 +01:00
Antony Lesuisse bc3cf0b74f rm files, move postload hook
bzr revid: al@openerp.com-20121006171053-qggp1r5263h7v7vd
2012-10-06 19:10:53 +02:00
Xavier Morel 79f39b9c12 [FIX] versions and class names in doc
bzr revid: xmo@openerp.com-20121002135053-0br6kzif8tmarltp
2012-10-02 15:50:53 +02:00
Xavier Morel 6754110eb7 [IMP] get started on doc for VS-less searchview
bzr revid: xmo@openerp.com-20120424160759-aghh2pzioy1k4yw4
2012-04-24 18:07:59 +02:00
Openerp Online 3fec9bb049 [DOC] change v6.1 reference to trunk.
bzr revid: online@openerp.com-20120305164617-2ykj6o263sywjstz
2012-03-05 17:46:17 +01:00
Openerp Online 1ae5913ae8 [DOC] change v6.1 reference to trunk.
bzr revid: online@openerp.com-20120305164552-tij9m4if82h4huts
2012-03-05 17:45:52 +01:00