diff --git a/assets/css/index.css b/assets/css/index.css index 951cc11b3..ddfacb669 100644 --- a/assets/css/index.css +++ b/assets/css/index.css @@ -1073,4 +1073,25 @@ a[href*="#no-click"], img[src*="#no-click"] { .dd-item .highlight:hover { color: #5961ff; +} + +.copy-button { + background-color: #eee; + border: none; + padding: 4px; + cursor: pointer; + border-radius: 4px; + display: flex; + align-items: center; + justify-content: center; +} + +.copy-button svg { + width: 16px; + height: 16px; + fill: #333; +} + +.copy-button:hover { + background-color: #ddd; } \ No newline at end of file diff --git a/layouts/commands/list.html b/layouts/commands/list.html index e19ce379e..fa1a38b35 100644 --- a/layouts/commands/list.html +++ b/layouts/commands/list.html @@ -132,7 +132,7 @@

{{ end }} - {{ partial "commands-nav.html" . }} + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/commands/single.html b/layouts/commands/single.html index 1b36b4b60..36500e0f5 100644 --- a/layouts/commands/single.html +++ b/layouts/commands/single.html @@ -130,6 +130,6 @@

History

{{ end }} - + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/develop/list.html b/layouts/develop/list.html index 82b50f81c..510732555 100644 --- a/layouts/develop/list.html +++ b/layouts/develop/list.html @@ -51,5 +51,6 @@

{{ partial "docs-toc.html" . }} + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/develop/single.html b/layouts/develop/single.html index a157d84ad..733bdface 100644 --- a/layouts/develop/single.html +++ b/layouts/develop/single.html @@ -37,5 +37,6 @@

{{ partial "docs-toc.html" . }} + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/integrate/list.html b/layouts/integrate/list.html index 793e67a8c..d0f566536 100644 --- a/layouts/integrate/list.html +++ b/layouts/integrate/list.html @@ -72,7 +72,7 @@

{{ end }} - {{ partial "commands-nav.html" . }} + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/integrate/single.html b/layouts/integrate/single.html index 786f266df..8a1a88349 100644 --- a/layouts/integrate/single.html +++ b/layouts/integrate/single.html @@ -36,5 +36,6 @@

{{ .Title }}

{{ partial "docs-toc.html" . }} + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/integration/list.html b/layouts/integration/list.html index 1147bc047..411eb1ef7 100644 --- a/layouts/integration/list.html +++ b/layouts/integration/list.html @@ -48,5 +48,6 @@

{{ .Title }}

{{ partial "docs-toc.html" . }} + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/integration/single.html b/layouts/integration/single.html index a561346c8..41c035db8 100644 --- a/layouts/integration/single.html +++ b/layouts/integration/single.html @@ -36,5 +36,6 @@

{{ .Title }}

{{ partial "docs-toc.html" . }} + {{ partial "scripts.html" . }} {{ end }} diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index a82336776..caaee4696 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,5 +1,68 @@ - + + + + +