Skip to content

Commit a655298

Browse files
committed
Cleanup docs.
1 parent 5bb5d2a commit a655298

4 files changed

Lines changed: 54 additions & 11 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Run::
1515

1616
to install python-sqlparse on your system.
1717

18-
python-sqlparse is compatible with Python 2.5, 2.6, 2.7 and >= 3.2.
18+
python-sqlparse is compatible with Python 2 (>= 2.5) and Python 3 (>= 3.2).
1919

2020

2121
Run Tests

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,15 @@
9696

9797
# The theme to use for HTML and HTML Help pages. Major themes that come with
9898
# Sphinx are currently 'default' and 'sphinxdoc'.
99-
html_theme = 'agogo'
99+
#html_theme = 'agogo'
100100

101101
# Theme options are theme-specific and customize the look and feel of a theme
102102
# further. For a list of options available for each theme, see the
103103
# documentation.
104104
#html_theme_options = {}
105105

106106
# Add any paths that contain custom themes here, relative to this directory.
107-
html_theme_path = [os.path.abspath('../')]
107+
#html_theme_path = [os.path.abspath('../')]
108108

109109
# The name for this set of Sphinx documents. If None, it defaults to
110110
# "<project> v<release> documentation".
@@ -125,7 +125,7 @@
125125
# Add any paths that contain custom static files (such as style sheets) here,
126126
# relative to this directory. They are copied after the builtin static files,
127127
# so a file named "default.css" will overwrite the builtin "default.css".
128-
html_static_path = ['_static']
128+
#html_static_path = ['_static']
129129

130130
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
131131
# using the given strftime format.

docs/source/index.rst

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,39 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
python-sqlparse's documentation contents
7-
========================================
6+
python-sqlparse
7+
===============
8+
9+
:mod:`sqlparse` is a non-validating SQL parser for Python.
10+
It provides support for parsing, splitting and formatting SQL statements.
11+
12+
The module is compatible with Python 2 (>= 2.5) and Python 3 (>= 3.2)
13+
and released under the terms of the `New BSD license
14+
<http://www.opensource.org/licenses/bsd-license.php>`_.
15+
16+
Visit the project page at https://github.com/andialbrecht/sqlparse for
17+
further information about this project.
18+
19+
20+
tl;rd
21+
-----
22+
23+
.. code-block:: bash
24+
25+
$ pip install sqlparse
26+
$ python
27+
>>> import sqlparse
28+
>>> print(sqlparse.format('select * from foo', reindent=True))
29+
select *
30+
from foo
31+
>>> parsed = sqlparse.parse('select * from foo')[0]
32+
>>> parsed.tokens
33+
[<DML 'select' at 0x7f22c5e15368>, <Whitespace ' ' at 0x7f22c5e153b0>, <Wildcard '*' … ]
34+
>>>
35+
36+
37+
Contents
38+
--------
839
940
.. toctree::
1041
:maxdepth: 2
@@ -14,12 +45,17 @@ python-sqlparse's documentation contents
1445
analyzing
1546
ui
1647
changes
48+
indices
49+
1750
51+
Resources
52+
---------
1853
19-
Indices and tables
20-
==================
54+
Project page
55+
https://github.com/andialbrecht/sqlparse
2156
22-
* :ref:`genindex`
23-
* :ref:`modindex`
24-
* :ref:`search`
57+
Bug tracker
58+
https://github.com/andialbrecht/sqlparse/issues
2559
60+
Documentation
61+
http://sqlparse.readthedocs.org/

docs/source/indices.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Indices and tables
2+
==================
3+
4+
* :ref:`genindex`
5+
* :ref:`modindex`
6+
* :ref:`search`
7+

0 commit comments

Comments
 (0)