Skip to content

Commit 322298a

Browse files
authored
[DOCS] Misc docs fix (#18264)
This PR provides misc docs fix, updates the requirements of ffi docs remove stale webpages from header, update embedding script to allow path.
1 parent ab2b2d0 commit 322298a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,9 +507,7 @@ def force_gc(gallery_conf, fname):
507507
header_links = [
508508
("Community", "https://tvm.apache.org/community"),
509509
("Download", "https://tvm.apache.org/download"),
510-
("Blog", "https://tvm.apache.org/blog"),
511510
("Docs", "https://tvm.apache.org/docs"),
512-
("Conference", "https://tvmconf.org"),
513511
("Github", "https://github.com/apache/tvm/"),
514512
]
515513

docs/download_3rdparty_embeds.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,5 +310,9 @@ def download_and_replace_urls(files: Optional[List[str]] = None, verbose: bool =
310310
if __name__ == "__main__":
311311
args = argparse.ArgumentParser()
312312
args.add_argument("-v", "--verbose", action="store_true")
313+
args.add_argument("-p", "--path", type=str, default=None)
313314
args = args.parse_args()
315+
316+
if args.path is not None:
317+
HTML_DIR = args.path
314318
download_and_replace_urls(verbose=args.verbose)

ffi/docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
html_copy_source = True
117117
html_last_updated_fmt = ""
118118

119+
html_favicon = "https://tvm.apache.org/images/logo/tvm-logo-square.png"
120+
121+
119122
footer_dropdown = {
120123
"name": "ASF",
121124
"items": [

ffi/docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
autodocsumm
2+
linkify-it-py
23
matplotlib
34
myst-parser
45
nbconvert

0 commit comments

Comments
 (0)