Commit Graph

116 Commits

Author SHA1 Message Date
Martin Trigaux
1b2cbd5b88 [FIX] _extension: build with sphinx 1.8
cherry-pick of odoo/odoo@ac37ca39ea
but dropping the compatibility of sphinx 1.2 to simplify
2018-09-26 16:19:01 +02:00
Xavier Morel
b379cab20b [FIX] a pair of leftover warnings 2018-08-31 14:41:25 +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
Olivier Dony
48b11b31cc [FIX] _extensions: p3 compatibility (8) 2018-05-30 15:38:34 +02:00
Olivier Dony
db5604f703 [FIX] _extensions: p3 compatibility (7) 2018-05-30 14:34:23 +02:00
Olivier Dony
478fcb7bef [FIX] _extensions: p3 compatibility (6) 2018-05-30 12:52:39 +02:00
Olivier Dony
b22590c2da [FIX] _extensions: p3 compatibility (5) 2018-05-30 12:09:58 +02:00
Olivier Dony
2e58b86fe2 [FIX] _extensions: p3 compatibility (4) 2018-05-30 11:59:47 +02:00
Olivier Dony
4143a500e1 [FIX] _extensions: p3 compatibility (3) 2018-05-30 11:37:16 +02:00
Olivier Dony
914c5ebc18 [FIX] _extensions: p3 compatibility (2) 2018-05-30 11:19:30 +02:00
Olivier Dony
ff2c6db57c [FIX] _extension: p3 compatibility 2018-05-30 11:06:24 +02:00
Olivier Dony
cda60c219b [FIX] doc template: GA: anonymize IPs 2018-05-30 09:56:31 +02:00
Denis Ledoux
b7cfc92ddf [ADD] _extensions: possibility to create a file download link 2018-03-29 10:27:01 +02:00
Olivier Dony
5b6390f874 [FIX] layout: add missing space between classes 2018-03-16 20:05:33 +01:00
Miquel Raïch
e2684993c8 [FIX] v11 urls
Outdated references

Closes #252
2017-12-13 13:31:12 +01: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
Martin Trigaux
c71b603614 [FIX] doc: v10ification 2016-12-21 10:13:29 +01:00
Yannick Tivisse
9bfc3e7eb6 [FIX] demo_link: retrieve correctly the result from read()
The signature has changed and we get a list instead of a dictionary now.
2016-10-14 13:59:34 +02:00
Stefano Rigano
a0dd875333 [IMP] doc: define a layout for 'category index' pages
These pages are not directly accessible through other doc’s pages but
there are still indexed by google.

eg.https://www.odoo.com/documentation/9.0/tutorials.html
2016-08-11 16:29:15 +02:00
Olivier Dony
c42a9dafb9 [ADD] layout.html: legal page link in footer
Added to match updated footer in www.odoo.com
2016-05-26 00:05:47 +02:00
stefanorigano
d193f7c0ac [FIX] .doc-aside headings' colour
Heading colour should be ‘white’ when it’s into a  .doc-aside container
only.
2016-05-18 10:48:19 +02:00
stefanorigano
a2dafdf796 [IMP] documentation-user: update compiled CSS 2016-05-12 14:06:25 +02:00
stefanorigano
43164704c9 [IMP] documentation-user: restructuring submenu
— Layout

* Create html templates to print breadcrumb's and submenu's lists.
* Remove ‘o_main_back’ ( no longer needed)
* Minimum mobile support for submenu. Note: The default website submenu
should be refactored in order to support mobile by default

— Style

* Create a less mixin to handle all doc’s dropdowns
* Add a specific style for breadcrumb when it’s placed inside the
submenu.
2016-05-12 14:06:25 +02:00
stefanorigano
27388c89a6 [FIX] side-menu overflow. 2016-04-27 11:45:06 +02:00
Martin Trigaux
0669db650a [FIX] layout: wrong URL to external pages 2016-04-27 10:02:34 +02:00
stefanorigano
9a478fa07a [FIX] documentation-user: mobile menu button
It was invisible because the doc’s website use material icons rather
then the ‘fa’ ones. Replaced the icon with the material one and styled
the “pressed” state.
2016-04-26 15:02:30 +02:00
stefanorigano
de70a65819 [FIX] documentation-user: minor layout fixes
* Adjust ‘.card.top’ padding for index pages
* Offset-top main content for mobile
2016-04-26 15:01:33 +02:00
Martin Trigaux
8c68490dbb [FIX] css: no lessc in build script? 2016-04-26 13:30:50 +02:00
Martin Trigaux
c07231580c [FIX] css: remove css file
use less file instead
2016-04-26 13:23:13 +02:00
Martin Trigaux
dde58d87db [FIX] css: language menu style 2016-04-26 12:07:46 +02:00
stefanorigano
28f197ca71 [IMP] all: new design to match the one on odoo.com
* upgrade to bootstrap 3.3.6

* new Header, port website LESS
  - Add the new header
  - Modify sub-header in order to handle “back” button and version
    switcher
  - Port website’s Less:
    * Use same variables’ names
    * Review fonts and colours in order to fit the new style

* add new footer

* Review and optimise JS code in order properly handle the new header,
  footer and card.top animations

* replace  banner images
2016-04-26 11:23:38 +02:00
Martin Trigaux
4993bf959c [FIX] embedded video in https for vimeo 2015-12-03 15:49:40 +01:00
Martin Trigaux
c717f6314d [FIX] embedded video in https 2015-12-03 15:47:18 +01: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
Xavier Morel
fbea64a257 [FIX] git and sphinx ignore, remove committed pyc files 2015-11-20 11:36:44 +01:00
Yannick Tivisse
85d0868032 [ADD] Library to embed youtube and vimeo videos in a clean way
Coming from https://gist.github.com/dbrgn/2922648
2015-11-20 10:53:23 +01:00
Martin Trigaux
ec97bc7919 Language switcher 2015-11-10 10:38:53 +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
Martin Trigaux
ca0f9396a7 Reexport style.css to include previous changes 2015-10-29 11:33:57 +01:00
Martin Trigaux
0313d915c2 [FIX] css: rendering of inline images
Bootstrap forces the img-responsive images to be a block.
IMHO bootstrap should be killed and burned with fire but them it appears I know
nothing (John Snow) about CSS and making things looks nice so they have probably
their reason to do so.
Anyway, not that I care, let me use inline images for Flupke sake!
2015-10-29 10:02:31 +01:00
Martin Trigaux
4d24d82819 seealso as alert-go_tp
to differentiate from tip and note
2015-10-16 15:10:53 +02:00
stefanorigano
3036418c35 [ADD] "Go To" alert (html example in commit description)
<div role="alert" class="alert-go_to alert">
<p class="alert-title">See also</p>
<p>
<a href="../../overview/from_po_to_invoice.html" class="internal
alert-link reference">
<em>From purchase order to invoice and receptions</em>
</a>
</p>
</div>
2015-10-16 15:08:29 +02:00
stefanorigano
9e1ca08efd [ADD] Figure caption support
Add a “.figure” class to the element to style the caption

Eg.

.. figure:: media/setup02.png
   :figclass: figure

   Hello! This is the image caption!
2015-10-16 15:08:29 +02:00
stefanorigano
158f5adbc9 [IMP] links:hover, replace color 2015-10-16 15:08:29 +02:00
stefanorigano
fc707ce800 [FIX] toctree, fix headings margins and font-size 2015-10-16 15:08:29 +02:00
stefanorigano
5b90b4968e [FIX] Headings, restore bootstrap default + minor 2015-10-16 15:08:29 +02:00
stefanorigano
f61ee38c47 [IMP] General layout, minor 2015-10-16 15:08:29 +02:00
stefanorigano
4a51708b84 [ADD] Print Stylesheet 2015-10-12 12:39:26 +02:00
Xavier Morel
51cba7119a [CHG] hide sections sidebar for code_col pages (mementoes)
fp request "brings no value and make content columns too narrow, leave
it on normal documentation pages"
2015-10-12 10:05:00 +02:00
Xavier Morel
e7b6009414 [IMP] hide broken demo/start under the rug so doc can be compiled 2015-10-12 09:50:45 +02:00
Martin Trigaux
d6a039129f Revert "[FIX] /start demo url is dead, just demo.odoo.com is enough"
This reverts commit 67a0c24f74.

/start will be fixed... or remplaced
2015-10-05 15:19:30 +02:00
Martin Trigaux
67a0c24f74 [FIX] /start demo url is dead, just demo.odoo.com is enough 2015-10-05 12:12:42 +02:00
Xavier Morel
b432622459 [FIX] actually add logo in title to all pages
Fixes 93afab1e which was supposed to do that but I apparently backed it
out before committing.

All pages now behave like the index, with the Odoo logo removed from the
sidebar and set next to the current page's title.
2015-07-20 13:49:27 +02:00
Xavier Morel
0e58ae3ee0 [IMP] make application TOC toplevel look like subtitles 2015-07-20 13:43:28 +02:00
Xavier Morel
4a8bc016d1 [IMP] "prev" links to the application's root if inside the application 2015-07-20 13:43:28 +02:00
Xavier Morel
93afab1e00 [CHG] remove logo from sidebar and always have it in title 2015-07-20 13:43:28 +02:00
Xavier Morel
e400744907 [ADD] github links to edit documentation pages 2015-07-20 13:43:27 +02:00
Xavier Morel
70774f85eb [IMP] inline paraiso dark to avoid pygments version headaches 2015-07-14 11:11:48 +02:00
Xavier Morel
e443ce59bf [FIX] splitting of whitelist in demo:fields directive 2015-07-14 11:04:25 +02:00
Xavier Morel
5b2942ad58 [IMP] README, :fields: -> :only: in demo:fields:: 2015-07-10 10:13:24 +02:00
Xavier Morel
9f89a9900f [ADD] support for big action link button thing 2015-07-09 16:12:57 +02:00
Xavier Morel
f8d202061a [ADD] support for fetching views's fields straight from demo
* resolves action by external id
* fetches relevant view
* prints table of all fields with an @help in view order
2015-07-09 15:35:48 +02:00
Xavier Morel
98e8930e02 [ADD] assets management doc (wip) 2015-07-09 12:31:31 +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