Skip to content

Commit 427f658

Browse files
authored
Merge pull request #804 from bashtage/update-index
DOC: Update index
2 parents 3c30089 + 88dee89 commit 427f658

File tree

2 files changed

+64
-6
lines changed

2 files changed

+64
-6
lines changed

docs/source/conf.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#
1313
# All configuration values have a default; values that are commented out
1414
# serve to show the default.
15+
import datetime as dt
16+
1517
import pandas_datareader as pdr
1618

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

5961
# General information about the project.
60-
project = u"pandas-datareader"
61-
copyright = u"2020, The PyData Development Team"
62+
project = "pandas-datareader"
63+
copyright = "2020, The PyData Development Team"
6264
author = "The PyData Development Team"
6365

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

81+
# Write version and build date
82+
with open("_version.txt", "w") as version_file:
83+
doc_date = dt.datetime.now().strftime("%B %-d, %Y")
84+
version_file.write(f"Version: **{version}** Date: **{doc_date}**\n")
85+
7986
# The language for content autogenerated by Sphinx. Refer to documentation
8087
# for a list of supported languages.
8188
#

docs/source/index.rst

+55-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,35 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
.. include:: ../../README.rst
76
8-
Documentation
9-
-------------
7+
pandas-datareader
8+
=================
9+
10+
.. include:: _version.txt
11+
12+
Up to date remote data access for pandas, works for multiple versions of pandas.
13+
14+
15+
Quick Start
16+
-----------
17+
18+
Install using ``pip``
19+
20+
.. code-block:: shell
21+
22+
pip install pandas-datareader
23+
24+
and then import and use one of the data readers. This example reads 5-years
25+
of 10-year constant maturity yields on U.S. government bonds.
26+
27+
.. code-block:: python
28+
29+
import pandas_datareader as pdr
30+
pdr.get_data_fred('GS10')
31+
32+
33+
Contents
34+
--------
1035

1136
Contents:
1237

@@ -19,10 +44,36 @@ Contents:
1944
readers/index
2045
whatsnew.rst
2146

47+
Documentation
48+
-------------
49+
50+
`Stable documentation <https://pydata.github.io/pandas-datareader/>`__
51+
is available on
52+
`github.io <https://pydata.github.io/pandas-datareader/>`__.
53+
A second copy of the stable documentation is hosted on
54+
`read the docs <https://pandas-datareader.readthedocs.io/>`_ for more details.
55+
56+
Recent developments
57+
-------------------
58+
You can install the latest development version using
59+
60+
.. code-block:: shell
61+
62+
pip install git+https://github.com/pydata/pandas-datareader.git
63+
64+
or
65+
66+
.. code-block:: shell
67+
68+
git clone https://github.com/pydata/pandas-datareader.git
69+
cd pandas-datareader
70+
python setup.py install
2271
72+
`Development documentation <https://pydata.github.io/pandas-datareader/devel/>`__
73+
is available for the latest changes in master.
2374

2475
Indices and tables
25-
==================
76+
------------------
2677

2778
* :ref:`genindex`
2879
* :ref:`modindex`

0 commit comments

Comments
 (0)