|
41 | 41 | "sphinx_new_tab_link", |
42 | 42 | "myst_nb", |
43 | 43 | "sphinx_copybutton", |
| 44 | + "sphinx_llms_txt", |
44 | 45 | ] |
45 | 46 |
|
46 | 47 | myst_enable_extensions = [ |
|
69 | 70 | # This patterns also effect to html_static_path and html_extra_path |
70 | 71 | exclude_patterns = [ |
71 | 72 | "_build", |
| 73 | + "_build_markdown", |
72 | 74 | "Thumbs.db", |
73 | 75 | ".DS_Store", |
74 | 76 | "jupyter_execute", |
|
85 | 87 | "pandera": ("https://pandera.readthedocs.io/en/stable/", None), |
86 | 88 | "pydantic": ("https://docs.pydantic.dev/latest", None), |
87 | 89 | "pingouin": ("https://pingouin-stats.org/", None), |
88 | | - # "scikit-learn": ("https://scikit-learn.org/stable/", None), |
| 90 | + "scikit-learn": ("https://scikit-learn.org/stable/", None), |
89 | 91 | # "matplotlib": ("https://matplotlib.org/stable/", None), |
90 | 92 | } |
91 | 93 |
|
|
113 | 115 | ## Generate autodoc stubs with summaries from code |
114 | 116 | autosummary_generate = True |
115 | 117 |
|
| 118 | + |
| 119 | +# llms-txt options |
| 120 | + |
| 121 | +# Content filtering |
| 122 | +# in _source folder |
| 123 | +llms_txt_exclude = [ |
| 124 | + "search", |
| 125 | + "genindex", |
| 126 | + "404", |
| 127 | + "index", |
| 128 | + "authors", |
| 129 | + "history", |
| 130 | + "contributing", |
| 131 | + "llms", # maybe include it for description of the llms-txt format? |
| 132 | + "README", |
| 133 | + "home_page", |
| 134 | + "reference*", |
| 135 | + # exclude ipynb files for now |
| 136 | + "example_data*", |
| 137 | + "api_examples*", |
| 138 | + "downloaded*", |
| 139 | + "sections_readme*", |
| 140 | +] |
| 141 | + |
| 142 | + |
| 143 | +# Source code inclusion with include/exclude patterns |
| 144 | +llms_txt_code_files = [ |
| 145 | + # "+:../src/**/*.py", # Include Python files |
| 146 | + # "+:../config/*.yaml", # Include config files |
| 147 | + "-:../src/**/__pycache__/**", # Exclude cache files |
| 148 | + # "-:reference/*.rst", # Exclude markdown files |
| 149 | + "+:api_examples/*.py", # Include notebooks in pypercent format |
| 150 | +] |
| 151 | + |
116 | 152 | # -- General configuration --------------------------------------------------- |
117 | 153 |
|
118 | 154 | myst_enable_extensions = ["dollarmath", "amsmath", "colon_fence"] |
|
156 | 192 | # Add any paths that contain custom static files (such as style sheets) here, |
157 | 193 | # relative to this directory. They are copied after the builtin static files, |
158 | 194 | # so a file named "default.css" will overwrite the builtin "default.css". |
159 | | -# html_static_path = ['_static'] |
| 195 | +# html_static_path = ["_static"] |
160 | 196 |
|
161 | 197 | # -- Setup for sphinx-apidoc ------------------------------------------------- |
162 | 198 |
|
|
0 commit comments