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
c656a872
Commit
c656a872
authored
May 01, 2017
by
Kenton Varda
Committed by
Kenton Varda
May 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In mobile view, put the sidebar at the bottom, not the top. Duh.
parent
92372663
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
23 deletions
+31
-23
footer.html
doc/_includes/footer.html
+18
-0
header.html
doc/_includes/header.html
+0
-16
page.html
doc/_layouts/page.html
+0
-1
post.html
doc/_layouts/post.html
+2
-2
main.js
doc/javascripts/main.js
+10
-2
index.html
doc/news/index.html
+0
-1
stylesheet.css
doc/stylesheets/stylesheet.css
+1
-1
No files found.
doc/_includes/footer.html
View file @
c656a872
<div
style=
"clear: both;"
></div>
</section>
<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>
</ul>
</section>
<script
type=
"text/javascript"
>
setupSidebar
()
</script>
</div>
<!-- FOOTER -->
...
...
doc/_includes/header.html
View file @
c656a872
...
...
@@ -40,20 +40,4 @@
<!-- MAIN CONTENT -->
<div
id=
"main_content_wrap"
class=
"outer"
>
<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>
</ul>
</section>
<section
id=
"main_content"
class=
"inner"
>
doc/_layouts/page.html
View file @
c656a872
{% include header.html %}
{{ content }}
<script
type=
"text/javascript"
>
setupSidebar
()
</script>
{% include footer.html %}
doc/_layouts/post.html
View file @
c656a872
...
...
@@ -11,9 +11,9 @@ href="https://groups.google.com/group/capnproto-announce">Get Email Updates</a>
on
<span
class=
"date"
>
{{ page.date | date_to_string }}
</span>
</p>
{{ content }}
<script
type=
"text/javascript"
>
setupNewsSidebar
(
[
<script
type=
"text/javascript"
>
var
CAPNP_NEWS_SIDEBAR
=
[
{
%
for
post
in
site
.
posts
%
}
{
title
:
"{{ post.title }}"
,
url
:
"{{ site.baseurl }}.{{ post.url }}"
},
{
%
endfor
%
}
]
)
;
</script>
];
</script>
{% include footer.html %}
doc/javascripts/main.js
View file @
c656a872
...
...
@@ -16,6 +16,7 @@ function initSidebar() {
if
(
window
.
innerWidth
<
900
)
{
document
.
body
.
className
=
"narrow"
;
menu
.
className
=
""
;
document
.
getElementById
(
"main_content"
).
style
.
minHeight
=
"0"
;
}
else
{
if
(
document
.
body
.
clientWidth
<
1340
)
{
document
.
body
.
className
=
"normal"
;
...
...
@@ -31,6 +32,10 @@ function initSidebar() {
}
else
{
menu
.
className
=
"floating"
;
}
setTimeout
(
function
()
{
document
.
getElementById
(
"main_content"
).
style
.
minHeight
=
menu
.
clientHeight
+
100
+
"px"
;
},
10
);
}
};
setMenuLayout
();
...
...
@@ -58,12 +63,15 @@ function initSidebar() {
}
}
document
.
getElementById
(
"main_content"
).
style
.
minHeight
=
menu
.
clientHeight
+
100
+
"px"
;
return
toc
;
}
function
setupSidebar
()
{
if
(
window
.
CAPNP_NEWS_SIDEBAR
)
{
setupNewsSidebar
(
CAPNP_NEWS_SIDEBAR
);
return
;
}
var
filename
=
document
.
location
.
pathname
;
if
(
filename
.
slice
(
0
,
5
)
==
"/next"
)
{
...
...
doc/news/index.html
View file @
c656a872
...
...
@@ -20,5 +20,4 @@ href="https://groups.google.com/group/capnproto-announce">Get Email Updates</a>
{{ post.content }}
{% endfor %}
<script
type=
"text/javascript"
>
setupSidebar
()
</script>
{% include footer.html %}
doc/stylesheets/stylesheet.css
View file @
c656a872
...
...
@@ -596,7 +596,7 @@ body.narrow #menu {
position
:
relative
;
max-width
:
640px
;
padding
:
50px
10px
0px
10px
;
margin
:
0
auto
;
margin
:
0
auto
1em
;
}
@media
screen
and
(
max-width
:
480px
)
{
...
...
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