branch: master
commit d89e837d68cd8466f5017a816e10c131fc80a992
Author: Noam Postavsky <[email protected]>
Commit: Noam Postavsky <[email protected]>
add top level menu, minimal styling
---
doc/nav-menu.html.inc | 15 +++++++++++++++
doc/org-setup.inc | 2 +-
doc/stylesheets/manual.css | 26 ++++++++++++++++++++++++++
doc/yas-doc-helper.el | 4 ++++
4 files changed, 46 insertions(+), 1 deletions(-)
diff --git a/doc/nav-menu.html.inc b/doc/nav-menu.html.inc
new file mode 100644
index 0000000..a0d8a3e
--- /dev/null
+++ b/doc/nav-menu.html.inc
@@ -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>
diff --git a/doc/org-setup.inc b/doc/org-setup.inc
index 96b7028..98f7c04 100644
--- a/doc/org-setup.inc
+++ b/doc/org-setup.inc
@@ -4,6 +4,6 @@
#+LINK: sym file:snippet-reference.org::#%s
-#+LINK_HOME: ./index.html
#+OPTIONS: author:nil num:nil
#+AUTHOR:
+#+STYLE: <link rel="stylesheet" type="text/css" href="stylesheets/manual.css"
/>
diff --git a/doc/stylesheets/manual.css b/doc/stylesheets/manual.css
new file mode 100644
index 0000000..f2677c5
--- /dev/null
+++ b/doc/stylesheets/manual.css
@@ -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%;
+}
diff --git a/doc/yas-doc-helper.el b/doc/yas-doc-helper.el
index 495bf9e..a782c1f 100755
--- a/doc/yas-doc-helper.el
+++ b/doc/yas-doc-helper.el
@@ -124,6 +124,10 @@
(proj-plist
(list
: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
(concat "<hr><p class='creator'>Generated by %c on %d from "
rev "</p>\n"