From 753424d2e6e978c84e51eb1bc55172e65b711e06 Mon Sep 17 00:00:00 2001 From: Saivann Date: Mon, 19 May 2014 10:51:05 -0400 Subject: [PATCH 1/4] Add "Report An Issue" action in developer documentation toc --- _less/screen.less | 7 ++-- en/developer-guide.md | 3 +- en/developer-reference.md | 3 +- img/mini_ico_report.png | Bin 0 -> 586 bytes img/mini_ico_report.svg | 68 ++++++++++++++++++++++++++++++++++++++ js/main.js | 6 ++++ 6 files changed, 83 insertions(+), 4 deletions(-) create mode 100644 img/mini_ico_report.png create mode 100644 img/mini_ico_report.svg diff --git a/_less/screen.less b/_less/screen.less index fd348e8b..9eca8b11 100644 --- a/_less/screen.less +++ b/_less/screen.less @@ -706,12 +706,15 @@ table td,table th{ font-weight:bold; left:0px; } -.toc ul+ul{ +.toc ul.goback{ padding-top:8px; } -.toc ul+ul li{ +.toc ul.goback li{ background:url(/img/mini_ico_back.svg) no-repeat 0 3px; } +.toc ul.reportissue li{ + background:url(/img/mini_ico_report.svg) no-repeat 0 3px; +} .toc a, .toc a:link, .toc a:active, diff --git a/en/developer-guide.md b/en/developer-guide.md index 32021183..69b8cd3d 100644 --- a/en/developer-guide.md +++ b/en/developer-guide.md @@ -14,7 +14,8 @@ title: "Developer Guide - Bitcoin" * Table of contents {:toc} - + + diff --git a/en/developer-reference.md b/en/developer-reference.md index 83e250fa..12aebbbe 100644 --- a/en/developer-reference.md +++ b/en/developer-reference.md @@ -14,7 +14,8 @@ title: "Developer Reference - Bitcoin" * Table of contents {:toc} - + +
diff --git a/img/mini_ico_report.png b/img/mini_ico_report.png new file mode 100644 index 0000000000000000000000000000000000000000..146c75ed71d87d98aa27a742a7aa850a0f6b7be4 GIT binary patch literal 586 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJbFq_W2nPqp?T7vkfLzW3kH})6 z^6MbX=%g{b0w^e1;u=vBoS#-wo>-L1P+nfHmzkGcoSayYs+V7sKKq@G6j0IC0G|-o z|Ns9pF#Km|Xb25m<rxvO;x)@v880V&H{qm#Ezr(lhC{yN?KH99~o zd22!9`D=Ca)__FvfgMC;lTg<)Ffy^UvU7BDcJuU&iOz-oAyE6(V;Xi>RsW*u0!D_FAF{MN-K)Y*30_# zE_q$O&$z+ja=?S&WigCW- + + + + + + + + + image/svg+xml + + + + + + + + + diff --git a/js/main.js b/js/main.js index d64dc5ea..cb659f99 100644 --- a/js/main.js +++ b/js/main.js @@ -361,6 +361,12 @@ addEvent(window,'load',evtimestamp); init(); } +function issueReport(e){ +//Open an issue on GitHub pre-filled with current page location +cancelEvent(e); +window.location.href='https://github.com/bitcoin/bitcoin.org/issues/new?body='+encodeURIComponent('Location: '+window.location.href.toString()+"\n\n") +} + function makeEditable(e){ //An easter egg that makes the page editable when user click on the page and hold their mouse button for one second. //This trick allows translators and writers to preview their work. From 30afc84515d4141a69e545af37dcb10ffeffc242 Mon Sep 17 00:00:00 2001 From: Saivann Date: Mon, 19 May 2014 12:17:37 -0400 Subject: [PATCH 2/4] Improve mini_ico_report icon --- img/mini_ico_report.png | Bin 586 -> 641 bytes img/mini_ico_report.svg | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/img/mini_ico_report.png b/img/mini_ico_report.png index 146c75ed71d87d98aa27a742a7aa850a0f6b7be4..985e5a3dbf6a87567bc88d0ed1a5624e84772cda 100644 GIT binary patch delta 502 zcmX@b(#Sd?xBh>CPl)UP|Nj{p8XOw-tK@D|NSJR~xXPely>8|fwc^d%S*tV))~e@h z)XoP9>gBA`EnKTzxJol`jb8pL-JCVrxvO;Y*Ju~4*C|}1mA^(Wcdd58TAke0+Cag= zHM;q0b@J9~=daVvTL%&ck?V8|fa2?P^VjI)2d>oxiWUG>tknUbbwGx09)t~)2ATyT zbqavuKn)-TAi+Ek3E~3vLKqNnkjP|1MzP5{jMDW$nS$$%^BEWzLP~=Cf*F`t*f}@_ z1VtnyrQ{S8l~h#KHMH~$Ow28;-Q0bnV&f81GO~-x>smV}O`fxO>FPCW*KOFbbI;!W z2M--TapB^X8@KO2c=+u3%U5sTef<38$IoAX{{CC&!hHy6{uECa#}En0+=IblOpFYy z7pBKf&b?i~P3`yFdfkscwI%xhHl@Bk>}oB4WcJ>&r_rYy*-v*JcRG>Gx5V6rqao)^ zpPc?IuGtOUi=^ad$(DL-;P9Lu*Am&5;%7eRPS!`kr%`Ms7D5afYyVxE>dCN7bG1W? z|EEcZCN~RL_RaZfS%GC~ZA%mx@ KpUXO@geCz04cKk~ delta 457 zcmZo(%twT}(~ zO`PiK;us3gtMtjU3a<$x(4v+%~<8%1{q1bq8%@A>4VZQ2KM$9jj-yr_4D7rPFH zo4hRa%qy)ZGFva}+q>j-^*-YUi^~BIf|tcGN_}Ut?_{5xQOuHgSZCH82P;G7x$KSe zwel4^WYY_4mhLjEX7J)`cSw9Z!Q{|~DLdUh`$nCXs?mC%yh* From fecdbf0e93d7e15d617b789859ee269f0f24187b Mon Sep 17 00:00:00 2001 From: Saivann Date: Mon, 19 May 2014 18:39:18 -0400 Subject: [PATCH 3/4] Update "Report An Issue" link on mouseover (thanks @harding) --- en/developer-guide.md | 2 +- en/developer-reference.md | 2 +- js/main.js | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/en/developer-guide.md b/en/developer-guide.md index 69b8cd3d..e3a6a69c 100644 --- a/en/developer-guide.md +++ b/en/developer-guide.md @@ -15,7 +15,7 @@ title: "Developer Guide - Bitcoin" {:toc} - +
diff --git a/en/developer-reference.md b/en/developer-reference.md index 12aebbbe..4dffa547 100644 --- a/en/developer-reference.md +++ b/en/developer-reference.md @@ -15,7 +15,7 @@ title: "Developer Reference - Bitcoin" {:toc} - +
diff --git a/js/main.js b/js/main.js index cb659f99..3c68cca5 100644 --- a/js/main.js +++ b/js/main.js @@ -361,10 +361,10 @@ addEvent(window,'load',evtimestamp); init(); } -function issueReport(e){ -//Open an issue on GitHub pre-filled with current page location -cancelEvent(e); -window.location.href='https://github.com/bitcoin/bitcoin.org/issues/new?body='+encodeURIComponent('Location: '+window.location.href.toString()+"\n\n") +function updateIssue(e){ +//Update GitHub issue link with pre-filled with current page location +var t=getEventTarget(e); +t.href='https://github.com/bitcoin/bitcoin.org/issues/new?body='+encodeURIComponent('Location: '+window.location.href.toString()+"\n\n"); } function makeEditable(e){ From 3c5a915aedc2916238170ba0862f5df473feeafe Mon Sep 17 00:00:00 2001 From: Saivann Date: Mon, 19 May 2014 18:45:52 -0400 Subject: [PATCH 4/4] Fix toc action entries style for mobiles --- _less/screen.less | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_less/screen.less b/_less/screen.less index 9eca8b11..510e29ea 100644 --- a/_less/screen.less +++ b/_less/screen.less @@ -1679,7 +1679,10 @@ h2 .rssicon{ .toc ul li ul li a.active:before{ content:""; } - .toc ul+ul li{ + .toc ul.goback li{ + background:none; + } + .toc ul.reportissue li{ background:none; } .toccontent{