mirror of https://github.com/zulip/zulip.git
1cbff7094b
Added a copy-to-clipboard button to the code blocks in the API and Help Center docs. Previously, copying code from the docs required manual copying, which was cumbersome. Used the same copy-to-clipboard svg icon as the one used in web/src but manually created the button within the js function instead of using a template. Updated the pre CSS element to have relative positioning and gave the copy-codeblock element absolute positioning to ensure the button stayed in the top-right corner. Fixes #25726. |
||
---|---|---|
.. | ||
e2e-tests | ||
generated | ||
html | ||
images | ||
shared | ||
src | ||
styles | ||
templates | ||
tests | ||
third | ||
.browserslistrc | ||
.gitignore | ||
babel.config.js | ||
debug-require-webpack-plugin.ts | ||
debug-require.js | ||
postcss.config.js | ||
webpack.assets.json | ||
webpack.config.ts | ||
webpack.dev-assets.json |