Skip to content

DOC: Update index #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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