Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New doc theme #995

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*****
Oríon
*****
.. image:: _static/logo/orion_logo_grid_150ppi.png
:width: 400
:alt: Oríon

|pypi| |py_versions| |license| |doi|
|rtfd| |codecov| |github-actions|
Expand Down
5 changes: 3 additions & 2 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
sphinx
sphinx==4.5.0
sphinx_rtd_theme
pydata-sphinx-theme
sphinxcontrib.httpdomain
sphinx-autoapi
sphinx_gallery
sphinx_gallery==0.11.0
numpydoc
plotly
matplotlib
Expand Down
7,764 changes: 7,764 additions & 0 deletions docs/src/_static/logo/orion_logo.ai

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/_static/logo/orion_logo_grid_150ppi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/_static/logo/orion_logo_grid_300ppi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/src/_static/logo/orion_logo_grid_72ppi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions docs/src/code/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

.. API Reference:

*************
API Reference
*************

.. toctree::
:maxdepth: 2

algo
analysis
benchmark
client
core
executor
plotting
storage
testing
47 changes: 26 additions & 21 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,43 +115,48 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_theme_options = {
"canonical_url": "",
"analytics_id": "",
"logo_only": False,
"display_version": True,
"prev_next_buttons_location": "both",
# 'style_external_links': False,
# 'vcs_pageview_mode': '',
# Toc options
"collapse_navigation": False,
"sticky_navigation": True,
"navigation_depth": 4,
# 'includehidden': False,
# 'titles_only': False
}
html_theme = "pydata_sphinx_theme"

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}

html_theme_options = {
# TODO: Add version for dark theme
# "logo": {
# "image_light": "logo-light.png",
# "image_dark": "logo-dark.png",
# },
"github_url": "https://github.com/Epistimio/orion",
"collapse_navigation": True,
"show_nav_level": 2,
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links.html"],
# "switcher": { # TODO in another PR. We need the version json file
# "version_match": "v0.2.4",
# "json_url": "https://numpy.org/doc/_static/versions.json", # TODO
# },
"left_sidebar_end": ["sidebar-ethical-ads"],
}

# 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"]

html_favicon = "_static/logo/orion_logo_bow_only_no_string.png"
html_logo = "_static/logo/orion_logo_nogrid_72ppi.png"

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
# This is required for the alabaster theme
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
html_sidebars = {
"**": [
"relations.html", # needs 'show_related': True theme option to display
"searchbox.html",
"search-field",
"sidebar-nav-bs",
# "relations.html", # needs 'show_related': True theme option to display
# "sidebar-ethical-ads.html",
]
}

Expand Down Expand Up @@ -254,7 +259,7 @@
"plotly": ("https://plotly.com/python-api-reference/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"torch": ("https://pytorch.org/docs/stable/", None),
"pandas": ("https://pandas.pydata.org/docs/", None)
"pandas": ("https://pandas.pydata.org/docs/", None),
}


Expand Down
19 changes: 16 additions & 3 deletions docs/src/developer/overview.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
********
Overview
********
************
Contributing
************

.. toctree::
:maxdepth: 1
:hidden:

.. overview
installing
standards
testing
documenting
ci
release


Welcome to the project. We're excited you decided to improve Oríon!

Expand Down
74 changes: 11 additions & 63 deletions docs/src/index.rst
Original file line number Diff line number Diff line change
@@ -1,75 +1,23 @@
.. include:: ../../README.rst

.. toctree::
:caption: Welcome
:maxdepth: 1
:hidden:

install/gettingstarted
install/core
install/database
.. contributors

.. toctree::
:caption: User Guide
:maxdepth: 1

user/overview
user/script
user/api
user/algorithms
user/searchspace
user/monitoring
auto_examples/index
user/benchmark
user/evc
user/storage
user/config
user/parallel

.. toctree::
:caption: Tutorials
:maxdepth: 1

tutorials/scikit-learn
auto_tutorials/code_1_python_api
tutorials/pytorch-mnist
auto_tutorials/code_2_hyperband_checkpoint
auto_tutorials/code_4_parallelism
tutorials/cluster
tutorials/pytorch_a2c_ppo

.. toctree::
:caption: Plugins
:maxdepth: 1

plugins/base
plugins/install
plugins/algorithms

.. toctree::
:maxdepth: 2
:caption: API Reference
tutorials/index
code/index
developer/overview

code/algo
code/analysis
code/benchmark
code/client
code/core
code/executor
code/plotting
code/storage
code/testing
.. .. toctree::
.. :caption: Plugins
.. :maxdepth: 1
..
.. plugins/base
.. plugins/install
.. plugins/algorithms

.. toctree::
:caption: Developer Guide
:maxdepth: 1

developer/overview
developer/installing
developer/standards
developer/testing
developer/documenting
developer/ci
developer/release

.. Don't fetch reference/viz
7 changes: 7 additions & 0 deletions docs/src/install/gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
Getting Started
***************

.. toctree::
:maxdepth: 1
:hidden:

core
database

Welcome! In this chapter, we give a quick overview of Oríon's main features and how it can help you
streamline your machine learning workflow whether you are a researcher or engineer.

Expand Down
1 change: 1 addition & 0 deletions docs/src/tutorials/code_1_python_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../auto_tutorials/code_1_python_api.rst
1 change: 1 addition & 0 deletions docs/src/tutorials/code_2_hyperband_checkpoint.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../auto_tutorials/code_2_hyperband_checkpoint.rst
1 change: 1 addition & 0 deletions docs/src/tutorials/code_4_parallelism.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../auto_tutorials/code_4_parallelism.rst
16 changes: 16 additions & 0 deletions docs/src/tutorials/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.. _Tutorials:

*********
Tutorials
*********

.. toctree::
:maxdepth: 1

scikit-learn
code_1_python_api
pytorch-mnist
code_2_hyperband_checkpoint
code_4_parallelism
cluster
pytorch_a2c_ppo
24 changes: 21 additions & 3 deletions docs/src/user/overview.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
********
Overview
********
**********
User Guide
**********

.. The goal of this document is to provide an overview of the content present in the user guide.
.. It is not meant to replace the general getting started or duplicate the content in the user guide
.. sections.

.. toctree::
:maxdepth: 1
:hidden:

.. overview
script
api
algorithms
searchspace
monitoring
visualisations
benchmark
evc
storage
config
parallel


In this guide, we explain the concepts of Oríon in depth. A light weight introduction is available
in :doc:`/install/gettingstarted` to familiarize yourself with the project and its concepts.

Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@
"docs": [
"matplotlib",
"numpydoc",
"sphinx",
"sphinx==4.5.0",
"sphinx_rtd_theme",
"pydata-sphinx-theme",
"sphinxcontrib.httpdomain",
"sphinx-autoapi",
"sphinx_gallery",
"sphinx_gallery==0.11.0",
],
"dask": ["dask[complete]"],
"track": ["track @ git+https://github.com/Delaunay/track@master#egg=track"],
Expand Down