Skip to content

Commit d2c4f93

Browse files
authored
Merge pull request #1033 from wkliao/readthedocs
DOC: migrate documents to readthedocs
2 parents 261b0aa + f7565c1 commit d2c4f93

File tree

13 files changed

+3578
-27
lines changed

13 files changed

+3578
-27
lines changed

.readthedocs.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,30 @@ version: "2"
22

33
build:
44
os: "ubuntu-22.04"
5+
apt_packages:
6+
- autoconf
7+
- automake
8+
- libtool
9+
- libtool-bin
10+
- m4
511

612
tools:
713
python: "3.10"
14+
jobs:
15+
pre_install:
16+
# configure and install of darshan-util is required
17+
# Note DARSHAN_INSTALL_PREFIX is a readthedocs environment variable which
18+
# must be defined in the readthedocs dashboard
19+
- cd darshan-util && autoreconf -i
20+
- mkdir -p build && cd build && ../darshan-util/configure --prefix=$DARSHAN_INSTALL_PREFIX && make -j4 install
21+
# create pydarshan doc files
22+
- cd darshan-util/pydarshan && pip install -r requirements_dev.txt && make docs
823

924
python:
1025
install:
1126
- requirements: readthedocs/requirements.txt
27+
- method: pip
28+
path: darshan-util/pydarshan
1229

1330
sphinx:
1431
configuration: conf.py

conf.py

Lines changed: 118 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,131 @@
1-
# Configuration file for the Sphinx documentation builder.
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
#
4+
# Documentation build configuration file.
5+
# This file must be stored at the root directory with name "conf.py".
6+
#
27

3-
# -- Project information
8+
import darshan
49

10+
# -- General configuration ---------------------------------------------
11+
12+
# If your documentation needs a minimal Sphinx version, state it here.
13+
#
14+
# needs_sphinx = '1.0'
15+
16+
# Add any Sphinx extension module names here, as strings. They can be
17+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
18+
extensions = [
19+
'sphinx.ext.autodoc',
20+
'sphinx.ext.viewcode',
21+
'sphinx.ext.intersphinx',
22+
'sphinx.ext.napoleon',
23+
]
24+
25+
26+
napoleon_google_docstring = True
27+
napoleon_numpy_docstring = False
28+
napoleon_include_init_with_doc = True
29+
napoleon_include_private_with_doc = True
30+
napoleon_include_special_with_doc = True
31+
napoleon_use_ivar = True
32+
33+
# Add any paths that contain templates here, relative to this directory.
34+
templates_path = ['_templates']
35+
36+
# The suffix(es) of source filenames.
37+
# You can specify multiple suffix as a list of string:
38+
#
39+
# source_suffix = ['.rst', '.md']
40+
source_suffix = {'.rst': 'restructuredtext'}
41+
42+
# The master toctree document.
43+
master_doc = 'index'
44+
45+
# General information about the project.
546
project = u'Darshan'
647
copyright = u"2025, Argonne National Laboratory"
748
author = u""
849

9-
release = '0.1'
10-
version = '0.1.0'
50+
# The version info for the project you're documenting, acts as replacement
51+
# for |version| and |release|, also used in various other places throughout
52+
# the built documents.
53+
#
54+
# The short X.Y version.
55+
version = darshan.__version__
56+
# The full version, including alpha/beta/rc tags.
57+
release = darshan.__version__
1158

12-
# -- General configuration
59+
# List of patterns, relative to source directory, that match files and
60+
# directories to ignore when looking for source files.
61+
# This patterns also effect to html_static_path and html_extra_path
62+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
1363

14-
extensions = [
15-
'sphinx.ext.duration',
16-
'sphinx.ext.doctest',
17-
'sphinx.ext.autodoc',
18-
'sphinx.ext.autosummary',
19-
'sphinx.ext.intersphinx',
64+
# The name of the Pygments (syntax highlighting) style to use.
65+
pygments_style = 'sphinx'
66+
67+
# If true, `todo` and `todoList` produce output, else they produce nothing.
68+
todo_include_todos = False
69+
70+
71+
# -- Options for HTML output -------------------------------------------
72+
73+
# The theme to use for HTML and HTML Help pages. See the documentation for
74+
# a list of builtin themes.
75+
#
76+
#html_theme = 'alabaster'
77+
html_theme = 'sphinx_rtd_theme'
78+
79+
# Theme options are theme-specific and customize the look and feel of a
80+
# theme further. For a list of options available for each theme, see the
81+
# documentation.
82+
#
83+
# html_theme_options = {}
84+
85+
# -- Options for HTMLHelp output ---------------------------------------
86+
87+
# Output file base name for HTML help builder.
88+
htmlhelp_basename = 'darshandoc'
89+
90+
# -- Options for LaTeX output ------------------------------------------
91+
92+
latex_elements = {
93+
# The paper size ('letterpaper' or 'a4paper').
94+
#
95+
# 'papersize': 'letterpaper',
96+
97+
# The font size ('10pt', '11pt' or '12pt').
98+
#
99+
# 'pointsize': '10pt',
100+
101+
# Additional stuff for the LaTeX preamble.
102+
#
103+
# 'preamble': '',
104+
105+
# Latex figure (float) alignment
106+
#
107+
# 'figure_align': 'htbp',
108+
}
109+
110+
# Grouping the document tree into LaTeX files. List of tuples
111+
# (source start file, target name, title, author, documentclass
112+
# [howto, manual, or own class]).
113+
latex_documents = [
114+
(master_doc, 'darshan.tex', u'Darshan Documentation', u'Argonne National Laboratory', 'manual'),
20115
]
21116

117+
# -- Options for Texinfo output ----------------------------------------
118+
119+
# Grouping the document tree into Texinfo files. List of tuples
120+
# (source start file, target name, title, author,
121+
# dir menu entry, description, category)
122+
texinfo_documents = [
123+
(master_doc, 'darshan', u'Darshan Documentation', author, 'darshan', 'Utilities for Darshan HPC I/O instrumentation.', 'Miscellaneous'),
124+
]
125+
126+
22127
intersphinx_mapping = {
23-
'python': ('https://docs.python.org/3/', None),
24-
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
128+
"python": ('https://docs.python.org/', None),
129+
"matplotlib": ("https://matplotlib.org", None),
25130
}
26-
intersphinx_disabled_domains = ['std']
27-
28-
templates_path = ['_templates']
29131

darshan-runtime/doc/DXT-overhead.jpg

246 KB
Loading

0 commit comments

Comments
 (0)