mirror of
https://github.com/ankitects/anki.git
synced 2026-07-28 13:49:05 -04:00
## Summary - add a generated `docs-site/` Mintlify proof of concept for a unified Anki docs site - migrate the desktop manual, AnkiMobile docs, FAQs, add-on docs, translation docs, release notes, legacy docs, and repo-local Sphinx/MyST developer docs into the POC tree - add a migration helper that preserves mdBook ordering, handles common MDX incompatibilities, and regenerates the landing-page-inspired Mintlify styling - apply minimal styling based on the current Anki landing page: Anki logo, Hanken Grotesk, blue primary color, subtle surfaces, and compact nav treatment ## Validation - `uv run --with ty ty check tools/mintlify_poc_migrate.py` - `source ~/.nvm/nvm.sh && nvm use 22.15.0 && mint validate` - previewed locally with `mint dev --port 3000` and checked the home page/developer docs in browser ## Notes This is intentionally a draft POC. It does not remove the existing Sphinx or mdBook docs flows yet; it demonstrates what bringing the sources into this repo and building from a single Mintlify root could look like. --------- Co-authored-by: Andrew Sanchez <andrewsanchez@users.noreply.github.com> Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com> Co-authored-by: Abdo <abdo@abdnh.net>
16 lines
713 B
Plaintext
16 lines
713 B
Plaintext
---
|
|
title: "Python Modules"
|
|
---
|
|
|
|
From Anki 2.1.50, the packaged builds include most built-in Python
|
|
modules. Earlier versions ship with only the standard modules necessary to run Anki.
|
|
|
|
If your add-on uses a standard Python module that has not
|
|
been included, or a package from PyPI, then your add-on will need to bundle the module.
|
|
|
|
For pure Python modules, this is usually as simple as putting them in a
|
|
subfolder, and adjusting sys.path. For modules that require C extensions
|
|
such as numpy, things get a fair bit more complicated, as you'll need to bundle
|
|
the different module versions for each platform, and ensure you're bundling a
|
|
version that is compatible with the version of Python Anki is packaged with.
|