Skip to content

Commit ccc93b7

Browse files
committed
cleaned up the docs
1 parent 0aece6c commit ccc93b7

File tree

16 files changed

+130
-85
lines changed

16 files changed

+130
-85
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ipdb==0.11
2-
ipython==7.1.1
2+
ipython==7.8.0
33
twine==1.12.1
44
mypy==0.720

docs/src/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Welcome to Piccolo's documentation!
22
===================================
33

44
.. toctree::
5-
:maxdepth: 2
5+
:maxdepth: 1
66
:caption: Contents:
77

88
piccolo/getting_started/index
@@ -14,8 +14,8 @@ Welcome to Piccolo's documentation!
1414
piccolo/authentication/index
1515
piccolo/features/index
1616
piccolo/playground/index
17-
piccolo/articles/index
1817
piccolo/ecosystem/index
18+
piccolo/contributing/index
1919

2020
Indices and tables
2121
==================

docs/src/piccolo/articles/index.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/src/piccolo/articles/tuning_postgres.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.. _Contributing:
2+
3+
Contributing
4+
============
5+
6+
If you want to dig deeper into the Piccolo internals, follow these
7+
instructions.
8+
9+
Get the tests running
10+
---------------------
11+
12+
* Create a new virtualenv
13+
* Clone the `Git repo <https://github.com/piccolo-orm/piccolo>`_.
14+
* Install the dependencies: ``pip install -r requirements.txt``.
15+
* ``cd tests``
16+
* Install the test dependencies: ``pip install -r test-requirements.txt``.
17+
* Setup Postgres
18+
* Run the tests: ``./run-tests.sh``
19+
20+
Contributing to the docs
21+
------------------------
22+
23+
The docs are written using Sphinx. To get them running locally:
24+
25+
* ``cd docs``
26+
* Install the requirements: ``pip install -r doc-requirements.txt``
27+
* Do an initial build of the docs: ``make html``
28+
* Serve the docs: ``python serve_docs.py``
29+
* The docs will auto rebuild as you make changes.

docs/src/piccolo/features/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ Features
66

77
./tab_completion
88
./supported_databases
9+
./security
10+
./syntax
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.. _Security:
2+
3+
Security
4+
========
5+
6+
SQL Injection protection
7+
------------------------
8+
9+
If you look under the hood, Piccolo uses a custom class called `QueryString`
10+
for composing queries. It keeps query parameters separate from the query
11+
string, so we can pass parameterised queries to the engine. This helps
12+
prevent SQL Injection attacks.

docs/src/piccolo/features/supported_databases.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ will be using in production.
88

99
SQLite
1010
------
11-
SQLite support is not as complete as Postgres, but it is available.
11+
SQLite support is not as complete as Postgres, but it is available - mostly
12+
because it's easy to setup.

docs/src/piccolo/articles/design_decisions.rst renamed to docs/src/piccolo/features/syntax.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Design Decisions
2-
================
1+
Syntax
2+
======
33

44
As close as possible to SQL
55
---------------------------

docs/src/piccolo/features/tab_completion.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Tab Completion
44
==============
55

6-
Why is tab completion useful?
7-
------------------------------
6+
Piccolo does everything possible to support tab completion. It has been tested
7+
with iPython and VSCode.
88

9-
...
9+
To find out more about how it was done, read `this article <https://piccolo-orm.com/blog/improving-tab-completion-in-python-libraries>`_

0 commit comments

Comments
 (0)