From a3acbc8637614847516fd9cdbc953e361effa0af Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Wed, 29 Nov 2023 14:15:37 -0500 Subject: [PATCH 1/2] docs: add ability to copy code snippets from documentation --- mkdocs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/mkdocs.yml b/mkdocs.yml index c73d95d70..96903de21 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -28,6 +28,7 @@ theme: custom_dir: mkdocs/overrides features: - navigation.indexes + - content.code.copy plugins: multirepo: From 5d1f30372a8b4bd31abd1851b3115df924954103 Mon Sep 17 00:00:00 2001 From: John Gerrard Holland Date: Wed, 29 Nov 2023 14:15:47 -0500 Subject: [PATCH 2/2] docs: add ability to include code snippets by URL --- mkdocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdocs.yml b/mkdocs.yml index 96903de21..747ce0980 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -143,7 +143,7 @@ markdown_extensions: pymdownx.superfences: {} pymdownx.arithmatex: # required for equation display generic: true - pymdownx.snippets: {} + pymdownx.snippets: { url_download: True } pymdownx.tabbed: alternate_style: true