diff --git a/docs/conf.py b/docs/conf.py index a1f54c327c56..42a7bf25a33d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -121,6 +121,7 @@ def split_code_and_text_blocks(source_file, return_node, real_func): # This header replaces the default sphinx-gallery one in sphinx_gallery/gen_rst.py. +# Colab button has been temporarily disabled due to prebuilt packages unavailability. COLAB_HTML_HEADER = """ .. DO NOT EDIT. THIS FILE WAS AUTOMATICALLY GENERATED BY .. TVM'S MONKEY-PATCHED VERSION OF SPHINX-GALLERY. TO MAKE @@ -132,13 +133,7 @@ def split_code_and_text_blocks(source_file, return_node, real_func): .. note:: :class: sphx-glr-download-link-note - This tutorial can be used interactively with Google Colab! You can also click - :ref:`here ` to run the Jupyter notebook locally. - - .. image:: {button_svg} - :align: center - :target: {colab_url} - :width: 300px + You can click :ref:`here ` to run the Jupyter notebook locally. .. rst-class:: sphx-glr-example-title @@ -162,7 +157,11 @@ def split_code_and_text_blocks(source_file, return_node, real_func): def save_rst_example( example_rst, example_file, time_elapsed, memory_used, gallery_conf, language, real_func ): - """Monkey-patch save_rst_example to include the "Open in Colab" button.""" + """Monkey-patch save_rst_example to customize the tutorial header. + + Note: Colab button has been temporarily disabled. The colab_url and button_svg + are still generated but not used in the header template. + """ # The url is the md5 hash of the notebook path. example_fname = os.path.relpath(example_file, gallery_conf["src_dir"]) @@ -171,6 +170,7 @@ def save_rst_example( digest = md5(notebook_path.encode()).hexdigest() # Fixed documentation versions must link to different (earlier) .ipynb notebooks. + # Note: colab_url is generated but not currently used in the header template. colab_url = f"{COLAB_URL_BASE}/{IPYTHON_GITHUB_BASE}" if "dev" not in version: colab_url += version + "/" diff --git a/docs/install/index.rst b/docs/install/index.rst index b09ddb35dd45..8e4af2821edc 100644 --- a/docs/install/index.rst +++ b/docs/install/index.rst @@ -32,12 +32,4 @@ If you are interested in deploying to mobile or embedded devices, you do not nee install the entire TVM stack on your device. Instead, you only need the runtime. If you would like to quickly try out TVM or run some demo and tutorials, you -can :ref:`install from Docker `. You can also use TVM locally through ``pip``. - -.. code-block:: - - # Linux/MacOS CPU build only! - # See tlcpack.ai for other pre-built binaries including CUDA - pip install apache-tvm - -For more details on installation of pre-built binaries, visit `tlcpack.ai `_. +can :ref:`install from Docker `.