Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon McClure committed Feb 15, 2018
1 parent 369abee commit 589e657
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/source/conf.py
@@ -1,6 +1,15 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import os
import sys

import django

sys.path.insert(0, os.path.abspath('../..'))

os.environ['DJANGO_SETTINGS_MODULE'] = 'example.exampleapp.settings'
django.setup()

# -- General configuration ------------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Expand Up @@ -9,6 +9,7 @@ Welcome to django-politico-civic-vote's documentation!

Why this? <why>
Quickstart <quickstart>
Models <models>



Expand Down
11 changes: 11 additions & 0 deletions docs/source/models.rst
@@ -0,0 +1,11 @@
Models
======

.. automodule:: vote.models.delegates
:members:

.. automodule:: vote.models.electoral_votes
:members:

.. automodule:: vote.models.votes
:members:
4 changes: 3 additions & 1 deletion example/Pipfile
Expand Up @@ -21,6 +21,8 @@ geography = {git = "ssh://git@github.com/The-Politico/politico-civic-geography",
government = {git = "ssh://git@github.com/The-Politico/politico-civic-government", editable = true}
election = {git = "ssh://git@github.com/The-Politico/politico-civic-election", editable = true}
"vote" = {path = "./..", editable = true}

"sphinx" = "*"
"sphinx_rtd_theme" = "*"
"sphinxcontrib-django" = "*"

[dev-packages]
117 changes: 116 additions & 1 deletion example/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vote/models/votes.py
Expand Up @@ -5,7 +5,7 @@


class Votes(BaseResult):
"""Popular vote results."""
"""Popular votes."""
candidate_election = models.ForeignKey(
CandidateElection,
null=True, blank=True, related_name="votes",
Expand Down

0 comments on commit 589e657

Please sign in to comment.