Skip to content

Commit

Permalink
Configure ReadTheDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-schulze-vireso committed Nov 23, 2020
1 parent d4fbad3 commit 1f312d5
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 37 deletions.
9 changes: 9 additions & 0 deletions .readthedocs.yml
@@ -0,0 +1,9 @@
version: 2

sphinx:
configuration: docs/source/conf.py

python:
version: 3.7
install:
- requirements: docs/source/requirements.txt
18 changes: 0 additions & 18 deletions .travis.yml
Expand Up @@ -2,7 +2,6 @@ language: bash

stages:
- test
- deploy

os:
- linux
Expand All @@ -21,23 +20,6 @@ matrix:
include:
- os: osx
env: ''
- stage: deploy
env: ''
before_script:
- sudo apt-get install python3-pip
- sudo pip3 install sphinx-multiversion sphinxcontrib-programoutput recommonmark
script:
- |
mkdir html
sphinx-multiversion docs/source html
before_deploy:
- touch html/.nojekyll
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: false
local_dir: html

services:
- docker
Expand Down
Empty file added docs/source/_static/.gitkeep
Empty file.
Empty file added docs/source/_templates/.gitkeep
Empty file.
9 changes: 0 additions & 9 deletions docs/source/_templates/versioning.html

This file was deleted.

8 changes: 3 additions & 5 deletions docs/source/conf.py
Expand Up @@ -32,8 +32,7 @@
# ones.
extensions = [
'recommonmark',
'sphinxcontrib.programoutput',
'sphinx_multiversion'
'sphinxcontrib.programoutput'
]

# Add any paths that contain templates here, relative to this directory.
Expand All @@ -44,8 +43,7 @@
'navigation.html',
'relations.html',
'searchbox.html',
'donate.html',
'versioning.html'] }
'donate.html'] }

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -58,7 +56,7 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'alabaster'
#html_theme = 'alabaster'

# 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
7 changes: 2 additions & 5 deletions docs/source/index.rst
@@ -1,11 +1,8 @@
.. bats-core documentation master file, created by
sphinx-quickstart on Wed Sep 2 23:33:57 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to bats-core's documentation!
=====================================

Versions before v1.2.1 are documented over `there <https://github.com/bats-core/bats-core/blob/master/docs/versions.md>`_.

.. toctree::
:maxdepth: 2
:caption: Contents:
Expand Down
2 changes: 2 additions & 0 deletions docs/source/requirements.txt
@@ -0,0 +1,2 @@
sphinxcontrib-programoutput
recommonmark

0 comments on commit 1f312d5

Please sign in to comment.