Skip to content

Commit

Permalink
reorganizing docs and using pydata theme (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Feb 15, 2020
1 parent e8e1e97 commit 4150051
Show file tree
Hide file tree
Showing 15 changed files with 54 additions and 28 deletions.
Binary file added docs/_static/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"myst_parser",
"sphinxcontrib.bibtex",
]
extensions = ["myst_parser", "sphinxcontrib.bibtex"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
Expand All @@ -47,7 +44,8 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "alabaster"
html_theme = "pandas_sphinx_theme"
html_logo = "_static/logo.png"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions docs/develop/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contribute to MyST

This section covers documentation relevant to developing and maintaining the MyST
codebase, and some guidelines for how you can contribute.

```{toctree}
contributing.md
```
4 changes: 4 additions & 0 deletions docs/heavy_tails.md → docs/examples/heavy_tails.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
---
orphan: true
---

# DUMMY DOCUMENT FOR TESTING :doc: ROLE
File renamed without changes
12 changes: 12 additions & 0 deletions docs/examples/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Example documents

The following pages are examples meant to highlight the functionality of
Myst documents.

```{toctree}
---
caption: Compare rST and MyST versions
---
wealth_dynamics_rst.rst
wealth_dynamics_md.md
```
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
---
orphan: true
---
# DUMMY DOCUMENT FOR TESTING :doc: ROLE
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Wealth Distribution Dynamics
# Wealth Distribution Dynamics in MyST

In addition to what's in Anaconda, this lecture will need the following
libraries:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. highlight:: python3


****************************
Wealth Distribution Dynamics
****************************
***********************************
Wealth Distribution Dynamics in rST
***********************************

.. contents:: :depth: 2

Expand Down
21 changes: 3 additions & 18 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,7 @@ Here are the site contents:
maxdepth: 2
caption: Contents
---
syntax.md
contributing.md
```

```{toctree}
---
caption: Example pages
---
wealth_dynamics_rst.rst
wealth_dynamics_md.md
```

```{toctree}
---
hidden: True
---
heavy_tails.md
kesten_processes.md
using/index.md
examples/index.md
develop/index.md
```
8 changes: 8 additions & 0 deletions docs/using/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Using MyST

The following pages are examples meant to highlight the functionality of
Myst documents.

```{toctree}
syntax.md
```
File renamed without changes.
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@
)
],
extras_require={
"sphinx": ["pyyaml", "docutils>=0.15", "sphinx>=2,<3"],
"sphinx": [
"pyyaml",
"docutils>=0.15",
"sphinx>=2,<3",
(
"pandas_sphinx_theme @ "
"https://github.com/pandas-dev/pandas-sphinx-theme/archive/master.zip"
),
],
"code_style": ["flake8<3.8.0,>=3.7.0", "black", "pre-commit==1.17.0"],
"testing": [
"coverage",
Expand Down

0 comments on commit 4150051

Please sign in to comment.