Skip to content

Commit 499d60a

Browse files
committed
update documentation
1 parent ba5fcf6 commit 499d60a

File tree

2 files changed

+54
-50
lines changed

2 files changed

+54
-50
lines changed

.moban.d/docs/source/index.rst.jj2

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ and upload. And you get the following excel-alike table in response to confirm a
123123
.. note ::
124124

125125
pyexcel-handsontable along with pyexcel v0.5.0 brings excel-alie table rendering feature.
126-
Let me explain how this view is done at the end of the tutorial.
126+
Let me explain how this view is done a few paragraphs later.
127127

128128
Then visit the admin page http://localhost:8000/admin/polls/question,
129129
you shall see questions have been populated:
@@ -194,6 +194,32 @@ you can visit http://localhost:8000/polls/export/sheet and will get **Question**
194194
exported as a single sheet file.
195195

196196

197+
Render an excel-alike html in a browser
198+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
199+
200+
In the tutorial, you have seen the rendering of the excel-alike table. First of
201+
all, the credits goes to `handsontable developers <https://handsontable.com/>`_.
202+
`pyexcel-handsontable` as renderer plugin to pyexcel v0.5.0 bring it to
203+
pyexcel developers.
204+
205+
Here is how it is done. Simply put in 'handsontable.html' instead of 'xls' as
206+
file type.
207+
208+
.. literalinclude:: ../../polls/views.py
209+
:lines: 153-155
210+
211+
It is understood that you will want to embed it into your django templates.
212+
Here are the sample embedding code:
213+
214+
.. literalinclude:: ../../polls/views.py
215+
:lines: 158-189
216+
217+
Those views can be accessed as http://localhost:8000/polls/embedded_handson_view/
218+
and http://localhost:8000/polls/embedded_handson_view_single/.
219+
220+
.. image:: handsontable-embedded.png
221+
222+
197223
How to import one sheet instead of multi-sheet book
198224
********************************************************************************
199225

@@ -272,30 +298,6 @@ set exported as a single sheet file as:
272298

273299
.. image:: custom-export.png
274300

275-
Render an excel-alike html in a browser
276-
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
277-
278-
In the tutorial, you have seen the rendering of the excel-alike table. First of
279-
all, the credits goes to `handsontable developers <https://handsontable.com/>`_.
280-
`pyexcel-handsontable` as renderer plugin to pyexcel v0.5.0 bring it to
281-
pyexcel developers.
282-
283-
Here is how it is done. Simply put in 'handsontable.html' instead of 'xls' as
284-
file type.
285-
286-
.. literalinclude:: ../../polls/views.py
287-
:lines: 153-155
288-
289-
It is understood that you will want to embed it into your django templates.
290-
Here are the sample embedding code:
291-
292-
.. literalinclude:: ../../polls/views.py
293-
:lines: 158-189
294-
295-
Those views can be accessed as http://localhost:8000/polls/embedded_handson_view/
296-
and http://localhost:8000/polls/embedded_handson_view_single/.
297-
298-
.. image:: handsontable-embedded.png
299301

300302
{%endblock%}
301303

doc/source/index.rst

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ and upload. And you get the following excel-alike table in response to confirm a
303303
.. note ::
304304
305305
pyexcel-handsontable along with pyexcel v0.5.0 brings excel-alie table rendering feature.
306-
Let me explain how this view is done at the end of the tutorial.
306+
Let me explain how this view is done a few paragraphs later.
307307
308308
Then visit the admin page http://localhost:8000/admin/polls/question,
309309
you shall see questions have been populated:
@@ -374,6 +374,32 @@ you can visit http://localhost:8000/polls/export/sheet and will get **Question**
374374
exported as a single sheet file.
375375

376376

377+
Render an excel-alike html in a browser
378+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
379+
380+
In the tutorial, you have seen the rendering of the excel-alike table. First of
381+
all, the credits goes to `handsontable developers <https://handsontable.com/>`_.
382+
`pyexcel-handsontable` as renderer plugin to pyexcel v0.5.0 bring it to
383+
pyexcel developers.
384+
385+
Here is how it is done. Simply put in 'handsontable.html' instead of 'xls' as
386+
file type.
387+
388+
.. literalinclude:: ../../polls/views.py
389+
:lines: 153-155
390+
391+
It is understood that you will want to embed it into your django templates.
392+
Here are the sample embedding code:
393+
394+
.. literalinclude:: ../../polls/views.py
395+
:lines: 158-189
396+
397+
Those views can be accessed as http://localhost:8000/polls/embedded_handson_view/
398+
and http://localhost:8000/polls/embedded_handson_view_single/.
399+
400+
.. image:: handsontable-embedded.png
401+
402+
377403
How to import one sheet instead of multi-sheet book
378404
********************************************************************************
379405

@@ -452,30 +478,6 @@ set exported as a single sheet file as:
452478

453479
.. image:: custom-export.png
454480

455-
Render an excel-alike html in a browser
456-
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
457-
458-
In the tutorial, you have seen the rendering of the excel-alike table. First of
459-
all, the credits goes to `handsontable developers <https://handsontable.com/>`_.
460-
`pyexcel-handsontable` as renderer plugin to pyexcel v0.5.0 bring it to
461-
pyexcel developers.
462-
463-
Here is how it is done. Simply put in 'handsontable.html' instead of 'xls' as
464-
file type.
465-
466-
.. literalinclude:: ../../polls/views.py
467-
:lines: 153-155
468-
469-
It is understood that you will want to embed it into your django templates.
470-
Here are the sample embedding code:
471-
472-
.. literalinclude:: ../../polls/views.py
473-
:lines: 158-189
474-
475-
Those views can be accessed as http://localhost:8000/polls/embedded_handson_view/
476-
and http://localhost:8000/polls/embedded_handson_view_single/.
477-
478-
.. image:: handsontable-embedded.png
479481

480482
.. _data-types-and-its-conversion-funcs:
481483

0 commit comments

Comments
 (0)