From 9d71975b93779bf92448c1574949a80e2ba915d1 Mon Sep 17 00:00:00 2001 From: tlopex <820958424@qq.com> Date: Wed, 12 Nov 2025 22:29:03 -0500 Subject: [PATCH 1/4] f1 --- 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 a1f54c327c56..a3e6dd5d4f0c 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..2b8594dc4f68 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 `. \ No newline at end of file From f0ab9437ccc6ae66d352f3922e72096f12dcf163 Mon Sep 17 00:00:00 2001 From: tlopex <820958424@qq.com> Date: Thu, 13 Nov 2025 01:34:17 -0500 Subject: [PATCH 2/4] f2 --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index a3e6dd5d4f0c..42a7bf25a33d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -158,7 +158,7 @@ def save_rst_example( example_rst, example_file, time_elapsed, memory_used, gallery_conf, language, real_func ): """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. """ From 3b281c76b482bfc0c11d7bb838de48c9955730ac Mon Sep 17 00:00:00 2001 From: tlopex <820958424@qq.com> Date: Thu, 13 Nov 2025 12:25:18 -0500 Subject: [PATCH 3/4] f3 --- docs/install/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/index.rst b/docs/install/index.rst index 2b8594dc4f68..f58a17fc5d70 100644 --- a/docs/install/index.rst +++ b/docs/install/index.rst @@ -32,4 +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 `. \ No newline at end of file +can :ref:`install from Docker `. \ No newline at end of file From 594ad1c7fa5ab5c3fdf9cf3740c65918f0c7c53c Mon Sep 17 00:00:00 2001 From: tlopex <820958424@qq.com> Date: Thu, 13 Nov 2025 12:54:56 -0500 Subject: [PATCH 4/4] f4 --- docs/install/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/install/index.rst b/docs/install/index.rst index f58a17fc5d70..8e4af2821edc 100644 --- a/docs/install/index.rst +++ b/docs/install/index.rst @@ -32,4 +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 `. \ No newline at end of file +can :ref:`install from Docker `.