/
githubmirror
/
scikit-learn
Обзор
Документация
Войти
/
githubmirror
/
scikit-learn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
doc/api/module.rst.template
46 строк
973 B
Adrin Jalali
DOC use pydata-sphinx-theme for the website (#29038)
20 май 2024, 20:36
Не верифицирован
20 май 2024, 20:36
34db65a
Код
Авторство
О чём код?
:html_theme.sidebar_secondary.remove: {% if module == "sklearn" -%} {%- set module_hook = "sklearn" -%} {%- elif module.startswith("sklearn.") -%} {%- set module_hook = module[8:] -%} {%- else -%} {%- set module_hook = None -%} {%- endif -%} {% if module_hook %} .. _{{ module_hook }}_ref: {% endif %} {{ module }} {{ "=" * module|length }} .. automodule:: {{ module }} {% if module_info["description"] %} {{ module_info["description"] }} {% endif %} {% for section in module_info["sections"] %} {% if section["title"] and module_hook %} .. _{{ module_hook }}_ref-{{ section["title"]|lower|replace(" ", "-") }}: {% endif %} {% if section["title"] %} {{ section["title"] }} {{ "-" * section["title"]|length }} {% endif %} {% if section["description"] %} {{ section["description"] }} {% endif %} .. autosummary:: :nosignatures: :toctree: ../modules/generated/ :template: base.rst {% for obj in section["autosummary"] %} {{ obj }} {%- endfor %} {% endfor %}