From 5bbd6d0ffaac6780d7fbc445293df5c38ab72082 Mon Sep 17 00:00:00 2001 From: zihang Date: Tue, 3 Dec 2024 16:17:54 +0800 Subject: [PATCH] feat: add copy button --- next/conf.py | 2 +- next/requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/next/conf.py b/next/conf.py index af71cb04..1a1298b1 100644 --- a/next/conf.py +++ b/next/conf.py @@ -18,7 +18,7 @@ from pathlib import Path sys.path.append(str(Path("_ext").resolve())) -extensions = ['myst_parser', 'lexer'] +extensions = ['myst_parser', 'lexer', 'sphinx_copybutton'] templates_path = ['_templates'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', ".env", '.venv', "README", 'sources'] diff --git a/next/requirements.txt b/next/requirements.txt index 38e39864..22f2430c 100644 --- a/next/requirements.txt +++ b/next/requirements.txt @@ -24,6 +24,7 @@ snowballstemmer==2.2.0 soupsieve==2.6 Sphinx==8.1.3 sphinx-book-theme==1.1.3 +sphinx-copybutton==0.5.2 sphinx-intl==2.3.0 sphinxcontrib-applehelp==2.0.0 sphinxcontrib-devhelp==2.0.0