|
1 | 1 | # -*- coding: utf-8 -*- |
2 | | -import os |
3 | | -import sys |
4 | | - |
5 | | -# import tlcpack_sphinx_addon |
6 | | - |
7 | | -# -- General configuration ------------------------------------------------ |
8 | | - |
9 | | -sys.path.insert(0, os.path.abspath("../tilelang")) |
10 | | -sys.path.insert(0, os.path.abspath("../")) |
11 | | - |
12 | | -autodoc_mock_imports = ["torch", "tilelang.language.ast", "tilelang.language.parser"] |
13 | 2 |
|
14 | 3 | # General information about the project. |
15 | 4 | project = "Tile Language <br>" |
16 | 5 | author = "Tile Lang Contributors" |
17 | 6 | copyright = "2025-2025, %s" % author |
18 | 7 |
|
19 | 8 | # Version information. |
20 | | - |
21 | | -# TODO: use the version from project metadata |
22 | 9 | with open("../VERSION", "r") as f: |
23 | 10 | version = f.read().strip() |
24 | 11 | release = version |
|
27 | 14 | "sphinx_tabs.tabs", |
28 | 15 | "sphinx_toolbox.collapse", |
29 | 16 | "sphinxcontrib.httpdomain", |
30 | | - "sphinx.ext.autodoc", |
31 | 17 | "sphinx.ext.napoleon", |
32 | 18 | "sphinx.ext.intersphinx", |
33 | 19 | "sphinx_reredirects", |
34 | 20 | "sphinx.ext.mathjax", |
35 | | - "sphinx.ext.autosummary", |
36 | 21 | "myst_parser", |
| 22 | + "autoapi.extension", |
37 | 23 | ] |
38 | 24 |
|
| 25 | +autoapi_type = 'python' |
| 26 | +autoapi_dirs = ['../tilelang'] |
| 27 | + |
| 28 | +autoapi_options = [ |
| 29 | + 'members', |
| 30 | + 'undoc-members', |
| 31 | + 'show-inheritance', |
| 32 | + 'show-module-summary', |
| 33 | + 'special-members', |
| 34 | +] |
| 35 | +autoapi_keep_files = False # Useful for debugging the generated rst files |
| 36 | + |
| 37 | +autoapi_generate_api_docs = True |
| 38 | + |
| 39 | +autodoc_typehints = 'description' |
| 40 | + |
| 41 | +autoapi_ignore = ["*language/ast*", "*version*", "*libinfo*", "*parser*"] |
| 42 | + |
39 | 43 | source_suffix = { |
40 | 44 | '.rst': 'restructuredtext', |
41 | 45 | '.md': 'markdown', |
|
48 | 52 |
|
49 | 53 | redirects = {"get_started/try_out": "../index.html#getting-started"} |
50 | 54 |
|
51 | | -source_suffix = [".md", ".rst"] |
52 | | - |
53 | 55 | language = "en" |
54 | 56 |
|
55 | 57 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "README.md", "**/*libinfo*", "**/*version*"] |
56 | 58 |
|
57 | | -# The name of the Pygments (syntax highlighting) style to use. |
58 | 59 | pygments_style = "sphinx" |
59 | | - |
60 | | -# A list of ignored prefixes for module index sorting. |
61 | | -# If true, `todo` and `todoList` produce output, else they produce nothing. |
62 | 60 | todo_include_todos = False |
63 | 61 |
|
64 | 62 | # -- Options for HTML output ---------------------------------------------- |
65 | 63 |
|
66 | 64 | html_theme = "furo" |
67 | | - |
68 | 65 | templates_path = [] |
69 | | - |
70 | 66 | html_static_path = ["_static"] |
71 | | - |
72 | 67 | footer_copyright = "© 2025-2025 Tile Language" |
73 | 68 | footer_note = " " |
74 | 69 |
|
|
91 | 86 | "github_repo": "tilelang", |
92 | 87 | "github_version": "main/docs/", |
93 | 88 | "theme_vcs_pageview_mode": "edit", |
94 | | - # "header_logo": "/path/to/logo", |
95 | | - # "header_logo_link": "", |
96 | | - # "version_selecter": "", |
97 | 89 | } |
98 | | - |
99 | | -# # add additional overrides |
100 | | -# templates_path += [tlcpack_sphinx_addon.get_templates_path()] |
101 | | -# html_static_path += [tlcpack_sphinx_addon.get_static_path()] |
0 commit comments