mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Add "Report An Issue" action in developer documentation toc
This commit is contained in:
parent
1a123bbb4a
commit
753424d2e6
6 changed files with 83 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -14,7 +14,8 @@ title: "Developer Guide - Bitcoin"
|
|||
* Table of contents
|
||||
{:toc}
|
||||
|
||||
<ul><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
|
||||
<ul class="goback"><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
|
||||
<ul class="reportissue"><li><a href="https://github.com/bitcoin/bitcoin.org/issues/new" onclick="issueReport(event);">Report An Issue</a></li></ul>
|
||||
|
||||
</div></div>
|
||||
|
||||
|
|
|
@ -14,7 +14,8 @@ title: "Developer Reference - Bitcoin"
|
|||
* Table of contents
|
||||
{:toc}
|
||||
|
||||
<ul><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
|
||||
<ul class="goback"><li><a href="/en/developer-documentation">Return To Overview</a></li></ul>
|
||||
<ul class="reportissue"><li><a href="https://github.com/bitcoin/bitcoin.org/issues/new" onclick="issueReport(event);">Report An Issue</a></li></ul>
|
||||
|
||||
</div></div>
|
||||
<div markdown="1" class="toccontent">
|
||||
|
|
BIN
img/mini_ico_report.png
Normal file
BIN
img/mini_ico_report.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 586 B |
68
img/mini_ico_report.svg
Normal file
68
img/mini_ico_report.svg
Normal file
|
@ -0,0 +1,68 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="16"
|
||||
height="16"
|
||||
id="svg3019"
|
||||
version="1.1"
|
||||
inkscape:version="0.48.4 r9939"
|
||||
sodipodi:docname="mini_ico_report.svg"
|
||||
inkscape:export-filename="/media/X/bitcoin.org/current/img/mini_ico_report.png"
|
||||
inkscape:export-xdpi="90"
|
||||
inkscape:export-ydpi="90">
|
||||
<defs
|
||||
id="defs3021" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="31.672167"
|
||||
inkscape:cx="7.6536402"
|
||||
inkscape:cy="6.6787599"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="true"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:window-width="1615"
|
||||
inkscape:window-height="1026"
|
||||
inkscape:window-x="65"
|
||||
inkscape:window-y="24"
|
||||
inkscape:window-maximized="1"
|
||||
showguides="true"
|
||||
inkscape:guide-bbox="true" />
|
||||
<metadata
|
||||
id="metadata3024">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
transform="translate(0,-16)">
|
||||
<path
|
||||
style="fill:none;stroke:#2c6fad;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
||||
d="M 4.2202692,30.710831 3.6655858,26.663589 c 0,0 -0.5242309,-0.07079 -1.0988586,-0.686195 -1.3890121,-1.487596 -1.6671361,-4.907905 0.6640068,-6.580766 2.7117349,-1.945979 7.551187,-1.950765 9.838325,0.238159 1.80139,1.724033 1.590068,5.449496 -0.580069,6.582509 -1.560348,0.788955 -1.717642,0.792925 -3.8111047,0.915685 z"
|
||||
id="path3027"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccsssccc" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.4 KiB |
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue