Skip to content

Commit

Permalink
docs: Use readthedocs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
nomis committed Mar 31, 2024
1 parent b3a60e5 commit dfc04a4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ build:
os: ubuntu-lts-latest
tools:
python: latest
python:
install:
- requirements: .readthedocs/requirements.txt
formats: all
1 change: 1 addition & 0 deletions .readthedocs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sphinx-rtd-theme
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import os

travis_ci = os.environ.get("TRAVIS") == 'true'
rtd = os.environ.get("READTHEDOCS") == 'True'

needs_sphinx = '1.3'
extensions = []
source_suffix = ['.rst']

project = u'dtee'
copyright = u'2018-2023, Simon Arlott'
copyright = u'2018-2024, Simon Arlott'
author = u'Simon Arlott'

master_doc = 'index'
Expand All @@ -23,6 +24,9 @@
pygments_style = 'sphinx'
todo_include_todos = False

if rtd:
html_theme = 'sphinx_rtd_theme'

man_pages = [
(manual_doc, 'dtee', u'Run a program with standard output and standard error copied to files', [author], 1)
]
Expand Down

0 comments on commit dfc04a4

Please sign in to comment.