Skip to content

Commit c85012b

Browse files
committed
first build of docs
Signed-off-by: Amit Sharma <[email protected]>
1 parent 653777e commit c85012b

File tree

6 files changed

+173
-4
lines changed

6 files changed

+173
-4
lines changed

docs/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = .
9+
BUILDDIR = _build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
16.5 KB
Loading

docs/conf.py

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5+
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8+
9+
project = 'PyWhyLLM'
10+
copyright = '2025, PyWhy Contributors'
11+
author = 'PyWhy Contributors'
12+
13+
# -- General configuration ---------------------------------------------------
14+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
15+
16+
extensions = [
17+
"sphinx.ext.autodoc",
18+
"sphinx.ext.viewcode",
19+
"sphinx.ext.todo",
20+
"nbsphinx",
21+
"sphinx_mdinclude",
22+
# "sphinxcontrib.googleanalytics",
23+
"sphinx_copybutton",
24+
"sphinx_design",
25+
]
26+
27+
# sphinx-panels shouldn't add bootstrap css since the pydata-sphinx-theme
28+
# already loads it
29+
panels_add_bootstrap_css = False
30+
31+
#googleanalytics_id = "" # TODO add
32+
copybutton_prompt_text = ">>> "
33+
34+
autodoc_mock_imports = ["matplotlib"]
35+
36+
# Add any paths that contain templates here, relative to this directory.
37+
templates_path = ["_templates"]
38+
39+
# The suffix(es) of source filenames.
40+
# You can specify multiple suffix as a list of string:
41+
#
42+
source_suffix = ['.rst', '.md']
43+
44+
# The master toctree document.
45+
master_doc = "index"
46+
47+
# The language for content autogenerated by Sphinx. Refer to documentation
48+
# for a list of supported languages.
49+
#
50+
# This is also used if you do content translation via gettext catalogs.
51+
# Usually you set "language" from the command line for these cases.
52+
language = "en"
53+
54+
# List of patterns, relative to source directory, that match files and
55+
# directories to ignore when looking for source files.
56+
# This pattern also affects html_static_path and html_extra_path .
57+
exclude_patterns = [
58+
"_build",
59+
"Thumbs.db",
60+
".DS_Store",
61+
".ipynb_checkpoints",
62+
]
63+
64+
# The name of the Pygments (syntax highlighting) style to use.
65+
pygments_style = "sphinx"
66+
67+
68+
# -- Options for HTML output -------------------------------------------------
69+
70+
# The theme to use for HTML and HTML Help pages. See the documentation for
71+
# a list of builtin themes.
72+
#
73+
html_theme = "pydata_sphinx_theme"
74+
75+
# Theme options are theme-specific and customize the look and feel of a theme
76+
# further. For a list of options available for each theme, see the
77+
# documentation.
78+
#
79+
# html_theme_options = {"navbar_end": ["navbar-icon-links", "versions"]}
80+
81+
# Add any paths that contain custom static files (such as style sheets) here,
82+
# relative to this directory. They are copied after the builtin static files,
83+
# so a file named "default.css" will overwrite the builtin "default.css".
84+
html_static_path = ["_static"]
85+
86+
#
87+
88+
templates_path = ['_templates']
89+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
90+
91+
92+
# -- Options for HTMLHelp output ---------------------------------------------
93+
94+
# Output file base name for HTML help builder.
95+
htmlhelp_basename = "pywhyllmdoc"
96+
97+
html_logo = "_static/pywhyllm-logo-small.png"
98+

docs/index.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.. PyWhyLLM documentation master file, created by
2+
sphinx-quickstart on Sun Mar 16 14:49:13 2025.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to PyWhyLLM's documentation!
7+
====================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
.. mdinclude:: ../README.md
14+
15+
Indices and tables
16+
==================
17+
18+
* :ref:`genindex`
19+
* :ref:`modindex`
20+
* :ref:`search`

docs/make.bat

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=.
11+
set BUILDDIR=_build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

docs/source/index.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)