Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 17 additions & 29 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,30 @@

extensions = [
"sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
#"sphinx.ext.autodoc",
#"sphinx.ext.autosummary",
"sphinx.ext.todo",
"sphinx.ext.viewcode",
#"sphinxext.rediraffe",
#"sphinx_design",
#"sphinx_copybutton",
"sphinxext.rediraffe",
"sphinx_design",
"sphinx_copybutton",
#"autoapi.extension",
#"_extension.gallery_directive",
# For extension examples and demos
#"ablog",
#"jupyter_sphinx",
#"matplotlib.sphinxext.plot_directive",
"ablog",
"jupyter_sphinx",
"matplotlib.sphinxext.plot_directive",
#"myst_nb",
#"sphinxcontrib.youtube",
# "sphinxcontrib.youtube",
# "nbsphinx", # Uncomment and comment-out MyST-NB for local testing purposes.
#"numpydoc",
#"sphinx_togglebutton",
"numpydoc",
"sphinx_togglebutton",
#"jupyterlite_sphinx",
#"sphinx_favicon",
#"myst_parser",
"sphinx_favicon",
"myst_parser",
]


# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand All @@ -75,7 +76,7 @@
# -- MyST options ------------------------------------------------------------

# This allows us to use ::: to denote directives, useful for admonitions
myst_enable_extensions = ["colon_fence", "linkify", "substitution"]
myst_enable_extensions = ["colon_fence", "substitution"]
myst_heading_anchors = 2
myst_substitutions = {"rtd": "[Read the Docs](https://readthedocs.org/)"}

Expand Down Expand Up @@ -131,21 +132,9 @@
},
{
"name": "GitHub",
"url": "https://github.com/pydata/pydata-sphinx-theme",
"url": "https://github.com/conradry/proteome",
"icon": "fa-brands fa-github",
},
{
"name": "PyPI",
"url": "https://pypi.org/project/pydata-sphinx-theme",
"icon": "fa-custom fa-pypi",
},
{
"name": "PyData",
"url": "https://pydata.org",
"icon": "_static/pydata-logo.png",
"type": "local",
"attributes": {"target": "_blank"},
},
],
# alternative way to set twitter and github header icons
# "github_url": "https://github.com/pydata/pydata-sphinx-theme",
Expand Down Expand Up @@ -247,14 +236,13 @@

# -- Options for autoapi -------------------------------------------------------
autoapi_type = "python"
autoapi_dirs = ["../src/pydata_sphinx_theme"]
autoapi_dirs = ["../proteome"]
autoapi_keep_files = True
autoapi_root = "api"
autoapi_member_order = "groupwise"

# -- application setup -------------------------------------------------------


def setup_to_main(
app: Sphinx, pagename: str, templatename: str, context, doctree
) -> None:
Expand Down
24 changes: 21 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
prtm
-------
---
myst:
html_meta:
"description lang=en": |
Top-level documentation for pydata-sphinx theme, with links to the rest
of the site..
html_theme.sidebar_secondary.remove: true
---

`prtm` is the library for state-of-the-art protein models.
# prtm

`prtm` is the library for state-of-the-art protein models.

## User Guide

Information about using, configuration, and customizing this theme.

```{toctree}
:maxdepth: 2

user_guide/index
```
23 changes: 23 additions & 0 deletions docs/user_guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
myst:
html_meta:
"description lang=en": |
Documentation for users who wish to build sphinx sites with
pydata-sphinx-theme.
---

# User Guide

You can configure the behavior, look, and feel of the theme in many ways.
The remaining pages in the user guide cover various ways of doing so.

```{danger}
This theme is still under active development, and we make no promises
about the stability of any specific HTML structure, CSS variables, etc.
Make these customizations at your own risk, and pin versions if you're
worried about breaking changes!
```

There are a number of options for configuring your site's look and feel.
All configuration options are passed with the `html_theme_options` variable in your `conf.py` file.
This is a dictionary with `key: val` pairs that you can configure in various ways.