Skip to content

Commit

Permalink
patch (mosaicml#3491)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 authored Aug 1, 2024
1 parent 98a87f3 commit e19f36e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ def get_algorithms_metadata() -> dict[str, dict[str, str]]:

html_context = {'metadata': get_algorithms_metadata()}

# Sphinx context injection deprecation patch
html_baseurl = os.environ.get('READTHEDOCS_CANONICAL_URL', '')
if os.environ.get('READTHEDOCS', '') == 'True':
html_context['readthedocs'] = True

# ClassDocumenter.add_directive_header uses ClassDocumenter.add_line to
# write the class documentation.
# We'll monkeypatch the add_line method and intercept lines that begin
Expand Down

0 comments on commit e19f36e

Please sign in to comment.