Skip to content

Commit 197b8ba

Browse files
committed
Update sphinx docs per OASIS-6317 (#252)
* Change pip8 to flake8 * Update contributing link to work in sphinx docs * Remove Event Builder * Change “Bucketing Algorithm Methods” to “Bucketing” * Update project name * Include README to table of contents * Create readme.rst for readme.md
1 parent 43ff395 commit 197b8ba

File tree

7 files changed

+14
-27
lines changed

7 files changed

+14
-27
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Development process
1515
2. Please follow the [commit message guidelines](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines)
1616
for each commit message.
1717
3. Make sure to add tests!
18-
4. Run `pep8` to ensure there are no lint errors.
18+
4. Run `flake8` to ensure there are no lint errors.
1919
5. `git push` your changes to GitHub.
2020
6. Open a PR from your fork into the master branch of the original
2121
repo.
@@ -34,13 +34,12 @@ Pull request acceptance criteria
3434
- Tests are located in `/tests` with one file per class.
3535
- Please don't change the `__version__`. We'll take care of bumping
3636
the version when we next release.
37-
- Lint your code with PEP-8 before submitting.
37+
- Lint your code with Flake8 before submitting.
3838

3939
Style
4040
-----
4141

42-
We enforce Flake8 rules with a few minor
43-
[deviations](https://github.com/optimizely/python-sdk/blob/master/tox.ini).
42+
We enforce Flake8 rules.
4443

4544
License
4645
-------

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@ would be:
200200

201201
### Contributing
202202

203-
Please see [CONTRIBUTING](CONTRIBUTING.md).
203+
Please see [CONTRIBUTING](https://github.com/optimizely/python-sdk/blob/master/CONTRIBUTING.md).

docs/source/api_reference.rst

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,6 @@ Optimizely's APIs
44
:members:
55

66

7-
Event Builder
8-
=============
9-
10-
``Event``
11-
---------
12-
13-
.. autoclass:: optimizely.event_builder.Event
14-
:members:
15-
16-
``EventBuilder``
17-
----------------
18-
19-
.. autoclass:: optimizely.event_builder.EventBuilder
20-
:members:
21-
22-
237
Event Dispatcher
248
================
259
.. autoclass:: optimizely.event_dispatcher.EventDispatcher

docs/source/bucketing_algorithm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Bucketing Algorithm Methods
2-
===========================
1+
Bucketing
2+
=========
33
.. automodule:: optimizely.bucketer
44
:members:
55

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# -- Project information -----------------------------------------------------
2020

21-
project = 'Python SDK'
21+
project = 'Optimizely Python SDK'
2222
copyright = '2016-2020, Optimizely, Inc'
2323
author = 'Optimizely, Inc.'
2424
version = __version__

docs/source/index.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
Python SDK
2-
==========
1+
Optimizely Python SDK
2+
=====================
33

4-
.. mdinclude:: ../../README.md
4+
.. toctree::
5+
:caption: Introduction
6+
7+
readme
58

69

710
.. toctree::

docs/source/readme.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. mdinclude:: ../../README.md

0 commit comments

Comments
 (0)