[FIX] doc: Truncate 680-line example data

The page shows the first 15 lines of a CSV in raw form as an example.
Next it shows the same data rendered as a table. However, it was
displaying the entire 680-line source data. `csv-table` doesn't have a
`:lines:` directive. I copied and truncated the original file for use
in the documentation.

X-original-commit: 04d4ec33043627747e36730953479557aae278f2
This commit is contained in:
Raf Geens
2020-09-16 10:21:34 +00:00
parent f116cbf004
commit 6fcfefc83e
2 changed files with 17 additions and 3 deletions
+2 -3
View File
@@ -286,14 +286,13 @@ For this case, data files can also use csv_, this is often the case for
Here's the first lines of the data file defining US states
``res.country.state.csv``
.. literalinclude:: ../../odoo/addons/base/data/res.country.state.csv
.. literalinclude:: static/res.country.state.csv
:language: text
:lines: 1-15
rendered in a more readable format:
.. csv-table::
:file: ../../odoo/addons/base/data/res.country.state.csv
:file: static/res.country.state.csv
:header-rows: 1
:class: table-striped table-hover table-condensed