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
0532363b
Commit
0532363b
authored
Apr 01, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More doc tweaks.
parent
7bb9f28d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
152 additions
and
61 deletions
+152
-61
.gitignore
.gitignore
+3
-0
page.html
doc/_layouts/page.html
+18
-12
index.md
doc/index.md
+17
-0
install.md
doc/install.md
+2
-2
push-site.sh
doc/push-site.sh
+53
-0
stylesheet.css
doc/stylesheets/stylesheet.css
+59
-47
No files found.
.gitignore
View file @
0532363b
...
@@ -27,3 +27,6 @@
...
@@ -27,3 +27,6 @@
# Jekyll-generated site
# Jekyll-generated site
/doc/_site
/doc/_site
# Checkout of gh-pages made by /doc/push-site.sh
/doc/.gh-pages
doc/_layouts/page.html
View file @
0532363b
...
@@ -5,13 +5,14 @@
...
@@ -5,13 +5,14 @@
<meta
charset=
'utf-8'
/>
<meta
charset=
'utf-8'
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"chrome=1"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"chrome=1"
/>
<meta
name=
"description"
content=
"Capnproto : Cap'n Proto serialization/RPC system"
/>
<meta
name=
"description"
content=
"Capnproto : Cap'n Proto serialization/RPC system"
/>
<meta
name=
"viewport"
content=
"width=480"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"stylesheets/stylesheet.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"stylesheets/stylesheet.css"
>
<title>
Cap'n Proto
</title>
<title>
Cap'n Proto
</title>
</head>
</head>
<body>
<body
class=
"desktop"
>
<!-- HEADER -->
<!-- HEADER -->
<div
id=
"header_wrap"
class=
"outer"
>
<div
id=
"header_wrap"
class=
"outer"
>
...
@@ -31,7 +32,9 @@
...
@@ -31,7 +32,9 @@
<!-- MAIN CONTENT -->
<!-- MAIN CONTENT -->
<div
id=
"main_content_wrap"
class=
"outer"
>
<div
id=
"main_content_wrap"
class=
"outer"
>
<section
id=
"menu"
class=
"desktop"
>
<div
id=
"corner_hack"
><div>
</div></div>
<section
id=
"menu"
>
<ul>
<ul>
<li><a
href=
"index.html"
>
Introduction
</a></li>
<li><a
href=
"index.html"
>
Introduction
</a></li>
<li><a
href=
"install.html"
>
Installation
</a></li>
<li><a
href=
"install.html"
>
Installation
</a></li>
...
@@ -43,7 +46,8 @@
...
@@ -43,7 +46,8 @@
</ul>
</ul>
</section>
</section>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
// Highlight the current page in the sidebar, and make the sidebar items easy to click.
// Highlight the current page in the sidebar, make the sidebar items easy to click, and
// make the sidebar float when scrolled, unless there isn't enough space.
(
function
()
{
(
function
()
{
var
pathname
=
document
.
location
.
pathname
;
var
pathname
=
document
.
location
.
pathname
;
var
last
=
pathname
.
lastIndexOf
(
'/'
);
var
last
=
pathname
.
lastIndexOf
(
'/'
);
...
@@ -55,19 +59,20 @@
...
@@ -55,19 +59,20 @@
var
menu
=
document
.
getElementById
(
"menu"
);
var
menu
=
document
.
getElementById
(
"menu"
);
var
setMenuLayout
=
function
()
{
var
setMenuLayout
=
function
()
{
if
(
window
.
innerWidth
<
11
5
0
)
{
if
(
window
.
innerWidth
<
11
7
0
)
{
menu
.
className
=
"mobile
"
;
document
.
body
.
className
=
"narrow
"
;
menu
.
style
.
position
=
"relative
"
;
menu
.
className
=
"
"
;
}
else
if
(
window
.
innerHeight
<
90
0
)
{
}
else
if
(
window
.
scrollY
<
219
||
window
.
innerHeight
<
menu
.
clientHeight
+
2
0
)
{
menu
.
className
=
"desktop
"
;
document
.
body
.
className
=
"wide
"
;
menu
.
style
.
position
=
"absolute
"
;
menu
.
className
=
"
"
;
}
else
{
}
else
{
menu
.
className
=
"desktop
"
;
document
.
body
.
className
=
"wide
"
;
menu
.
style
.
position
=
"fixed
"
;
menu
.
className
=
"floating
"
;
}
}
};
};
setMenuLayout
();
setMenuLayout
();
window
.
onresize
=
setMenuLayout
;
window
.
onresize
=
setMenuLayout
;
window
.
onscroll
=
setMenuLayout
;
var
items
=
menu
.
getElementsByTagName
(
"li"
);
var
items
=
menu
.
getElementsByTagName
(
"li"
);
for
(
var
i
=
0
;
i
<
items
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
items
.
length
;
i
++
)
{
...
@@ -83,7 +88,7 @@
...
@@ -83,7 +88,7 @@
window
.
location
.
href
=
url
;
window
.
location
.
href
=
url
;
event
.
stopPropagation
();
event
.
stopPropagation
();
}
}
})(
href
);
})(
href
+
"#main_content"
);
parent
.
appendChild
(
p
);
parent
.
appendChild
(
p
);
items
[
i
].
className
=
"selected"
;
items
[
i
].
className
=
"selected"
;
var
toc
=
document
.
createElement
(
"ul"
);
var
toc
=
document
.
createElement
(
"ul"
);
...
@@ -115,6 +120,7 @@
...
@@ -115,6 +120,7 @@
</div>
</div>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
// Inject a table of contents into the sidebar.
(
function
()
{
(
function
()
{
var
toc
=
document
.
getElementById
(
"toc"
);
var
toc
=
document
.
getElementById
(
"toc"
);
if
(
toc
)
{
if
(
toc
)
{
...
...
doc/index.md
View file @
0532363b
...
@@ -74,3 +74,20 @@ years of experience working on Protobufs, listening to user feedback, and thinki
...
@@ -74,3 +74,20 @@ years of experience working on Protobufs, listening to user feedback, and thinki
things could be done better.
things could be done better.
I no longer work for Google. Cap'n Proto is not affiliated with Google or any other company.
I no longer work for Google. Cap'n Proto is not affiliated with Google or any other company.
**_OK, how do I get started?_**
At this time, Cap'n Proto is not ready for production use. If you'd like to help it get there,
let us know on the
[
discussion group
](
https://groups.google.com/group/capnproto
)
. If you'd just
like to know when it's ready, add yourself to the
[
announcement list
](
https://groups.google.com/group/capnproto-announce
)
.
<div
style=
"float: right"
>
<a class="github_link" style="color: #fff"
href="https://github.com/kentonv/capnproto">Develop
</a>
<a class="groups_link" style="color: #fff"
href="https://groups.google.com/group/capnproto">Discuss
</a>
<a class="groups_link" style="color: #fff"
href="https://groups.google.com/group/capnproto-announce">Stay Updated
</a>
</div>
<div
style=
"clear: right;"
>
</div>
doc/install.md
View file @
0532363b
...
@@ -6,8 +6,8 @@ layout: page
...
@@ -6,8 +6,8 @@ layout: page
<p
style=
"font-size: 125%; font-weight: bold;"
>
Note: Cap'n Proto is not ready yet
</p>
<p
style=
"font-size: 125%; font-weight: bold;"
>
Note: Cap'n Proto is not ready yet
</p>
<
a class="prominent
_link" style="color: #fff"
<
div
style=
"float: right"
>
<a class="groups
_link" style="color: #fff"
href="https://groups.google.com/group/capnproto-announce">Sign Up for Updates
</a>
href="https://groups.google.com/group/capnproto-announce">Sign Up for Updates
</a>
</div>
As of this writing, Cap'n Proto is in the very early stages of development. It is still missing
As of this writing, Cap'n Proto is in the very early stages of development. It is still missing
many essential features:
many essential features:
...
...
doc/push-site.sh
0 → 100755
View file @
0532363b
#! /bin/sh
set
-eu
if
[
"x
$(
git status
--porcelain
)
"
!=
"x"
]
;
then
echo
"error: git repo has uncommited changes."
>
&2
exit
1
fi
if
[
!
-e
.gh-pages
]
;
then
git clone
-b
gh-pages https://github.com/kentonv/capnproto.git .gh-pages
cd
.gh-pages
else
cd
.gh-pages
git pull
fi
if
[
"x
$(
git status
--porcelain
)
"
!=
"x"
]
;
then
echo
"error: .gh-pages is not clean."
>
&2
exit
1
fi
cd
..
exit
0
rm
-rf
_site .gh-pages/
*
jekyll
--pygments
--no-lsi
--safe
cp
-r
_site/
*
.gh-pages
REV
=
"
$(
git rev-parse HEAD
)
"
cd
.gh-pages
git add
*
git commit
-m
"site generated @
$REV
"
if
[
"x
$(
git status
--porcelain
)
"
!=
"x"
]
;
then
echo
"error: .gh-pages is not clean after commit."
>
&2
exit
1
fi
echo
-n
"Push now? (y/N)"
read
-n
1 YESNO
echo
if
[
"
$YESNO
"
==
"y"
]
;
then
git push
cd
..
rm
-rf
.gh-pages
else
echo
"Did not push. You may want to delete .gh-pages."
fi
doc/stylesheets/stylesheet.css
View file @
0532363b
...
@@ -175,7 +175,9 @@ pre, code {
...
@@ -175,7 +175,9 @@ pre, code {
}
}
pre
{
pre
{
width
:
100%
;
width
:
-moz-calc
(
100%
-
20px
);
width
:
-webkit-calc
(
100%
-
20px
);
width
:
calc
(
100%
-
20px
);
padding
:
10px
;
padding
:
10px
;
box-shadow
:
0
0
10px
rgba
(
0
,
0
,
0
,
.1
);
box-shadow
:
0
0
10px
rgba
(
0
,
0
,
0
,
.1
);
overflow
:
auto
;
overflow
:
auto
;
...
@@ -208,31 +210,6 @@ ul li {
...
@@ -208,31 +210,6 @@ ul li {
list-style
:
outside
;
list-style
:
outside
;
}
}
/*
#toc {
background-color: #fff;
padding: 10px;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
box-shadow: 0 0 5px #ebebeb;
-webkit-box-shadow: 0 0 5px #ebebeb;
-moz-box-shadow: 0 0 5px #ebebeb;
-o-box-shadow: 0 0 5px #ebebeb;
-ms-box-shadow: 0 0 5px #ebebeb;
}
#toc li {
list-style: none
}
#toc ul {
padding-bottom: 0;
margin-bottom: 0;
}
*/
ol
li
{
ol
li
{
list-style
:
decimal
outside
;
list-style
:
decimal
outside
;
}
}
...
@@ -332,11 +309,11 @@ Full-Width Styles
...
@@ -332,11 +309,11 @@ Full-Width Styles
border-bottom-right-radius
:
2px
;
border-bottom-right-radius
:
2px
;
}
}
.prominent_link
{
.groups_link
{
display
:
block
;
display
:
inline-block
;
float
:
right
;
z-index
:
10
;
z-index
:
10
;
padding
:
10px
50px
10px
10px
;
padding
:
10px
50px
10px
10px
;
margin
:
5px
;
color
:
#fff
;
color
:
#fff
;
background
:
url('../images/groups-logo.png')
#0090ff
no-repeat
95%
50%
;
background
:
url('../images/groups-logo.png')
#0090ff
no-repeat
95%
50%
;
background-color
:
#0090ff
;
background-color
:
#0090ff
;
...
@@ -348,6 +325,22 @@ Full-Width Styles
...
@@ -348,6 +325,22 @@ Full-Width Styles
border-bottom-right-radius
:
2px
;
border-bottom-right-radius
:
2px
;
}
}
.github_link
{
display
:
inline-block
;
z-index
:
10
;
padding
:
10px
50px
10px
10px
;
margin
:
5px
;
color
:
#fff
;
background
:
url('../images/blacktocat.png')
#0090ff
no-repeat
95%
50%
;
background-color
:
#0090ff
;
font-weight
:
700
;
box-shadow
:
0
0
10px
rgba
(
0
,
0
,
0
,
.5
);
border-top-left-radius
:
2px
;
border-top-right-radius
:
2px
;
border-bottom-left-radius
:
2px
;
border-bottom-right-radius
:
2px
;
}
#header_wrap
{
#header_wrap
{
background
:
#212121
;
background
:
#212121
;
background
:
-moz-linear-gradient
(
top
,
#373737
,
#212121
);
background
:
-moz-linear-gradient
(
top
,
#373737
,
#212121
);
...
@@ -479,36 +472,55 @@ Small Device Styles
...
@@ -479,36 +472,55 @@ Small Device Styles
}
}
code
,
pre
{
code
,
pre
{
min-width
:
320px
;
max-width
:
480px
;
font-size
:
11px
;
font-size
:
11px
;
}
}
#forkme_banner
{
right
:
215px
;
}
}
}
/*******************************************************************************
.wide
#corner_hack
{
Sidbar style based on cldoc by jessevdk, because I thought it looked good.
position
:
absolute
;
I modified it heavily, though.
left
:
0px
;
*******************************************************************************/
top
:
209px
;
right
:
0px
;
height
:
10px
;
background
:
#212121
;
}
#menu
.desktop
{
.wide
#corner_hack
>
div
{
position
:
fixed
;
margin-left
:
249px
;
height
:
10px
;
border-radius
:
10px
0px
0px
0px
;
background
:
#f2f2f2
;
border-top
:
1px
solid
#111
;
border-left
:
1px
solid
#111
;
}
.wide
#menu
{
position
:
absolute
;
left
:
0px
;
left
:
0px
;
top
:
2
30
px
;
top
:
2
19
px
;
width
:
250px
;
width
:
250px
;
z-index
:
10
;
z-index
:
10
;
}
}
#menu
.mobile
{
.wide
#menu
.floating
{
position
:
fixed
;
top
:
0px
;
}
.narrow
#menu
{
position
:
relative
;
position
:
relative
;
max-width
:
640px
;
max-width
:
640px
;
padding
:
100px
10px
2
0px
10px
;
padding
:
50px
10px
0px
10px
;
margin
:
0
auto
;
margin
:
0
auto
;
}
}
@media
screen
and
(
max-width
:
480px
)
{
@media
screen
and
(
max-width
:
480px
)
{
#menu
.mobile
{
.narrow
#menu
{
min-width
:
320px
;
min-width
:
320px
;
max-width
:
480px
;
max-width
:
480px
;
}
}
...
@@ -525,20 +537,20 @@ I modified it heavily, though.
...
@@ -525,20 +537,20 @@ I modified it heavily, though.
list-style-type
:
none
;
list-style-type
:
none
;
background-color
:
#212121
;
background-color
:
#212121
;
}
}
#menu
>
ul
>
li
{
#menu
.desktop
>
ul
>
li
:first-child
{
border-right
:
1px
solid
#111
;
border-radius
:
0px
10px
0px
0px
;
}
}
#menu
.desktop
>
ul
>
li
:last-child
{
.wide
#menu
>
ul
>
li
:last-child
{
border-radius
:
0px
0px
10px
0px
;
border-radius
:
0px
0px
10px
0px
;
border-bottom
:
1px
solid
#111
;
}
}
#menu
.mobile
>
ul
>
li
:first-child
{
.narrow
#menu
>
ul
>
li
:first-child
{
border-radius
:
10px
10px
0px
0px
;
border-radius
:
10px
10px
0px
0px
;
}
}
#menu
.mobile
>
ul
>
li
:last-child
{
.narrow
#menu
>
ul
>
li
:last-child
{
border-radius
:
0px
0px
10px
10px
;
border-radius
:
0px
0px
10px
10px
;
}
}
...
...
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