Freshening up documentation
This commit is contained in:
parent
597d27117c
commit
7573f29950
@ -7,7 +7,7 @@ eRepublik script
|
|||||||
:target: https://pypi.python.org/pypi/erepublik
|
:target: https://pypi.python.org/pypi/erepublik
|
||||||
|
|
||||||
.. image:: https://readthedocs.org/projects/erepublik_script/badge/?version=latest
|
.. image:: https://readthedocs.org/projects/erepublik_script/badge/?version=latest
|
||||||
:target: https://erepublik_script.readthedocs.io/en/latest/?badge=latest
|
:target: https://erepublik.readthedocs.io/en/latest/?badge=latest
|
||||||
:alt: Documentation Status
|
:alt: Documentation Status
|
||||||
|
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ Python package for automated eRepublik playing
|
|||||||
|
|
||||||
|
|
||||||
* Free software: MIT license
|
* Free software: MIT license
|
||||||
* Documentation: https://erepublik.readthedocs.io.
|
* Documentation: https://erepublik.readthedocs.io/en/latest/
|
||||||
|
|
||||||
|
|
||||||
Features
|
Features
|
||||||
|
@ -23,6 +23,7 @@ import sys
|
|||||||
sys.path.insert(0, os.path.abspath('..'))
|
sys.path.insert(0, os.path.abspath('..'))
|
||||||
|
|
||||||
import erepublik
|
import erepublik
|
||||||
|
import edx_theme
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------
|
# -- General configuration ---------------------------------------------
|
||||||
|
|
||||||
@ -32,7 +33,7 @@ import erepublik
|
|||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be
|
# Add any Sphinx extension module names here, as strings. They can be
|
||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
||||||
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode']
|
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'edx_theme']
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
templates_path = ['_templates']
|
templates_path = ['_templates']
|
||||||
@ -84,7 +85,8 @@ todo_include_todos = False
|
|||||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||||
# a list of builtin themes.
|
# a list of builtin themes.
|
||||||
#
|
#
|
||||||
html_theme = 'alabaster'
|
html_theme = 'edx_theme'
|
||||||
|
html_theme_path = [edx_theme.get_html_theme_path()]
|
||||||
|
|
||||||
# Theme options are theme-specific and customize the look and feel of a
|
# Theme options are theme-specific and customize the look and feel of a
|
||||||
# theme further. For a list of options available for each theme, see the
|
# theme further. For a list of options available for each theme, see the
|
||||||
@ -158,6 +160,3 @@ texinfo_documents = [
|
|||||||
'One line description of project.',
|
'One line description of project.',
|
||||||
'Miscellaneous'),
|
'Miscellaneous'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,13 +32,13 @@ You can either clone the public repository:
|
|||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ git clone git://github.com/eeriks/erepublik_script
|
$ git clone git://github.com/eeriks/erepublik
|
||||||
|
|
||||||
Or download the `tarball`_:
|
Or download the `tarball`_:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ curl -OL https://github.com/eeriks/erepublik_script/tarball/master
|
$ curl -OL https://github.com/eeriks/erepublik/tarball/master
|
||||||
|
|
||||||
Once you have a copy of the source, you can install it with:
|
Once you have a copy of the source, you can install it with:
|
||||||
|
|
||||||
@ -47,5 +47,5 @@ Once you have a copy of the source, you can install it with:
|
|||||||
$ python setup.py install
|
$ python setup.py install
|
||||||
|
|
||||||
|
|
||||||
.. _Github repo: https://github.com/eeriks/erepublik_script
|
.. _Github repo: https://github.com/eeriks/erepublik
|
||||||
.. _tarball: https://github.com/eeriks/erepublik_script/tarball/master
|
.. _tarball: https://github.com/eeriks/erepublik/tarball/master
|
||||||
|
@ -9,7 +9,7 @@ if "%SPHINXBUILD%" == "" (
|
|||||||
)
|
)
|
||||||
set SOURCEDIR=.
|
set SOURCEDIR=.
|
||||||
set BUILDDIR=_build
|
set BUILDDIR=_build
|
||||||
set SPHINXPROJ=erepublik_script
|
set SPHINXPROJ=erepublik
|
||||||
|
|
||||||
if "%1" == "" goto help
|
if "%1" == "" goto help
|
||||||
|
|
||||||
|
@ -4,4 +4,7 @@ Usage
|
|||||||
|
|
||||||
To use eRepublik script in a project::
|
To use eRepublik script in a project::
|
||||||
|
|
||||||
import erepublik
|
from erepublik import Citizen
|
||||||
|
player = Citizen('email@domain.com', 'password')
|
||||||
|
player.update_all()
|
||||||
|
|
||||||
|
@ -13,3 +13,4 @@ pytz==2019.1
|
|||||||
requests==2.22.0
|
requests==2.22.0
|
||||||
pycryptodome==3.8.2
|
pycryptodome==3.8.2
|
||||||
python-slugify==2.0.1
|
python-slugify==2.0.1
|
||||||
|
edx-sphinx-theme
|
||||||
|
Loading…
x
Reference in New Issue
Block a user