Skip to content

Commit

Permalink
Revert "make colab button more visible in docs"
Browse files Browse the repository at this point in the history
This reverts commit bdfc00b.
  • Loading branch information
ASEM000 committed Feb 2, 2024
1 parent bdfc00b commit 992fba8
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@
"pygment_dark_style": "github-dark-high-contrast",
"path_to_docs": "docs",
"repository_branch": "main",
# "launch_buttons": {
# "notebook_interface": "jupyterlab",
# "colab_url": "https://colab.research.google.com/",
# },
"launch_buttons": {
"notebook_interface": "jupyterlab",
"colab_url": "https://colab.research.google.com/",
},
}

html_css_files = ["custom.css"]
Expand Down Expand Up @@ -148,13 +148,3 @@
# Tell sphinx-autodoc-typehints to generate stub parameter annotations including
# types, even if the parameters aren't explicitly documented.
always_document_param_types = True

nbsphinx_prolog = r"""
{% set docname = 'docs/' + env.doc2path(env.docname, base=None) %}
.. only:: html
.. role:: raw-html(raw)
:format: html
.. nbinfo::
Open in colab:
:raw-html:`<a href="https://colab.research.google.com/github/asem000/serket/blob/main/{{ docname }}"><img alt="Open in colab" src="https://colab.research.google.com/assets/colab-badge.svg" style="vertical-align:text-bottom"></a>`
"""

0 comments on commit 992fba8

Please sign in to comment.