Skip to content

Commit 78a1b18

Browse files
committed
Improved docs for generating documentation. Fixed #353
1 parent 473f97c commit 78a1b18

File tree

2 files changed

+62
-32
lines changed

2 files changed

+62
-32
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,21 @@ After developing, the full test suite can be evaluated by running:
8383
```sh
8484
python setup.py test # Use --pytest-args="-v -s" for verbose mode
8585
```
86+
87+
88+
### Documentation
89+
90+
The documentation is generated using the excellent [Sphinx](http://www.sphinx-doc.org/) and a custom theme.
91+
92+
The documentation dependencies are installed by running:
93+
94+
```sh
95+
cd docs
96+
pip install -r requirements.txt
97+
```
98+
99+
Then to produce a HTML version of the documentation:
100+
101+
```sh
102+
make html
103+
```

README.rst

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
1-
Please read `UPGRADE-v1.0.md`_ to learn how to upgrade to Graphene ``1.0``.
1+
Please read `UPGRADE-v1.0.md </UPGRADE-v1.0.md>`__ to learn how to
2+
upgrade to Graphene ``1.0``.
23

34
--------------
45

5-
|Graphene Logo| `Graphene`_ |Build Status| |PyPI version| |Coverage Status|
6-
===========================================================================
6+
|Graphene Logo| `Graphene <http://graphene-python.org>`__ |Build Status| |PyPI version| |Coverage Status|
7+
=========================================================================================================
78

8-
`Graphene`_ is a Python library for building GraphQL schemas/types fast
9-
and easily.
9+
`Graphene <http://graphene-python.org>`__ is a Python library for
10+
building GraphQL schemas/types fast and easily.
1011

1112
- **Easy to use:** Graphene helps you use GraphQL in Python without
1213
effort.
1314
- **Relay:** Graphene has builtin support for Relay
1415
- **Data agnostic:** Graphene supports any kind of data source: SQL
15-
(Django, SQLAlchemy), NoSQL, custom Python objects, etc. We believe that
16-
by providing a complete API you could plug Graphene anywhere your
17-
data lives and make your data available through GraphQL.
16+
(Django, SQLAlchemy), NoSQL, custom Python objects, etc. We believe
17+
that by providing a complete API you could plug Graphene anywhere
18+
your data lives and make your data available through GraphQL.
1819

1920
Integrations
2021
------------
2122

2223
Graphene has multiple integrations with different frameworks:
2324

24-
+---------------------+-------------------------------------+
25-
| integration | Package |
26-
+=====================+=====================================+
27-
| Django | `graphene-django`_ |
28-
+---------------------+-------------------------------------+
29-
| SQLAlchemy | `graphene-sqlalchemy`_ |
30-
+---------------------+-------------------------------------+
31-
| Google App Engine | `graphene-gae`_ |
32-
+---------------------+-------------------------------------+
33-
| Peewee | *In progress* (`Tracking Issue`_) |
34-
+---------------------+-------------------------------------+
25+
+---------------------+----------------------------------------------------------------------------------------------+
26+
| integration | Package |
27+
+=====================+==============================================================================================+
28+
| Django | `graphene-django <https://github.com/graphql-python/graphene-django/>`__ |
29+
+---------------------+----------------------------------------------------------------------------------------------+
30+
| SQLAlchemy | `graphene-sqlalchemy <https://github.com/graphql-python/graphene-sqlalchemy/>`__ |
31+
+---------------------+----------------------------------------------------------------------------------------------+
32+
| Google App Engine | `graphene-gae <https://github.com/graphql-python/graphene-gae/>`__ |
33+
+---------------------+----------------------------------------------------------------------------------------------+
34+
| Peewee | *In progress* (`Tracking Issue <https://github.com/graphql-python/graphene/issues/289>`__) |
35+
+---------------------+----------------------------------------------------------------------------------------------+
3536

3637
Installation
3738
------------
@@ -45,7 +46,8 @@ For instaling graphene, just run this command in your shell
4546
1.0 Upgrade Guide
4647
-----------------
4748

48-
Please read `UPGRADE-v1.0.md`_ to learn how to upgrade.
49+
Please read `UPGRADE-v1.0.md </UPGRADE-v1.0.md>`__ to learn how to
50+
upgrade.
4951

5052
Examples
5153
--------
@@ -74,10 +76,11 @@ Then Querying ``graphene.Schema`` is as simple as:
7476
result = schema.execute(query)
7577
7678
If you want to learn even more, you can also check the following
77-
`examples`_:
79+
`examples <examples/>`__:
7880

79-
- **Basic Schema**: `Starwars example`_
80-
- **Relay Schema**: `Starwars Relay example`_
81+
- **Basic Schema**: `Starwars example <examples/starwars>`__
82+
- **Relay Schema**: `Starwars Relay
83+
example <examples/starwars_relay>`__
8184

8285
Contributing
8386
------------
@@ -94,15 +97,24 @@ After developing, the full test suite can be evaluated by running:
9497
9598
python setup.py test # Use --pytest-args="-v -s" for verbose mode
9699
97-
.. _UPGRADE-v1.0.md: /UPGRADE-v1.0.md
98-
.. _Graphene: http://graphene-python.org
99-
.. _graphene-django: https://github.com/graphql-python/graphene-django/
100-
.. _graphene-sqlalchemy: https://github.com/graphql-python/graphene-sqlalchemy/
101-
.. _graphene-gae: https://github.com/graphql-python/graphene-gae/
102-
.. _Tracking Issue: https://github.com/graphql-python/graphene/issues/289
103-
.. _examples: examples/
104-
.. _Starwars example: examples/starwars
105-
.. _Starwars Relay example: examples/starwars_relay
100+
Documentation
101+
~~~~~~~~~~~~~
102+
103+
The documentation is generated using the excellent
104+
`Sphinx <http://www.sphinx-doc.org/>`__ and a custom theme.
105+
106+
The documentation dependencies are installed by running:
107+
108+
.. code:: sh
109+
110+
cd docs
111+
pip install -r requirements.txt
112+
113+
Then to produce a HTML version of the documentation:
114+
115+
.. code:: sh
116+
117+
make html
106118
107119
.. |Graphene Logo| image:: http://graphene-python.org/favicon.png
108120
.. |Build Status| image:: https://travis-ci.org/graphql-python/graphene.svg?branch=master

0 commit comments

Comments
 (0)