Skip to content

Commit

Permalink
Merge pull request #804 from bashtage/update-index
Browse files Browse the repository at this point in the history
DOC: Update index
  • Loading branch information
bashtage authored Jul 7, 2020
2 parents 3c30089 + 88dee89 commit 427f658
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 6 deletions.
11 changes: 9 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import datetime as dt

import pandas_datareader as pdr

# Add any Sphinx extension module names here, as strings. They can be
Expand Down Expand Up @@ -57,8 +59,8 @@
master_doc = "index"

# General information about the project.
project = u"pandas-datareader"
copyright = u"2020, The PyData Development Team"
project = "pandas-datareader"
copyright = "2020, The PyData Development Team"
author = "The PyData Development Team"

# The version info for the project you're documenting, acts as replacement for
Expand All @@ -76,6 +78,11 @@
# The full version, including alpha/beta/rc tags.
release = pdr.__version__

# Write version and build date
with open("_version.txt", "w") as version_file:
doc_date = dt.datetime.now().strftime("%B %-d, %Y")
version_file.write(f"Version: **{version}** Date: **{doc_date}**\n")

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#
Expand Down
59 changes: 55 additions & 4 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,35 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. include:: ../../README.rst
Documentation
-------------
pandas-datareader
=================

.. include:: _version.txt

Up to date remote data access for pandas, works for multiple versions of pandas.


Quick Start
-----------

Install using ``pip``

.. code-block:: shell
pip install pandas-datareader
and then import and use one of the data readers. This example reads 5-years
of 10-year constant maturity yields on U.S. government bonds.

.. code-block:: python
import pandas_datareader as pdr
pdr.get_data_fred('GS10')
Contents
--------

Contents:

Expand All @@ -19,10 +44,36 @@ Contents:
readers/index
whatsnew.rst

Documentation
-------------

`Stable documentation <https://pydata.github.io/pandas-datareader/>`__
is available on
`github.io <https://pydata.github.io/pandas-datareader/>`__.
A second copy of the stable documentation is hosted on
`read the docs <https://pandas-datareader.readthedocs.io/>`_ for more details.

Recent developments
-------------------
You can install the latest development version using

.. code-block:: shell
pip install git+https://github.com/pydata/pandas-datareader.git
or

.. code-block:: shell
git clone https://github.com/pydata/pandas-datareader.git
cd pandas-datareader
python setup.py install
`Development documentation <https://pydata.github.io/pandas-datareader/devel/>`__
is available for the latest changes in master.

Indices and tables
==================
------------------

* :ref:`genindex`
* :ref:`modindex`
Expand Down

0 comments on commit 427f658

Please sign in to comment.