add top level menu, minimal styling

This commit is contained in:
Noam Postavsky 2013-12-10 22:50:49 -05:00
parent 7518cb4621
commit d89e837d68
4 changed files with 46 additions and 1 deletions

15
doc/nav-menu.html.inc Normal file
View File

@ -0,0 +1,15 @@
<nav>
<ul class="center">
<li> <a href="index.html">Overview</a>
<li> <a href="https://github.com/capitaomorte/yasnippet/blob/master/README.mdown">
Intro and Tutorial</a>
<li class="center">Snippet
<ul>
<li> <a href="snippet-organization.html">Organization</a>
<li> <a href="snippet-expansion.html">Expansion</a>
<li> <a href="snippet-development.html">Development</a>
<li> <a href="snippet-menu.html">Menu</a>
</ul>
<li> <a href="faq.html">FAQ</a>
</ul>
</nav>

View File

@ -4,6 +4,6 @@
#+LINK: sym file:snippet-reference.org::#%s #+LINK: sym file:snippet-reference.org::#%s
#+LINK_HOME: ./index.html
#+OPTIONS: author:nil num:nil #+OPTIONS: author:nil num:nil
#+AUTHOR: #+AUTHOR:
#+STYLE: <link rel="stylesheet" type="text/css" href="stylesheets/manual.css" />

View File

@ -0,0 +1,26 @@
nav > ul > li.center > ul {
padding: 0;
}
nav li {
vertical-align: top;
display: inline;
list-style-type: none;
padding: 0.5em;
}
nav > ul > li {
display: inline-block;
}
/* match org's css for <pre> */
code {
background-color: #F3F5F7;
font-family: courier, monospace;
}
#content {
margin-left: 5%;
margin-right: 10%;
}

View File

@ -124,6 +124,10 @@
(proj-plist (proj-plist
(list (list
:base-directory dir :publishing-directory dir :base-directory dir :publishing-directory dir
:html-preamble
(with-temp-buffer
(insert-file-contents (expand-file-name "nav-menu.html.inc" dir))
(buffer-string))
:html-postamble :html-postamble
(concat "<hr><p class='creator'>Generated by %c on %d from " (concat "<hr><p class='creator'>Generated by %c on %d from "
rev "</p>\n" rev "</p>\n"