Skip to content

Commit

Permalink
Set up readthedocs (#31)
Browse files Browse the repository at this point in the history
* set up readthedocs

* fix typo and broken link

* remove sphinx _templates folder
  • Loading branch information
OriolAbril authored Mar 18, 2022
1 parent 576931b commit 2343803
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 221 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/publish-docs-release.yml

This file was deleted.

65 changes: 0 additions & 65 deletions .github/workflows/publish-docs.yml

This file was deleted.

15 changes: 15 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2

build:
os: ubuntu-20.04
tools:
python: "3.9"

python:
install:
- requirements: requirements-docs.txt
- requirements: requirements.txt
- method: pip
path: .
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributing guide

Page in construction, for now go to https://github.com/pymc-devs/pymc-experimental#questions.
66 changes: 0 additions & 66 deletions docs/_templates/versioning.html

This file was deleted.

31 changes: 1 addition & 30 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,12 @@
"sphinx.ext.napoleon",
"sphinx.ext.mathjax",
"nbsphinx",
"sphinx_multiversion",
]

nbsphinx_execute = "never"

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

html_sidebars = {"**": ["searchbox.html", "versioning.html"]}
# templates_path = ["_templates"]

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
Expand Down Expand Up @@ -113,32 +110,6 @@
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# The default sidebars (for documents that don't match any pattern) are
# defined by theme itself. Builtin themes are using these templates by
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
# 'searchbox.html']``.
#
# html_sidebars = {}

# Whitelist pattern for remotes (set to None to use local branches only)
smv_remote_whitelist = r"^origin$"

# Whitelist pattern for branches (set to None to ignore all branches)
smv_branch_whitelist = r"^main$"

# Tags are released
smv_released_pattern = r"^refs/tags/.*$"

# Tags like 0.0.1, 0.5.1 are kept
# smv_tag_whitelist = r'^\d+\.\d+\.\d+S'

# sphinx-multiversion options
smv_rebuild_tags = False
smv_tag_whitelist = r"^\d+\.\d+.\d+$"

# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
Expand Down
3 changes: 1 addition & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ Installation

.. code-block:: bash
pip install git+https://github.com/pymc-devs/pymc_experimental.git
pip install git+https://github.com/pymc-devs/pymc-experimental.git
Contributing
============
Expand Down
4 changes: 0 additions & 4 deletions requirements-dev.txt

This file was deleted.

3 changes: 3 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nbsphinx>=0.4.2
pydata-sphinx-theme>=0.6.3
sphinx>=4

0 comments on commit 2343803

Please sign in to comment.