Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
d8cc42f6
Commit
d8cc42f6
authored
Dec 05, 2015
by
David Renshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop onlick() handlers in documentation, in favor of simple links.
parent
b820678d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
48 deletions
+26
-48
header.html
doc/_includes/header.html
+12
-12
main.js
doc/javascripts/main.js
+7
-34
stylesheet.css
doc/stylesheets/stylesheet.css
+7
-2
No files found.
doc/_includes/header.html
View file @
d8cc42f6
...
...
@@ -41,18 +41,18 @@
<section
id=
"menu"
>
<ul>
<li><a
href=
"{{ site.baseurl }}index.html"
>
Introduction
</a></li>
<li><a
href=
"{{ site.baseurl }}news/"
>
News
</a></li>
<li><a
href=
"{{ site.baseurl }}install.html"
>
Installation
</a></li>
<li><a
href=
"{{ site.baseurl }}language.html"
>
Schema Language
</a></li>
<li><a
href=
"{{ site.baseurl }}encoding.html"
>
Encoding
</a></li>
<li><a
href=
"{{ site.baseurl }}rpc.html"
>
RPC Protocol
</a></li>
<li><a
href=
"{{ site.baseurl }}capnp-tool.html"
>
The
<code>
capnp
</code>
Tool
</a></li>
<li><a
href=
"{{ site.baseurl }}cxx.html"
>
C++ Serialization
</a></li>
<li><a
href=
"{{ site.baseurl }}cxxrpc.html"
>
C++ RPC
</a></li>
<li><a
href=
"{{ site.baseurl }}otherlang.html"
>
Other Languages
</a></li>
<li><a
href=
"{{ site.baseurl }}roadmap.html"
>
Road Map
</a></li>
<li><a
href=
"{{ site.baseurl }}faq.html"
>
FAQ
</a></li>
<li><a
href=
"{{ site.baseurl }}index.html"
>
<p>
Introduction
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}news/"
>
<p>
News
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}install.html"
>
<p>
Installation
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}language.html"
>
<p>
Schema Language
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}encoding.html"
>
<p>
Encoding
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}rpc.html"
>
<p>
RPC Protocol
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}capnp-tool.html"
>
<p>
The
<code>
capnp
</code>
Tool
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}cxx.html"
>
<p>
C++ Serialization
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}cxxrpc.html"
>
<p>
C++ RPC
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}otherlang.html"
>
<p>
Other Languages
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}roadmap.html"
>
<p>
Road Map
</p>
</a></li>
<li><a
href=
"{{ site.baseurl }}faq.html"
>
<p>
FAQ
</p>
</a></li>
</ul>
</section>
<section
id=
"main_content"
class=
"inner"
>
doc/javascripts/main.js
View file @
d8cc42f6
...
...
@@ -44,32 +44,17 @@ function initSidebar() {
var
href
=
link
.
href
;
if
(
href
.
lastIndexOf
(
filename
)
>=
0
)
{
var
parent
=
link
.
parentNode
;
var
p
=
document
.
createElement
(
"p"
);
while
(
link
.
childNodes
.
length
>
0
)
{
var
child
=
link
.
childNodes
[
0
];
link
.
removeChild
(
child
);
p
.
appendChild
(
child
);
p
arent
.
appendChild
(
child
);
}
parent
.
removeChild
(
link
);
p
.
onclick
=
(
function
(
url
)
{
return
function
(
event
)
{
window
.
location
.
href
=
url
;
event
.
stopPropagation
();
}
})(
href
+
"#"
);
parent
.
appendChild
(
p
);
items
[
i
].
className
=
"selected"
;
toc
=
document
.
createElement
(
"ul"
);
toc
.
id
=
"toc"
;
items
[
i
].
appendChild
(
toc
);
}
else
{
items
[
i
].
onclick
=
(
function
(
url
)
{
return
function
(
event
)
{
window
.
location
.
href
=
url
;
event
.
stopPropagation
();
}
})(
href
);
}
}
...
...
@@ -117,21 +102,15 @@ function setupSidebar() {
var
item
=
document
.
createElement
(
"li"
);
var
p
=
document
.
createElement
(
"p"
);
var
link
=
document
.
createElement
(
"a"
);
link
.
appendChild
(
document
.
createTextNode
(
headings
[
i
].
innerText
||
headings
[
i
].
textContent
));
p
.
appendChild
(
document
.
createTextNode
(
headings
[
i
].
innerText
||
headings
[
i
].
textContent
));
var
hlinks
=
headings
[
i
].
getElementsByTagName
(
"a"
);
if
(
hlinks
.
length
==
1
)
{
link
.
href
=
hlinks
[
0
].
href
;
}
else
{
link
.
href
=
"#"
+
headings
[
i
].
id
;
}
p
.
appendChild
(
link
);
p
.
onclick
=
(
function
(
url
)
{
return
function
(
event
)
{
window
.
location
.
href
=
url
;
event
.
stopPropagation
();
}
})(
link
.
href
);
item
.
appendChild
(
p
);
link
.
appendChild
(
p
);
item
.
appendChild
(
link
);
parent
.
appendChild
(
item
);
}
}
...
...
@@ -144,16 +123,10 @@ function setupNewsSidebar(items) {
var
item
=
document
.
createElement
(
"li"
);
var
p
=
document
.
createElement
(
"p"
);
var
link
=
document
.
createElement
(
"a"
);
link
.
appendChild
(
document
.
createTextNode
(
items
[
i
].
title
));
p
.
appendChild
(
document
.
createTextNode
(
items
[
i
].
title
));
link
.
href
=
items
[
i
].
url
;
p
.
appendChild
(
link
);
p
.
onclick
=
(
function
(
url
)
{
return
function
(
event
)
{
window
.
location
.
href
=
url
;
event
.
stopPropagation
();
}
})(
link
.
href
);
item
.
appendChild
(
p
);
link
.
appendChild
(
p
);
item
.
appendChild
(
link
);
toc
.
appendChild
(
item
);
}
}
...
...
doc/stylesheets/stylesheet.css
View file @
d8cc42f6
...
...
@@ -599,10 +599,15 @@ body.narrow #menu {
#menu
li
{
margin
:
0
;
padding
:
10px
15px
10px
15px
;
list-style-type
:
none
;
background-color
:
#212121
;
}
#menu
>
ul
>
li
>
a
>
p
,
#menu
>
ul
>
li
.selected
{
padding
:
10px
15px
10px
15px
;
}
#menu
>
ul
>
li
>
a
>
p
{
text-indent
:
0
;
}
#menu
>
ul
>
li
{
border-right
:
1px
solid
#111
;
}
...
...
@@ -681,7 +686,7 @@ ul#toc {
margin
:
0
;
text-indent
:
-15px
;
}
#menu
p
:hover
{
#menu
#toc
p
:hover
{
background-color
:
#313131
;
cursor
:
pointer
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment