Skip to content

Commit

Permalink
adding copy button to docs
Browse files Browse the repository at this point in the history
giulong committed Nov 23, 2023
1 parent 34b604d commit 1b8e09f
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ directly in your test classes, so that you can focus just on writing the logic t
You should leverage the latest published version of the [Spectrum Archetype](https://mvnrepository.com/artifact/io.github.giulong/spectrum-archetype) to create a new project.
You can either use it via your IDE, or run this from command line:

{% include codeHeader.html %}
```shell
mvn archetype:generate -DarchetypeGroupId=io.github.giulong -DarchetypeArtifactId=spectrum-archetype -DarchetypeVersion=LATEST -DinteractiveMode=false -DgroupId=<GROUP ID> -DartifactId=<ARTIFACT ID> -Dversion=<VERSION> -DoutputDirectory=<DESTINATION>
```
5 changes: 5 additions & 0 deletions docs/_includes/codeHeader.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="code-header">
<button class="copy-code-button">
Copy code to clipboard
</button>
</div>

0 comments on commit 1b8e09f

Please sign in to comment.