generate_markdown_files#
- scikitplot._externals._sphinx_ext._sphinx_ai_assistant.generate_markdown_files(app, exception)[source]#
Post-build hook: generate
.mdcompanions for every.htmlfile.Registered with Sphinx’s
build-finishedevent insetup. Processing is parallelised viaconcurrent.futures.ProcessPoolExecutor.- Parameters:
- appsphinx.application.Sphinx
The active Sphinx application instance.
- exceptionException or None
Any exception raised during the build; when not
Nonethis hook exits immediately without generating files.
- Returns:
- None
- Raises:
- None
All per-file errors are logged as warnings; the hook never raises.
- Parameters:
app (Sphinx)
exception (Optional[Exception])
- Return type:
None
Notes
Config values read from app.config:
ai_assistant_generate_markdown— master switch.ai_assistant_theme_preset— optional theme name to auto-select CSS selectors (e.g."pydata_sphinx_theme").ai_assistant_content_selectors— ordered CSS selectors for main content detection. Merged with preset selectors when both are set.ai_assistant_markdown_exclude_patterns— list of path substrings to skip.ai_assistant_strip_tags— HTML tags removed before conversion.ai_assistant_max_workers— maximum parallel worker processes (None→ auto-detect, capped at 8).