webpage
webpage copied to clipboard
fix highlight and copybutton related issue
There is a lot of highlight issue in the original webpage:
-
several code block missing
```fortranidentifier -
some
consoleblock is identified asshell, which is used for shell script file highlight (ref: https://github.com/github-linguist/linguist/blob/466ed9937ffe5609ab565f43d7305a5d46410622/lib/linguist/languages.yml#L6738)this does not only affect the highlight, but also confused the
copybuttonsphinx extension. for example:```shell $ echo 1 \ ```in this case,
copybuttonwill copy$ echo 1, but if this block is identified asconsolethenecho 1will be copied. -
there is one line added in
conf.py, which is used to strip command output from the copied text. the related document can be found on here