Skip to content

Commit 27254d6

Browse files
committed
bring back django theme
1 parent 96df2d3 commit 27254d6

File tree

8 files changed

+71
-43
lines changed

8 files changed

+71
-43
lines changed

.moban.d/docs/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
{% extends 'docs/source/conf.py.jj2' %}
2+
3+
{%block custom_doc_theme%}
4+
sys.path.append(os.path.abspath('_themes'))
5+
html_theme_path = ['_themes']
6+
html_theme = 'djangodocs'
7+
{%endblock%}

.moban.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
configuration:
2+
configuration_dir: "commons/config"
3+
template_dir:
4+
- "commons/templates"
5+
- ".moban.d"
6+
configuration: django_excel.yml
7+
targets:
8+
- README.rst: README.rst
9+
- setup.py: setup.py
10+
- "doc/source/conf.py": "docs/source/conf.py"
11+
- .travis.yml: travis.yml
12+
- requirements.txt: requirements.txt
13+
- LICENSE: LICENSE.jj2
14+
- MANIFEST.in: MANIFEST.in.jj2
15+
- "doc/source/index.rst": "docs/source/index.rst.jj2"
16+
- "tests/requirements.txt": "tests/requirements.txt"

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ matrix:
2020
- python: 3.5
2121
env: DJANGO_VERSION=1.8.2
2222
install:
23-
- rm applymoban.py
2423
- pip install Django==$DJANGO_VERSION
2524
- pip install -r requirements.txt
2625
- pip install -r tests/requirements.txt

README.rst

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,42 @@ programming interface to most of the excel readers and writers.
2828

2929
The highlighted features are:
3030

31+
#. excel data import into and export from databases
3132
#. turn uploaded excel file directly into Python data struture
3233
#. pass Python data structures as an excel file download
3334
#. provide data persistence as an excel file in server side
34-
#. supports csv, tsv, csvz, tsvz by default and other formats are supported via the following plugins:
35-
36-
Available Plugins
37-
=================
38-
39-
================ ==========================================
40-
Plugins Supported file formats
41-
================ ==========================================
42-
`pyexcel-xls`_ xls, xlsx(r), xlsm(r)
43-
`pyexcel-xlsx`_ xlsx
44-
`pyexcel-ods`_ ods (python 2.6, 2.7)
45-
`pyexcel-ods3`_ ods (python 2.7, 3.3, 3.4)
46-
`pyexcel-text`_ write only)json, rst, mediawiki,
47-
latex, grid, pipe, orgtbl, plain simple
48-
================ ==========================================
49-
35+
#. supports csv, tsv, csvz, tsvz by default and other formats are supported via
36+
the following plugins:
37+
38+
.. _file-format-list:
39+
40+
.. table:: A list of file formats supported by external plugins
41+
42+
================ ========================================
43+
Plugins Supported file formats
44+
================ ========================================
45+
`pyexcel-xls`_ xls, xlsx(r), xlsm(r)
46+
`pyexcel-xlsx`_ xlsx
47+
`pyexcel-ods3`_ ods (python 2.6, 2.7, 3.3, 3.4)
48+
`pyexcel-ods`_ ods (python 2.6, 2.7)
49+
`pyexcel-text`_ (write only)json, rst, mediawiki,
50+
latex, grid, pipe, orgtbl, plain simple
51+
================ ========================================
52+
5053
.. _pyexcel-xls: https://github.com/pyexcel/pyexcel-xls
5154
.. _pyexcel-xlsx: https://github.com/pyexcel/pyexcel-xlsx
5255
.. _pyexcel-ods: https://github.com/pyexcel/pyexcel-ods
5356
.. _pyexcel-ods3: https://github.com/pyexcel/pyexcel-ods3
5457
.. _pyexcel-text: https://github.com/pyexcel/pyexcel-text
5558

59+
This library makes infomation processing involving various excel files as easy as
60+
processing array, dictionary when processing file upload/download, data import into
61+
and export from SQL databases, information analysis and persistence. It uses
62+
**pyexcel** and its plugins:
63+
64+
#. to provide one uniform programming interface to handle csv, tsv, xls, xlsx, xlsm and ods formats.
65+
#. to provide one-stop utility to import the data in uploaded file into a database and to export tables in a database as excel files for file download.
66+
#. to provide the same interface for information persistence at server side: saving a uploaded excel file to and loading a saved excel file from file system.
5667

5768
Known constraints
5869
==================
@@ -72,8 +83,7 @@ Tested Django Versions
7283
:target: http://travis-ci.org/pyexcel/django-excel
7384

7485
Installation
75-
============
76-
86+
================================================================================
7787
You can install it via pip:
7888

7989
.. code-block:: bash
@@ -89,8 +99,6 @@ or clone it and install it:
8999
$ cd django-excel
90100
$ python setup.py install
91101
92-
Installation of individual plugins , please refer to individual plugin page.
93-
94102
Setup
95103
======
96104

@@ -136,6 +144,6 @@ Here is the example viewing function codes:
136144
return excel.make_response(sheet, "csv")
137145
138146
License
139-
==========
147+
================================================================================
140148

141149
New BSD License

applymoban.py

Lines changed: 0 additions & 17 deletions
This file was deleted.
File renamed without changes.

doc/source/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@
9292

9393
# The theme to use for HTML and HTML Help pages. See the documentation for
9494
# a list of builtin themes.
95-
html_theme = 'default'
95+
sys.path.append(os.path.abspath('_themes'))
96+
html_theme_path = ['_themes']
97+
html_theme = 'djangodocs'
9698

9799
# Theme options are theme-specific and customize the look and feel of a theme
98100
# further. For a list of options available for each theme, see the

doc/source/index.rst

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@ Welcome to django-excel's documentation!
1616
it easy to consume/produce information stored in excel files over HTTP protocol as
1717
well as on file system. This library can turn the excel data into a list of lists,
1818
a list of records(dictionaries), dictionaries of lists. And vice versa. Hence it
19-
lets you focus on data in Django web development, instead of file formats.
19+
lets you focus on data in Django based web development, instead of file formats.
20+
21+
The idea originated from the problem of the illiteracy of excel file formats of
22+
non-technical office workers: such as office assistant, human resource administrator.
23+
There is nothing with the un-deniable fact that some people do not know the
24+
difference among various excel formats. It becomes usability problem to those
25+
people when a web service cannot parse the excel file that they saved using
26+
Microsoft Excel. Instead of training those people about file formats, this library
27+
helps web developers to handle most of the excel file formats by unifying the
28+
programming interface to most of the excel readers and writers.
2029

2130
The highlighted features are:
2231

@@ -60,12 +69,16 @@ and export from SQL databases, information analysis and persistence. It uses
6069
Installation
6170
-------------------
6271

63-
You can install it via pip::
72+
You can install it via pip:
73+
74+
.. code-block:: bash
6475
6576
$ pip install django-excel
6677
6778
68-
or clone it and install it::
79+
or clone it and install it:
80+
81+
.. code-block:: bash
6982
7083
$ git clone http://github.com/pyexcel/django-excel.git
7184
$ cd django-excel
@@ -381,6 +394,7 @@ database table :meth:`~django_excel.ExcelMixin.save_to_database`
381394
a list of database tables :meth:`~django_excel.ExcelMixin.save_book_to_database` :meth:`~django_excel.make_response_from_tables`
382395
a database query sets :meth:`~django_excel.make_response_from_query_sets`
383396
=========================== ======================================================== ===================================================
397+
384398
See more examples of the data structures in :ref:`pyexcel documentation<pyexcel:a-list-of-data-structures>`
385399

386400
API Reference

0 commit comments

Comments
 (0)