Docusaurus: Any plan to support copy the example code?

Created on 13 Mar 2018  路  6Comments  路  Source: facebook/docusaurus

Is this a bug report?

no, this is a feature?

Have you read the Contributing Guidelines on issues?

Yes

_abd5a8ee-21e1-4992-b9f1-cdba20413c47 1

Ant.d is a high quality React component library, one of it's feature is you can copy the example code in the doc, like what shows above.

So锛宒o you have any plan to get this done?

intermediate feature v2

Most helpful comment

馃憢Hi, I'd like to claim this issue!

All 6 comments

This sounds useful! The new Babel site uses Docusaurus and has these copy buttons. We can see how it's done there.

馃憢Hi, I'd like to claim this issue!

@amyrlam It's yours! 馃帀

@amyrlam In the current state, it's a bit hard to support adding it for Docusaurus users. Let's just add the copy functionality to Docusaurus 馃憤

Ok, I will modify https://github.com/facebook/Docusaurus/pull/634. Update to come.

Closing due to stale activity. For anyone who wanted this. see

https://docusaurus.io/docs/en/doc-markdown#adding-copy-code-buttons

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JoelMarcey picture JoelMarcey  路  3Comments

lex111 picture lex111  路  3Comments

NikitaIT picture NikitaIT  路  3Comments

microbouji picture microbouji  路  3Comments

chandankumar4 picture chandankumar4  路  3Comments