]> gitweb.fluxo.info Git - templates.git/commitdiff
MkDocs: code copy button
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Nov 2025 19:27:49 +0000 (16:27 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 7 Nov 2025 19:27:49 +0000 (16:27 -0300)
mkdocs.yml

index a6c155dbb50ed3cb44ce85c57e60beaf2ad79b03..34fbe445c304835231fe8ffc9777bcdf75146966 100644 (file)
@@ -60,6 +60,11 @@ theme:
   # See https://squidfunk.github.io/mkdocs-material/setup/changing-the-fonts/#autoloading
   #font: false
 
+  # Code copy button
+  # https://squidfunk.github.io/mkdocs-material/reference/code-blocks/#code-copy-button
+  features:
+    - content.code.copy
+
 # Extra stylesheets
 extra_css:
   - site.css