Skip to content

Commit

Permalink
Merge pull request #2206 from mithro/rtdfix
Browse files Browse the repository at this point in the history
Fixing the Read The Docs action
  • Loading branch information
hzeller authored Jun 29, 2024
2 parents 1d393d4 + b46ddb4 commit 914652d
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Read the Docs configuration file for Sphinx projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"

# Build documentation in the "docs/" directory with Sphinx
sphinx:
configuration:

python:
install:
- requirements: doc/requirements.txt

formats:
- pdf
- epub
24 changes: 24 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-

from datetime import datetime

extensions = ['myst_parser']
templates_path = ['templates', '_templates', '.templates']
source_suffix = ['.rst', '.md']
source_parsers = {
'.rst': 'restructuredtext',
'.md': 'markdown',
}
master_doc = 'index'
project = u'verible'
copyright = str(datetime.now().year)
version = 'latest'
release = 'latest'
exclude_patterns = ['_build']
pygments_style = 'sphinx'
htmlhelp_basename = 'verible'
html_theme = 'sphinx_rtd_theme'
file_insertion_enabled = False
latex_documents = [
('index', 'verible.tex', u'verible Documentation', u'', 'manual'),
]
18 changes: 18 additions & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Using Verible
=============

.. toctree::
:maxdepth: 2

style_lint.md
formatter.md
indexing.md

Developing Verible
==================

.. toctree::
:maxdepth: 2

development.md
parser_design.md
5 changes: 5 additions & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sphinx
sphinx-rtd-theme
pillow
mock
myst-parser

0 comments on commit 914652d

Please sign in to comment.