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
Telemetry: track Sphinx extensions and html_theme variables (#9639)
* Telemetry: track Sphinx `extensions` and `html_theme` variables
Pretty simple implementation to track Sphinx's extensions and theme.
This is not the best implementation, but I think it could be good as a first
start.
The new `doctool` key added will have this shape:
```
"doctool": {
"extensions": [
"readthedocs_ext.readthedocs",
"notfound.extension",
"autoapi.extension",
"sphinx_tabs.tabs",
"sphinx-prompt",
"sphinxemoji.sphinxemoji"
],
"name": "sphinx",
"theme": "sphinx_rtd_theme"
},
```
Closes#9627
* Lint
* Lint
* Use `Version.is___type()` to know if it's Sphinx/MkDocs or generic
* Telemetry: use `readthedocs-sphinx-ext`'s dump to load the data
Our extension is now dumping the data we want to consume here. So, we are just
reading that file and saving it as part of the `BuildData` object.
* These are properties, not functions
* Missing `return`
* Return `doctool` data even if the file does not exist
0 commit comments