You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`TryExamples` buttons will be hidden in files matching at least one of these patterns,
185
-
effectively disabling the interactive documentation. In the provided example:
184
+
`TryExamples` buttons will be hidden in url pathnames matching at least one of these
185
+
patterns, effectively disabling the interactive documentation. In the provided example:
186
186
187
-
* The pattern `"^latest/.*" disables interactive examples for all files within the
188
-
latest directory, which may be useful if this directory contains documentation
189
-
for a development version for which corresponding package build is not available
187
+
* The pattern `".*latest/.*" disables interactive examples for urls for the documentation
188
+
for the latest version of the package, which may be useful if this documentation is
189
+
for a development version for which a corresponding package build is not available
190
190
in a Jupyterlite kernel.
191
191
192
-
* The pattern `"^stable/reference/generated/example"` targets a particular file
192
+
* The pattern `".*stable/reference/generated/example.html"` targets a particular url
193
193
in the documentation for the latest stable release.
194
194
195
-
Note that these patterns should match the Sphinx docnames of the documentation files.
196
-
A docname is the relative path from the documentation root to the file of interest,
197
-
but without the file extension. For instance, the docname corresponding to `index.rst` at
198
-
the root of the Sphinx source directory would be `index`.
195
+
Note that these patterns should match the [pathname](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname) of the url, not the full url. This is the path portion of
196
+
the url. For instance, the pathname of https://jupyterlite-sphinx.readthedocs.io/en/latest/directives/try_examples.html is `/en/latest/directives/try_examples.html`.
197
+
199
198
200
199
A default configuration file can be specified in `conf.py` with the option
0 commit comments