Bug 1643819 - Prevent Firefox Docs to copy $ while copying using copy button.r=championshuttler,ahal

Differential Revision: https://phabricator.services.mozilla.com/D80643
This commit is contained in:
Sonia Singla
2020-06-23 15:03:30 +00:00
parent 95f9fce434
commit 280939653a
3 changed files with 17 additions and 14 deletions

View File

@@ -13,6 +13,9 @@ from recommonmark.transform import AutoStructify
OUR_DIR = os.path.dirname(__file__) OUR_DIR = os.path.dirname(__file__)
topsrcdir = os.path.normpath(os.path.join(OUR_DIR, "..")) topsrcdir = os.path.normpath(os.path.join(OUR_DIR, ".."))
copybutton_prompt_text = ">>> |\\\\$ |\\[\\d*\\]: |\\.\\.\\.: "
copybutton_prompt_is_regexp = True
EXTRA_PATHS = ( EXTRA_PATHS = (
"layout/tools/reftest", "layout/tools/reftest",
"python/mach", "python/mach",

View File

@@ -17,7 +17,7 @@ sphinx-rtd-theme = "~=0.4.3"
sphinxcontrib-mermaid = "~=0.4.0" sphinxcontrib-mermaid = "~=0.4.0"
sphinx = "~=2.2.2" sphinx = "~=2.2.2"
tornado = "~=6.0.3" tornado = "~=6.0.3"
sphinx-copybutton = "~=0.2.11" sphinx-copybutton = "~=0.2.12"
[requires] [requires]
python_version = "3" python_version = "3"

View File

@@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "739cdb3dbbd50135d1c56f15c125cbe1d4731ff0edb16b75a490e5ddbf076fab" "sha256": "d42b640bb8e5a028aaf69887c6370875d588d18745e4dc379969ffe45bcdbfdb"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@@ -55,10 +55,10 @@
}, },
"certifi": { "certifi": {
"hashes": [ "hashes": [
"sha256:1d987a998c75633c40847cc966fcf5904906c920a7f17ef374f5aa4282abd304", "sha256:5930595817496dd21bb8dc35dad090f1c2cd0adfaf21204bf6732ca5d8ee34d3",
"sha256:51fcb31174be6e6664c5f69e3e1691a2d72a1a12e90f872cbdb1567eb47b6519" "sha256:8fc0819f1f30ba15bdb34cceffb9ef04d99f420f68eb75d901e9560b8749fc41"
], ],
"version": "==2020.4.5.1" "version": "==2020.6.20"
}, },
"chardet": { "chardet": {
"hashes": [ "hashes": [
@@ -127,11 +127,10 @@
}, },
"livereload": { "livereload": {
"hashes": [ "hashes": [
"sha256:78d55f2c268a8823ba499305dcac64e28ddeb9a92571e12d543cd304faf5817b", "sha256:d1eddcb5c5eb8d2ca1fa1f750e580da624c0f7fcb734aa5780dc81b7dcbd89be"
"sha256:89254f78d7529d7ea0a3417d224c34287ebfe266b05e67e51facaf82c27f0f66"
], ],
"index": "pypi", "index": "pypi",
"version": "==2.6.1" "version": "==2.6.2"
}, },
"markupsafe": { "markupsafe": {
"hashes": [ "hashes": [
@@ -247,10 +246,10 @@
}, },
"requests": { "requests": {
"hashes": [ "hashes": [
"sha256:43999036bfa82904b6af1d99e4882b560e5e2c68e5c4b0aa03b655f3d7d73fee", "sha256:b3559a131db72c33ee969480840fff4bb6dd111de7dd27c8ee1f820f4f00231b",
"sha256:b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6" "sha256:fe75cc94a9443b9246fc7049224f75604b113c36acb93f87b80ed42c44cbb898"
], ],
"version": "==2.23.0" "version": "==2.24.0"
}, },
"s3transfer": { "s3transfer": {
"hashes": [ "hashes": [
@@ -308,11 +307,11 @@
}, },
"sphinx-copybutton": { "sphinx-copybutton": {
"hashes": [ "hashes": [
"sha256:7eff55f0d1f8aee42f9538b5659efe326d58fea04c11c986886bbdc0a233232d", "sha256:517870030a931f313695705edbe14a8c30660829716100d3d24b379cf9257060",
"sha256:cf3bb6dc4b82217fe1a765d733aa478949ae8574670aa2c5e7c94de81326ad50" "sha256:9492883786984b6179c92c07ab0410237b26efa826adfa792acfd17b91a63e5c"
], ],
"index": "pypi", "index": "pypi",
"version": "==0.2.11" "version": "==0.2.12"
}, },
"sphinx-js": { "sphinx-js": {
"hashes": [ "hashes": [
@@ -400,6 +399,7 @@
"sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527", "sha256:3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527",
"sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115" "sha256:88206b0eb87e6d677d424843ac5209e3fb9d0190d0ee169599165ec25e9d9115"
], ],
"markers": "python_version >= '3.4'",
"version": "==1.25.9" "version": "==1.25.9"
} }
}, },