colinwilson / lotusdocs

📖 A free, lightweight, modern documentation theme for Hugo [WIP]
https://lotusdocs.dev/docs/
MIT License
365 stars 84 forks source link

No copy codeblock for non-prism highlighting #105

Closed qjcg closed 1 year ago

qjcg commented 1 year ago

Past Issues Searched

Issue is a Bug Report

Describe the bug

With params.docs.prism = false set in hugo.toml, no copy codeblock button is present on code blocks.

Expected behavior

A copy codeblock button is present on code blocks when prism = false.

Screenshots

No response

Environment

- OS:
- Browser:
- Browser Version:
colinwilson commented 1 year ago

Yep.

With params.docs.prism = false the theme reverts to Hugo's default syntax highlighter Chroma, which doesn't feature a copy button.

However, there is a way to implement this. Make a feature request in the discussions section of the repo. I track all feature request there.

qjcg commented 1 year ago

Thanks for the quick reply, copy that and will do!

qjcg commented 1 year ago

Created the feature request here:

https://github.com/colinwilson/lotusdocs/discussions/106

colinwilson commented 1 year ago

Created the feature request here:

Excellent. Thanks 👍