Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Exclude unselectable text from being copied (update) #178

Merged
merged 13 commits into from Sep 29, 2022

Commits on Sep 13, 2022

  1. [__init__] Added config value. [_static/copybutton.js_t] Check if uns…

    …electable text should be excluded from copy and do so if needed. [_static/copybutton_funcs.js] Added functionality to get unselectable elements and remove their text.
    bicarlsen authored and rkdarst committed Sep 13, 2022
    Copy the full SHA
    058bf6a View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3bdbe6f View commit details
    Browse the repository at this point in the history
  3. Added documentation.

    bicarlsen authored and rkdarst committed Sep 13, 2022
    Copy the full SHA
    1d1ffdb View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    04144f1 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    f2dec52 View commit details
    Browse the repository at this point in the history
  6. Fixed bugs.

    bicarlsen authored and rkdarst committed Sep 13, 2022
    Copy the full SHA
    77e70de View commit details
    Browse the repository at this point in the history
  7. Changed formatting.

    bicarlsen authored and rkdarst committed Sep 13, 2022
    Copy the full SHA
    a2a275a View commit details
    Browse the repository at this point in the history
  8. [test] Added tests for #filterText, but can not be run due to issue w…

    …ith funcitons using .innerText. [package.json] Added browser-env module for DOM support in testing. [docs/index] Updated documentation. [copybutton, copybutton_funcs] Fixed minor errors. Updated default exclude text. [__init__] Updated default exclude text.
    bicarlsen authored and rkdarst committed Sep 13, 2022
    Copy the full SHA
    a27b7ee View commit details
    Browse the repository at this point in the history
  9. [pre-commit.ci] auto fixes from pre-commit.com hooks

    for more information, see https://pre-commit.ci
    pre-commit-ci[bot] authored and rkdarst committed Sep 13, 2022
    Copy the full SHA
    417be14 View commit details
    Browse the repository at this point in the history
  10. copybutton_exclude: Add .gp to default exclusion

    - `.linenos` is the line numbers, and `.gp` is the tag from the
      pygments highlighter for things like the `$` prompt.  Upstream
      sphinx CSS excludes `.gp` from being copied, see the analysis here:
    
      executablebooks#138 (comment)
    
    - If upstream sphinx excludes `.gp`, we probably should as well.
    rkdarst committed Sep 13, 2022
    Copy the full SHA
    6094cf3 View commit details
    Browse the repository at this point in the history
  11. copybutton_exclude: Add documentation (copied from executablebooks#138)

    - Re-add documentation from PR executablebooks#138 - that PR got conflicted with a
      docs rearrangement, so I add the docs back in one chunk now.  I
      include my own suggestions in that PR.
    rkdarst committed Sep 13, 2022
    Copy the full SHA
    0674a7d View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2022

  1. Copy the full SHA
    c2e0bb3 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    c392d09 View commit details
    Browse the repository at this point in the history