Skip to content

Commit

Permalink
design/65269-crypto-ssh-v2.md: new proposal
Browse files Browse the repository at this point in the history
  • Loading branch information
drakkan committed Jul 28, 2024
1 parent 54d6775 commit 410f1af
Show file tree
Hide file tree
Showing 17 changed files with 3,460 additions and 0 deletions.
403 changes: 403 additions & 0 deletions design/65269-crypto-ssh-v2.md

Large diffs are not rendered by default.

161 changes: 161 additions & 0 deletions design/65269/_/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
body {
margin: 1em 2em;
font-family: Helvetica, sans-serif;
background-color: #f8f8f8;
font-size: 1em;
}

h1, h2, h3, h4, h5, h6 {
margin-top: 0.3em;
margin-bottom: 0.3em;
}
h1, h2, h3, h4 { font-weight: 500; }
h2 { font-size: 1.75em }
h3 { font-size: 1.5em }
h4 { font-size: 1.33em }
h5 { font-size: 1em }

a {
text-decoration: none;
color: #0366a5;
}
a:hover {
text-decoration: underline;
}

a.permalink { display: none; }
a.permalink:hover {
text-decoration: none;
}
*:hover > a.permalink { display: inline; }

nav {
padding: 1em;
background-color: #eee;
border-radius: 0.5em;
display: flex;
flex-wrap: wrap;
}

nav .navbar-right {
margin-left: auto;
}

/* Remove first level of nesting for a package's index section. */
#pkg-index + ul, #pkg-examples + ul {
list-style-type: none;
padding: 0;
}

code, kbd, pre {
font-family: Consolas, monospace;
}

pre {
color: #222;
overflow-x: auto;
border: 1px solid #ccc;
border-radius: 0.5em;
background-color: #eee;
padding: 0.75em;
font-size: 0.9em;
}

details.example > summary {
color: #0366a5;
cursor: pointer;
}

details.deprecated > summary {
list-style: none;
}

span.deprecated-tag {
color: #eee;
background-color: #999;
padding: 0.125rem 0.3rem;
border-radius: 0.3rem;
font-size: 0.7rem;
vertical-align: middle;
cursor: pointer;
}

#search { margin: 0.3em 0; }

#generated-by-footer { font-size: x-small; }

/* Background */ .bg { background-color: #ffffff; }
/* PreWrapper */ .chroma { background-color: #ffffff; }
/* Error */ .chroma .err { color: #a61717; background-color: #e3d2d2 }
/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit }
/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; }
/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; }
/* LineHighlight */ .chroma .hl { background-color: #e5e5e5 }
/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #7f7f7f }
/* Line */ .chroma .line { display: flex; }
/* Keyword */ .chroma .k { color: #000000; font-weight: bold }
/* KeywordConstant */ .chroma .kc { color: #000000; font-weight: bold }
/* KeywordDeclaration */ .chroma .kd { color: #000000; font-weight: bold }
/* KeywordNamespace */ .chroma .kn { color: #000000; font-weight: bold }
/* KeywordPseudo */ .chroma .kp { color: #000000; font-weight: bold }
/* KeywordReserved */ .chroma .kr { color: #000000; font-weight: bold }
/* KeywordType */ .chroma .kt { color: #445588; font-weight: bold }
/* NameAttribute */ .chroma .na { color: #008080 }
/* NameBuiltin */ .chroma .nb { color: #0086b3 }
/* NameBuiltinPseudo */ .chroma .bp { color: #999999 }
/* NameClass */ .chroma .nc { color: #445588; font-weight: bold }
/* NameConstant */ .chroma .no { color: #008080 }
/* NameDecorator */ .chroma .nd { color: #3c5d5d; font-weight: bold }
/* NameEntity */ .chroma .ni { color: #800080 }
/* NameException */ .chroma .ne { color: #990000; font-weight: bold }
/* NameFunction */ .chroma .nf { color: #990000; font-weight: bold }
/* NameLabel */ .chroma .nl { color: #990000; font-weight: bold }
/* NameNamespace */ .chroma .nn { color: #555555 }
/* NameTag */ .chroma .nt { color: #000080 }
/* NameVariable */ .chroma .nv { color: #008080 }
/* NameVariableClass */ .chroma .vc { color: #008080 }
/* NameVariableGlobal */ .chroma .vg { color: #008080 }
/* NameVariableInstance */ .chroma .vi { color: #008080 }
/* LiteralString */ .chroma .s { color: #dd1144 }
/* LiteralStringAffix */ .chroma .sa { color: #dd1144 }
/* LiteralStringBacktick */ .chroma .sb { color: #dd1144 }
/* LiteralStringChar */ .chroma .sc { color: #dd1144 }
/* LiteralStringDelimiter */ .chroma .dl { color: #dd1144 }
/* LiteralStringDoc */ .chroma .sd { color: #dd1144 }
/* LiteralStringDouble */ .chroma .s2 { color: #dd1144 }
/* LiteralStringEscape */ .chroma .se { color: #dd1144 }
/* LiteralStringHeredoc */ .chroma .sh { color: #dd1144 }
/* LiteralStringInterpol */ .chroma .si { color: #dd1144 }
/* LiteralStringOther */ .chroma .sx { color: #dd1144 }
/* LiteralStringRegex */ .chroma .sr { color: #009926 }
/* LiteralStringSingle */ .chroma .s1 { color: #dd1144 }
/* LiteralStringSymbol */ .chroma .ss { color: #990073 }
/* LiteralNumber */ .chroma .m { color: #009999 }
/* LiteralNumberBin */ .chroma .mb { color: #009999 }
/* LiteralNumberFloat */ .chroma .mf { color: #009999 }
/* LiteralNumberHex */ .chroma .mh { color: #009999 }
/* LiteralNumberInteger */ .chroma .mi { color: #009999 }
/* LiteralNumberIntegerLong */ .chroma .il { color: #009999 }
/* LiteralNumberOct */ .chroma .mo { color: #009999 }
/* Operator */ .chroma .o { color: #000000; font-weight: bold }
/* OperatorWord */ .chroma .ow { color: #000000; font-weight: bold }
/* Comment */ .chroma .c { color: #999988; font-style: italic }
/* CommentHashbang */ .chroma .ch { color: #999988; font-style: italic }
/* CommentMultiline */ .chroma .cm { color: #999988; font-style: italic }
/* CommentSingle */ .chroma .c1 { color: #999988; font-style: italic }
/* CommentSpecial */ .chroma .cs { color: #999999; font-weight: bold; font-style: italic }
/* CommentPreproc */ .chroma .cp { color: #999999; font-weight: bold; font-style: italic }
/* CommentPreprocFile */ .chroma .cpf { color: #999999; font-weight: bold; font-style: italic }
/* GenericDeleted */ .chroma .gd { color: #000000; background-color: #ffdddd }
/* GenericEmph */ .chroma .ge { color: #000000; font-style: italic }
/* GenericError */ .chroma .gr { color: #aa0000 }
/* GenericHeading */ .chroma .gh { color: #999999 }
/* GenericInserted */ .chroma .gi { color: #000000; background-color: #ddffdd }
/* GenericOutput */ .chroma .go { color: #888888 }
/* GenericPrompt */ .chroma .gp { color: #555555 }
/* GenericStrong */ .chroma .gs { font-weight: bold }
/* GenericSubheading */ .chroma .gu { color: #aaaaaa }
/* GenericTraceback */ .chroma .gt { color: #aa0000 }
/* GenericUnderline */ .chroma .gl { text-decoration: underline }
/* TextWhitespace */ .chroma .w { color: #bbbbbb }
Binary file added design/65269/_/icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/65269/_/icons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/65269/_/icons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design/65269/_/icons/favicon.ico
Binary file not shown.
44 changes: 44 additions & 0 deletions design/65269/_/js/permalink.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// If the page was opened with an anchor (e.g. #foo),
// and the destination is a <details> element, open it.
function openDetailsAnchor() {
let hash = window.location.hash
if (!hash) {
return
}
let el = document.getElementById(hash.slice(1)) // remove leading '#'
if (!el) {
return
}

let details = el.closest("details")
while (details) {
details.open = true
details = details.parentElement.closest("details")
}

// New elements may have appeared.
// Set hash again to scroll to the right place.
window.location.hash = hash;
return false;
}

window.addEventListener('hashchange', openDetailsAnchor)

window.addEventListener('load', () => {
document.querySelectorAll("h2, h3, h4, h5, h6").forEach((el) => {
if (!el.id) {
return
}
el.innerHTML += ' <a class="permalink" href="#'+el.id+'">&para;</a>'
})

document.querySelectorAll("details.example > summary").forEach((el) => {
let id = el.parentElement.id;
if (!id) {
return
}
el.innerHTML += ' <a class="permalink" href="#'+id+'">&para;</a>'
})

openDetailsAnchor()
})
36 changes: 36 additions & 0 deletions design/65269/golang.org/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="doc2go">
<link href="../_/css/main.css" rel="stylesheet" />
<link rel="apple-touch-icon" sizes="180x180" href="../_/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../_/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../_/icons/favicon-16x16.png">
<link rel="shortcut icon" href="../_/icons/favicon.ico"><title>golang.org</title>
</head>
<body>
<nav>
golang.org<span class="navbar-right">
<a href="..">Root</a></span>
</nav>
<main><h3 id="pkg-directories">Directories</h3>

<table>
<tbody>
<tr>
<td><a href="x/crypto/ssh">x/crypto/ssh</a></td>
<td>Package ssh implements an SSH client and server.</td>
</tr>
</tbody>
</table>
</main>
<hr>
<footer>
<small id="generated-by-footer">
Generated with <a href="https://abhinav.github.io/doc2go/">doc2go</a>
</small>
</footer>
<script src="../_/js/permalink.js"></script></body>
</html>
36 changes: 36 additions & 0 deletions design/65269/golang.org/x/crypto/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="doc2go">
<link href="../../../_/css/main.css" rel="stylesheet" />
<link rel="apple-touch-icon" sizes="180x180" href="../../../_/icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../../../_/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../../../_/icons/favicon-16x16.png">
<link rel="shortcut icon" href="../../../_/icons/favicon.ico"><title>golang.org/x/crypto</title>
</head>
<body>
<nav>
<a href="../..">golang.org</a>/<a href="..">x</a>/crypto<span class="navbar-right">
<a href="../../..">Root</a></span>
</nav>
<main><h3 id="pkg-directories">Directories</h3>

<table>
<tbody>
<tr>
<td><a href="ssh">ssh</a></td>
<td>Package ssh implements an SSH client and server.</td>
</tr>
</tbody>
</table>
</main>
<hr>
<footer>
<small id="generated-by-footer">
Generated with <a href="https://abhinav.github.io/doc2go/">doc2go</a>
</small>
</footer>
<script src="../../../_/js/permalink.js"></script></body>
</html>
Loading

0 comments on commit 410f1af

Please sign in to comment.