Skip to content

Commit a2af453

Browse files
committed
FIX: Fix documentation generation on RTD
Update mocking to improve RTD documentation generation
1 parent 7d078cd commit a2af453

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import sys
1717
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
1818

19-
if on_rtd:
19+
if False: # on_rtd:
2020
try:
2121
from unittest.mock import MagicMock
2222
except ImportError:

doc/source/unitroot/unitroot.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Unit Root Testing
2-
=================
2+
-----------------
33

44
Many time series are highly persistent, and determining whether the data appear
55
to be stationary or contains a unit root is the first step in many analyses.
@@ -19,12 +19,12 @@ process with an alternative of a unit root.
1919
.. toctree::
2020
:maxdepth: 2
2121

22-
Unit Root Tests <tests>
2322
Examples <unitroot_examples>
23+
Unit Root Tests <tests>
2424

2525

2626
Introduction
27-
------------
27+
============
2828

2929
All tests expect a 1-d series as the first input. The input can be any array that can be `squeeze`d to 1-d, a pandas
3030
`Series` or a pandas `DataFrame` that contains a single variable.
@@ -42,7 +42,7 @@ All tests share a common structure. The key elements are:
4242
* `summary()` - Returns a summary object that can be printed to get a formatted table
4343

4444
Basic Example
45-
-------------
45+
=============
4646

4747
This basic example show the use of the Augmented-Dickey fuller to test whether the default premium, defined as the
4848
difference between the yields of large portfolios of BAA and AAA bonds. This example uses a constant and time trend.

0 commit comments

Comments
 (0)