This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 1134778847 [DOCS] Remove prebuilt package references and disable Colab
button at tutorials (#18436)
1134778847 is described below
commit 11347788478724395fe1b2c0cac268411e3c5c37
Author: Shushi Hong <[email protected]>
AuthorDate: Fri Nov 14 10:20:14 2025 -0500
[DOCS] Remove prebuilt package references and disable Colab button at
tutorials (#18436)
---
docs/conf.py | 16 ++++++++--------
docs/install/index.rst | 10 +---------
2 files changed, 9 insertions(+), 17 deletions(-)
diff --git a/docs/conf.py b/docs/conf.py
index a1f54c327c..42a7bf25a3 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 @@ COLAB_HTML_HEADER = """
.. note::
:class: sphx-glr-download-link-note
- This tutorial can be used interactively with Google Colab! You can
also click
- :ref:`here <sphx_glr_download_{ref_name}>` to run the Jupyter notebook
locally.
-
- .. image:: {button_svg}
- :align: center
- :target: {colab_url}
- :width: 300px
+ You can click :ref:`here <sphx_glr_download_{ref_name}>` to run the
Jupyter notebook locally.
.. rst-class:: sphx-glr-example-title
@@ -162,7 +157,11 @@ BUTTON = (
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 b09ddb35dd..8e4af2821e 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 <docker-images>`. 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
<https://tlcpack.ai>`_.
+can :ref:`install from Docker <docker-images>`.