Skip to content

Commit 010e1a0

Browse files
committed
refactor documentation
1 parent b138c92 commit 010e1a0

File tree

7 files changed

+65
-33
lines changed

7 files changed

+65
-33
lines changed

.moban.d/README.rst

+2-27
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,14 @@
11
{%extends 'WEB-README.rst.jj2' %}
22

33
{%block header %}
4-
Tested Django Versions
5-
========================
6-
7-
.. image:: https://img.shields.io/badge/django-1.11.2-green.svg
8-
:target: http://travis-ci.org/pyexcel/django-excel
9-
10-
.. image:: https://img.shields.io/badge/django-1.10.7-green.svg
11-
:target: http://travis-ci.org/pyexcel/django-excel
12-
13-
.. image:: https://img.shields.io/badge/django-1.9.13-green.svg
14-
:target: http://travis-ci.org/pyexcel/django-excel
15-
16-
.. image:: https://img.shields.io/badge/django-1.8.18-green.svg
17-
:target: http://travis-ci.org/pyexcel/django-excel
18-
19-
.. image:: https://img.shields.io/badge/django-1.7.11-green.svg
20-
:target: http://travis-ci.org/pyexcel/django-excel
21-
22-
.. image:: https://img.shields.io/badge/django-1.6.11-green.svg
23-
:target: http://travis-ci.org/pyexcel/django-excel
24-
4+
{%include 'verified_frameworks.rst.jj2'%}
255
{%endblock%}
266

277
{%block setup%}
288
Setup
299
======
3010

31-
You will need to update your *settings.py*:
32-
33-
.. code-block:: python
34-
35-
FILE_UPLOAD_HANDLERS = ("django_excel.ExcelMemoryFileUploadHandler",
36-
"django_excel.TemporaryExcelFileUploadHandler")
11+
{%include "setup.rst.jj2"%}
3712

3813
{%endblock%}
3914

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ come with all batteries due to the size of the dependency(xlwt, openpyxl, odfpy)
55
Django developer is left with the choice to install and load the excel file formats.
66
{%endblock%}
77

8+
{%block verified_frameworks%}
9+
{%include 'verified_frameworks.rst.jj2'%}
10+
{%endblock%}
11+
812
{%block setup %}
9-
You will need to update your *settings.py*::
1013

11-
FILE_UPLOAD_HANDLERS = ("django_excel.ExcelMemoryFileUploadHandler",
12-
"django_excel.TemporaryExcelFileUploadHandler")
14+
{%include "setup.rst.jj2"%}
15+
1316
{%endblock%}
1417

1518
{%block tutorial%}

.moban.d/setup.rst.jj2

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
You will need to update your *settings.py*:
2+
3+
.. code-block:: python
4+
5+
FILE_UPLOAD_HANDLERS = ("django_excel.ExcelMemoryFileUploadHandler",
6+
"django_excel.TemporaryExcelFileUploadHandler")
7+

.moban.d/verified_frameworks.rst.jj2

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Tested Django Versions
2+
========================
3+
4+
.. image:: https://img.shields.io/badge/django-1.11.2-green.svg
5+
:target: http://travis-ci.org/pyexcel/django-excel
6+
7+
.. image:: https://img.shields.io/badge/django-1.10.7-green.svg
8+
:target: http://travis-ci.org/pyexcel/django-excel
9+
10+
.. image:: https://img.shields.io/badge/django-1.9.13-green.svg
11+
:target: http://travis-ci.org/pyexcel/django-excel
12+
13+
.. image:: https://img.shields.io/badge/django-1.8.18-green.svg
14+
:target: http://travis-ci.org/pyexcel/django-excel
15+
16+
.. image:: https://img.shields.io/badge/django-1.7.11-green.svg
17+
:target: http://travis-ci.org/pyexcel/django-excel
18+
19+
.. image:: https://img.shields.io/badge/django-1.6.11-green.svg
20+
:target: http://travis-ci.org/pyexcel/django-excel

CHANGELOG.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Change log
22
================================================================================
33

4-
0.0.8 - 06.07.2017
4+
0.0.8 - 07.07.2017
55
--------------------------------------------------------------------------------
66

77
Added

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ Tested Django Versions
157157
.. image:: https://img.shields.io/badge/django-1.6.11-green.svg
158158
:target: http://travis-ci.org/pyexcel/django-excel
159159

160-
161160
Installation
162161
================================================================================
163162
You can install it via pip:
@@ -186,6 +185,7 @@ You will need to update your *settings.py*:
186185
"django_excel.TemporaryExcelFileUploadHandler")
187186
188187
188+
189189
Usage
190190
=========
191191
Here is the example viewing function codes:

doc/source/index.rst

+28-1
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,40 @@ Django developer is left with the choice to install and load the excel file form
154154

155155
Setup
156156
------------------------
157-
You will need to update your *settings.py*::
157+
158+
You will need to update your *settings.py*:
159+
160+
.. code-block:: python
158161
159162
FILE_UPLOAD_HANDLERS = ("django_excel.ExcelMemoryFileUploadHandler",
160163
"django_excel.TemporaryExcelFileUploadHandler")
161164
162165
163166
167+
168+
169+
Tested Django Versions
170+
========================
171+
172+
.. image:: https://img.shields.io/badge/django-1.11.2-green.svg
173+
:target: http://travis-ci.org/pyexcel/django-excel
174+
175+
.. image:: https://img.shields.io/badge/django-1.10.7-green.svg
176+
:target: http://travis-ci.org/pyexcel/django-excel
177+
178+
.. image:: https://img.shields.io/badge/django-1.9.13-green.svg
179+
:target: http://travis-ci.org/pyexcel/django-excel
180+
181+
.. image:: https://img.shields.io/badge/django-1.8.18-green.svg
182+
:target: http://travis-ci.org/pyexcel/django-excel
183+
184+
.. image:: https://img.shields.io/badge/django-1.7.11-green.svg
185+
:target: http://travis-ci.org/pyexcel/django-excel
186+
187+
.. image:: https://img.shields.io/badge/django-1.6.11-green.svg
188+
:target: http://travis-ci.org/pyexcel/django-excel
189+
190+
164191
Support the project
165192
-----------------------
166193

0 commit comments

Comments
 (0)