Skip to content

Commit 914652d

Browse files
authored
Merge pull request #2206 from mithro/rtdfix
Fixing the Read The Docs action
2 parents 1d393d4 + b46ddb4 commit 914652d

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

.readthedocs.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
13+
# Build documentation in the "docs/" directory with Sphinx
14+
sphinx:
15+
configuration:
16+
17+
python:
18+
install:
19+
- requirements: doc/requirements.txt
20+
21+
formats:
22+
- pdf
23+
- epub

doc/conf.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from datetime import datetime
4+
5+
extensions = ['myst_parser']
6+
templates_path = ['templates', '_templates', '.templates']
7+
source_suffix = ['.rst', '.md']
8+
source_parsers = {
9+
'.rst': 'restructuredtext',
10+
'.md': 'markdown',
11+
}
12+
master_doc = 'index'
13+
project = u'verible'
14+
copyright = str(datetime.now().year)
15+
version = 'latest'
16+
release = 'latest'
17+
exclude_patterns = ['_build']
18+
pygments_style = 'sphinx'
19+
htmlhelp_basename = 'verible'
20+
html_theme = 'sphinx_rtd_theme'
21+
file_insertion_enabled = False
22+
latex_documents = [
23+
('index', 'verible.tex', u'verible Documentation', u'', 'manual'),
24+
]

doc/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Using Verible
2+
=============
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
7+
style_lint.md
8+
formatter.md
9+
indexing.md
10+
11+
Developing Verible
12+
==================
13+
14+
.. toctree::
15+
:maxdepth: 2
16+
17+
development.md
18+
parser_design.md

doc/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sphinx
2+
sphinx-rtd-theme
3+
pillow
4+
mock
5+
myst-parser

0 commit comments

Comments
 (0)