Skip to content

Commit 4e7db2f

Browse files
author
Ivan Yelizariev
authored
[CI] add travis and fix current warnings (itpp-labs#77)
* [CI] trying to fix warning WARNING: html_static_path entry u'/home/travis/build/it-projects-llc/odoo-development/docs/_static' does not exist
1 parent b636612 commit 4e7db2f

File tree

7 files changed

+46
-27
lines changed

7 files changed

+46
-27
lines changed

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: python
2+
3+
python:
4+
- "2.7"
5+
6+
sudo: false
7+
8+
install:
9+
- pip install -r requirements.txt
10+
11+
script:
12+
- mkdir docs/_static; cd docs; sphinx-build -nW -b html -d _build/doctrees . _build/html
13+
14+
notifications:
15+
email: false

docs/description/image-sizes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ See also
1515
__openerp__.py -> 'images'
1616
==========================
1717

18-
This images is displayed on application page (`example <https://www.odoo.com/apps/modules/8.0/res_partner_mails_count/>`_) and in application list (`example <https://www.odoo.com/apps/modules/browse?author=IT-Projects%20LLC>`_ )
18+
This images is displayed on application page (`example <https://www.odoo.com/apps/modules/8.0/res_partner_mails_count/>`__) and in application list (`example <https://www.odoo.com/apps/modules/browse?author=IT-Projects%20LLC>`__ )
1919

2020
Displayed size:
2121

2222
* app page::
2323

24-
750 x 400
24+
750 x 400
2525

2626
* app list::
2727

28-
262,5 x 130
28+
262,5 x 130
2929

3030
Recommended size (aspect) to fit both usage::
3131

docs/dev/docs/icon.png.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,67 +20,67 @@ SaaS
2020

2121
.. image:: ../../images/module-icons/saas/icon.png
2222

23-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/saas/icon.png>`_
23+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/saas/icon.png>`__
2424

2525
Telegram
2626
--------
2727

2828
.. image:: ../../images/module-icons/telegram/icon.png
2929

30-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/telegram/icon.png>`_
30+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/telegram/icon.png>`__
3131

3232
Access
3333
------
3434

3535
.. image:: ../../images/module-icons/access/icon.png
3636

37-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/access/icon.png>`_
37+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/access/icon.png>`__
3838

3939
Barcode
4040
-------
4141

4242
.. image:: ../../images/module-icons/barcode/icon.png
4343

44-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/barcode/icon.png>`_
44+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/barcode/icon.png>`__
4545

4646
Mail
4747
----
4848

4949
.. image:: ../../images/module-icons/mail/icon.png
5050

51-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/mail/icon.png>`_
51+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/mail/icon.png>`__
5252

5353
Pos
5454
---
5555

5656
.. image:: ../../images/module-icons/pos/icon.png
5757

58-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/pos/icon.png>`_
58+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/pos/icon.png>`__
5959

6060
Stock
6161
------
6262

6363
.. image:: ../../images/module-icons/stock/icon.png
6464

65-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/stock/icon.png>`_
65+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/stock/icon.png>`__
6666

6767
Website
6868
-------
6969

7070
.. image:: ../../images/module-icons/website/icon.png
7171

72-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/website/icon.png>`_
72+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/website/icon.png>`__
7373

7474
Website_Sale
7575
------------
7676

7777
.. image:: ../../images/module-icons/website_sale/icon.png
7878

79-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/website_sale/icon.png>`_
79+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/website_sale/icon.png>`__
8080

8181
Misc
8282
----
8383

8484
.. image:: ../../images/module-icons/misc/icon.png
8585

86-
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/misc/icon.png>`_
86+
`Download <https://raw.githubusercontent.com/it-projects-llc/odoo-development/master/docs/images/module-icons/misc/icon.png>`__

docs/dev/py/constraints.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ Model constraints
22
=================
33

44
Odoo provides two ways to set up automatically verified invariants:
5-
:func:`Python constraints <openerp.api.constrains>` and
6-
:attr:`SQL constraints <openerp.models.Model._sql_constraints>`.
5+
`Python constraints <openerp.api.constrains>` and
6+
`SQL constraints <openerp.models.Model._sql_constraints>`.
77

88
A Python constraint is defined as a method decorated with
9-
:func:`~openerp.api.constrains`, and invoked on a recordset. The decorator
9+
`~openerp.api.constrains`, and invoked on a recordset. The decorator
1010
specifies which fields are involved in the constraint, so that the constraint is
1111
automatically evaluated when one of them is modified. The method is expected to
1212
raise an exception if its invariant is not satisfied::
@@ -22,7 +22,7 @@ raise an exception if its invariant is not satisfied::
2222

2323

2424
SQL constraints are defined through the model attribute
25-
:attr:`~openerp.models.Model._sql_constraints`. The latter is assigned to a list
25+
`~openerp.models.Model._sql_constraints`. The latter is assigned to a list
2626
of triples of strings ``(name, sql_definition, message)``, where ``name`` is a
27-
valid SQL constraint name, ``sql_definition`` is a table_constraint_ expression,
27+
valid SQL constraint name, ``sql_definition`` is a ``table_constraint_`` expression,
2828
and ``message`` is the error message.

docs/odoo/models/bus.bus.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,24 +150,24 @@ Examples
150150
========
151151
**pos_multi_session:**
152152

153-
* `add channel (python) <https://github.com/it-projects-llc/pos-addons/blob/9.0/pos_multi_session/controllers/pos_multi_session.py#L18>`_
153+
* `add channel (python) <https://github.com/it-projects-llc/pos-addons/blob/9.0/pos_multi_session/controllers/pos_multi_session.py#L18>`__
154154

155-
* `bind event <https://github.com/it-projects-llc/pos-addons/blob/9.0/pos_multi_session/static/src/js/pos_multi_session.js#L411>`_
155+
* `bind event <https://github.com/it-projects-llc/pos-addons/blob/9.0/pos_multi_session/static/src/js/pos_multi_session.js#L411>`__
156156

157-
* `send notification <https://github.com/it-projects-llc/pos-addons/blob/9.0/pos_multi_session/pos_multi_session_models.py#L25>`_
157+
* `send notification <https://github.com/it-projects-llc/pos-addons/blob/9.0/pos_multi_session/pos_multi_session_models.py#L25>`__
158158

159159
**chess:**
160160

161-
* `add channel (js) <https://github.com/GabbasovDinar/addons-dev/blob/website-addons-8.0-chess/chess/static/js/chesschat.js#L11-L14>`_
161+
* `add channel (js) <https://github.com/GabbasovDinar/addons-dev/blob/website-addons-8.0-chess/chess/static/js/chesschat.js#L11-L14>`__
162162

163-
* `bind event <https://github.com/GabbasovDinar/addons-dev/blob/website-addons-8.0-chess/chess/models/chess.py#L282-L288>`_
163+
* `bind event <https://github.com/GabbasovDinar/addons-dev/blob/website-addons-8.0-chess/chess/models/chess.py#L282-L288>`__
164164

165-
* `send notification <https://github.com/GabbasovDinar/addons-dev/blob/website-addons-8.0-chess/chess/static/js/chesschat.js#L134-L145>`_
165+
* `send notification <https://github.com/GabbasovDinar/addons-dev/blob/website-addons-8.0-chess/chess/static/js/chesschat.js#L134-L145>`__
166166

167167
**mail_move_message:**
168168

169-
* `add channel (python) <https://github.com/x620/mail-addons/blob/9.0-mail_move_message/mail_move_message/controllers/main.py#L15>`_
169+
* `add channel (python) <https://github.com/x620/mail-addons/blob/9.0-mail_move_message/mail_move_message/controllers/main.py#L15>`__
170170

171-
* `bind event <https://github.com/x620/mail-addons/blob/9.0-mail_move_message/mail_base/static/src/js/base.js#L1150-L1152>`_
171+
* `bind event <https://github.com/x620/mail-addons/blob/9.0-mail_move_message/mail_base/static/src/js/base.js#L1150-L1152>`__
172172

173-
* `send notification <https://github.com/x620/mail-addons/blob/9.0-mail_move_message/mail_move_message/mail_move_message_models.py#L312>`_
173+
* `send notification <https://github.com/x620/mail-addons/blob/9.0-mail_move_message/mail_move_message/mail_move_message_models.py#L312>`__

docs/odoo/models/ir.cron.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ Number of times the scheduler is to be called based on the "interval_type"
8282
.. code-block:: xml
8383
8484
<field name="interval_type">days</field>
85+
8586
Interval Unit.
87+
8688
It should be one value for the list: ``minutes``, ``hours``, ``days``, ``weeks``, ``months``.
8789

8890
.. code-block:: xml

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx
2+
sphinx_rtd_theme

0 commit comments

Comments
 (0)