Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Copying code from the website also copies the prompts #12745

Closed
nswamy opened this issue Oct 5, 2018 · 4 comments · Fixed by #18605
Closed

Copying code from the website also copies the prompts #12745

nswamy opened this issue Oct 5, 2018 · 4 comments · Fixed by #18605

Comments

@nswamy
Copy link
Member

nswamy commented Oct 5, 2018

Description

When copying code using the Copy from Clipboard javascript on the website, it also is copying the prompt
Go to 1) http://mxnet.incubator.apache.org/install/index.htmlplatform=Linux&language=Python&processor=GPU
2) use the copy to Clipboard option to copy text it has copied,
$ pip install mxnet-cu92 earlier the shell prompt was not copied to clipboard

Environment info (Required):

Mac OS/Google Chrome Version 69.0.3497.100 (Official Build) (64-bit)

@aaronmarkham could you please take a look

@nswamy nswamy added the Website label Oct 5, 2018
@LuckyPigeon
Copy link
Contributor

@nswamy May I do this issue?

@nswamy
Copy link
Member Author

nswamy commented Oct 9, 2018

👍 @LuckyPigeon
Yes, your very welcome to submit a PR. If you are interested in contributing to the website, I think @aaronmarkham can help you with some starter tasks.

@aaronmarkham
Copy link
Contributor

Hi @LuckyPigeon - take a look at these website build instructions, so you can test your changes: https://cwiki.apache.org/confluence/display/MXNET/How+to+Build+the+Website
Please let me know if you need any help.

@ys2843
Copy link
Contributor

ys2843 commented Jun 22, 2020

Current copycode.js has several problems

  1. mistakenly creates global variables
  2. missing prompt mapping
  3. the use of jquery tooltip does not work, because we do not load jquery ui any more

I will rewrite this file and fix this prompt issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants