Skip to content

Commit

Permalink
sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Jan 4, 2025
1 parent c15b608 commit 3ae0608
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/hello-world/book/sphinx/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.wy-nav-content { max-width: 100% }
52 changes: 52 additions & 0 deletions .github/hello-world/book/sphinx/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
from __future__ import annotations

project = ".github"

master_doc = "index"

source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}

extensions = [
"sphinx.ext.viewcode",
"sphinx.ext.mathjax",
"sphinx.ext.napoleon",
"autoapi.extension",
]


source_dir = "cvx"
autoapi_type = "python"
autoapi_dirs = [f"../../{source_dir}"]
autoapi_options = [
"members",
"undoc-members",
"show-inheritance",
"private-members",
"show-module-summary",
"special-members",
"imported-members",
]

napoleon_google_docstring = True
napoleon_numpy_docstring = True

# HTML -----------------------------------------------------------------
# html_favicon = "_static/logo.jpeg"
# html_logo = "_static/logo.jpeg"
html_title = ".github Documentation"
html_show_sourcelink = True
html_css_files = [
"custom.css",
]
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
# html_theme = 'alabaster'
html_theme = "sphinx_rtd_theme"
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["_static"]
20 changes: 20 additions & 0 deletions .github/hello-world/book/sphinx/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.. rst-class:: hide-header


.. image:: _static/logo.jpeg
:align: center


.. toctree::
:maxdepth: 3

../../README.md
license

API Documentation
=================

.. toctree::
:maxdepth: 3

autoapi/index
4 changes: 4 additions & 0 deletions .github/hello-world/book/sphinx/license.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
License
=======

Copyright (c) 2023 Stanford University Convex Optimization Group

0 comments on commit 3ae0608

Please sign in to comment.