# -- Path setup -------------------------------------------------------------- import os import sys from datetime import date from pallets_sphinx_themes import ProjectLink os.chdir("../") sys.path.insert(0, os.path.abspath("src/")) for x in os.walk("src/python3_anticaptcha/"): sys.path.insert(0, x[0]) from python3_anticaptcha import ( core, control, gee_test, turnstile, custom_task, fun_captcha, recaptcha_v2, recaptcha_v3, image_to_text, image_to_coordinates, ) from python3_anticaptcha.__version__ import __version__ # -- Project information ----------------------------------------------------- project = "python3-anticaptcha" copyright = f"{date.today().year}, AndreiDrang; Release - {__version__}; Last update - {date.today()}" author = "AndreiDrang" # -- General configuration --------------------------------------------------- extensions = ( "myst_parser", "sphinx.ext.napoleon", "pallets_sphinx_themes", "sphinxcontrib.autodoc_pydantic", "notfound.extension", ) myst_enable_extensions = ["deflist"] intersphinx_mapping = {"python": ("https://docs.python.org/3.10/", None)} templates_path = ["_templates"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] # -- Options for HTML output ------------------------------------------------- # Theme config html_theme = "jinja" html_theme_options = {"index_sidebar_logo": False} html_static_path = ["_static"] html_favicon = "_static/favicon.png" html_logo = "_static/AntiCaptcha.png" html_title = f"python3-anticaptcha ({__version__})" html_show_sourcelink = False html_context = { "project_links": [ ProjectLink("PyPI Releases", "https://pypi.org/project/python3-anticaptcha/"), ProjectLink("Source Code", "https://github.com/AndreiDrang/python3-anticaptcha"), ProjectLink( "AntiCaptcha", "http://getcaptchasolution.com/vchfpctqyz", ), ProjectLink("RedPandaDev group", "https://red-panda-dev.xyz/blog/"), ] } html_sidebars = { "index": ["project.html", "localtoc.html", "searchbox.html", "ethicalads.html"], "**": ["localtoc.html", "relations.html", "searchbox.html", "ethicalads.html"], } # Typehints config autodoc_typehints = "both" autodoc_typehints_description_target = "documented" autodoc_typehints_format = "short" # Napoleon settings napoleon_google_docstring = True napoleon_numpy_docstring = False napoleon_include_init_with_doc = True napoleon_include_private_with_doc = False napoleon_include_special_with_doc = False napoleon_use_admonition_for_examples = True napoleon_use_admonition_for_notes = True napoleon_use_admonition_for_references = True napoleon_use_ivar = True napoleon_use_param = True napoleon_use_rtype = True napoleon_preprocess_types = True napoleon_type_aliases = True napoleon_attr_annotations = True autodoc_preserve_defaults = False autodoc_member_order = "bysource" autodoc_class_signature = "mixed" # Pydantic autodoc_pydantic_model_show_json = True autodoc_pydantic_settings_show_json = False