This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-ffi.git


The following commit(s) were added to refs/heads/main by this push:
     new d13141d  fix(doc): SVG images not rendering (#193)
d13141d is described below

commit d13141d3dd6affabcc94b83a1ebfb441f79dddf4
Author: Junru Shao <[email protected]>
AuthorDate: Sun Oct 26 17:22:00 2025 -0700

    fix(doc): SVG images not rendering (#193)
    
    It turns out that SVG images below
    [[link](https://tvm.apache.org/ffi/get_started/stable_c_abi.html)]:
    -
    
https://raw.githubusercontent.com/tlc-pack/web-data/refs/heads/main/images/tvm-ffi/stable-c-abi-layout-any.svg
    -
    
https://raw.githubusercontent.com/tlc-pack/web-data/refs/heads/main/images/tvm-ffi/stable-c-abi-layout-func.svg
    are not rendering properly.
    
    Not entirely sure why. This commit tries out some fixes chatgpt
    suggests...
---
 docs/get_started/stable_c_abi.rst | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/get_started/stable_c_abi.rst 
b/docs/get_started/stable_c_abi.rst
index f83db93..5c43093 100644
--- a/docs/get_started/stable_c_abi.rst
+++ b/docs/get_started/stable_c_abi.rst
@@ -79,7 +79,7 @@ Layout of :cpp:class:`TVMFFIAny`
 - Next 32 bits: reserved (used for flags in rare cases, e.g. small-string 
optimization).
 - Last 64 bits: payload that is either a 64-bit integer, a 64-bit 
floating-point number, or a pointer to a heap-allocated object.
 
-.. figure:: 
https://raw.githubusercontent.com/tlc-pack/web-data/refs/heads/main/images/tvm-ffi/stable-c-abi-layout-any.svg
+.. figure:: 
https://raw.githubusercontent.com/tlc-pack/web-data/main/images/tvm-ffi/stable-c-abi-layout-any.svg?sanitize=true
    :alt: Layout of the 128-bit Any tagged union
    :name: fig:layout-any
 
@@ -112,7 +112,7 @@ Function calls in TVM-FFI share the same calling 
convention, :ref:`tvm_ffi_c_abi
 - ``num_args: int``: number of input arguments.
 - ``result: TVMFFIAny*``: out-parameter that receives the function result (use 
``kTVMFFINone`` for "no return value").
 
-.. figure:: 
https://raw.githubusercontent.com/tlc-pack/web-data/refs/heads/main/images/tvm-ffi/stable-c-abi-layout-func.svg
+.. figure:: 
https://raw.githubusercontent.com/tlc-pack/web-data/main/images/tvm-ffi/stable-c-abi-layout-func.svg?sanitize=true
    :alt: Layout and calling convention for tvm_ffi_c_abi
    :name: fig:layout-func
 

Reply via email to