[libav-commits] style: add second-level navigation

Luca Barbato git at libav.org
Mon Oct 8 11:38:11 CEST 2012


Module: libav.org
Branch: master
Commit: 76bad640397020c1fc8022f49618e04ec0eff819

Author:    Luca Barbato <lu_zero at gentoo.org>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Fri Sep 28 12:26:52 2012 +0200

style: add second-level navigation

---

 Makefile                |   17 ++++++++++++++---
 htdocs/css/libav.css    |    9 ++++++++-
 sed_commands            |    8 ++++----
 src/about               |    2 --
 src/about_breadcrumb    |    4 ++++
 src/legal               |    2 --
 src/legal_breadcrumb    |    8 ++++++++
 src/projects            |    2 --
 src/projects_breadcrumb |    5 +++++
 src/shame               |    2 --
 src/shame_breadcrumb    |    7 +++++++
 src/template_head2      |    3 ---
 12 files changed, 50 insertions(+), 19 deletions(-)

diff --git a/Makefile b/Makefile
index 6ff2e52..c6269fd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,14 @@
 SRCS = about bugreports consulting contact documentation download \
        index legal projects shame
 
+SRCS_2 = about legal projects shame
+
 TARGETS = $(addsuffix .html,$(addprefix htdocs/,$(SRCS)))
+TARGETS_2 = $(addsuffix .html,$(addprefix htdocs/,$(SRCS_2)))
+
+ALL_TARGETS = $(TARGETS) $(TARGETS_2)
 
-PAGE_DEPS = src/template_head1 src/template_head2 src/template_footer sed_commands
+PAGE_DEPS = src/template_head1 src/template_head2 src/template_footer
 
 
 all: $(TARGETS)
@@ -12,8 +17,14 @@ clean:
 	rm -f $(TARGETS)
 
 htdocs/%.html: src/% src/%_title $(PAGE_DEPS)
-	sed -f sed_commands $< | \
-	cat src/template_head1 $<_title src/template_head2 - \
+	cat src/template_head1 $<_title \
+	    src/template_head2 $(BREADCRUMB) \
+	    src/template_head3 $< \
 	src/template_footer > $@
 
+$(TARGETS_2): htdocs/%.html: src/%_breadcrumb
+
+$(TARGETS_2): BREADCRUMB=$<_breadcrumb
+
+
 .PHONY: all clean
diff --git a/htdocs/css/libav.css b/htdocs/css/libav.css
index 669a97c..f356ae0 100644
--- a/htdocs/css/libav.css
+++ b/htdocs/css/libav.css
@@ -8,7 +8,7 @@
 }
 
 body {
-  padding-top: 51px;
+  padding-top: 55px;
 }
 
 h1 small {
@@ -56,3 +56,10 @@ h4 {
 .google {
   color: white;
 }
+
+.breadcrumb {
+  font-size: 11px;
+  padding-top: 2px;
+  padding-bottom: 2px;
+}
+
diff --git a/sed_commands b/sed_commands
index c539df7..d0bd7fa 100644
--- a/sed_commands
+++ b/sed_commands
@@ -1,8 +1,8 @@
 /LIBAV_ABOUT_NAVBAR/a\
-<div id="navbar_secondary">\
-<a href="about.html">About</a>\
-<a href="projects.html">Projects Using Libav</a>\
-</div>
+<ul class="breadcrumb">\
+<li><a href="about.html">About</a><span class="divider">/</span></li> \
+<li><a href="projects.html">Projects Using Libav</a></li>\
+</ul>
 /LIBAV_ABOUT_NAVBAR/d
 
 /LIBAV_LEGAL_NAVBAR/a\
diff --git a/src/about b/src/about
index 6a7fb31..160cdda 100644
--- a/src/about
+++ b/src/about
@@ -1,5 +1,3 @@
-LIBAV_ABOUT_NAVBAR
-
 <h1>About Libav</h1>
 
 <p> Libav is friendly and community driven effort to provide its users
diff --git a/src/about_breadcrumb b/src/about_breadcrumb
new file mode 100644
index 0000000..992e17d
--- /dev/null
+++ b/src/about_breadcrumb
@@ -0,0 +1,4 @@
+<ul class="breadcrumb">
+<li class="active">About<span class="divider">/</span></li>
+<li><a href="projects.html">Projects Using Libav</a></li>
+</ul>
diff --git a/src/legal b/src/legal
index 9864756..0c3bf6c 100644
--- a/src/legal
+++ b/src/legal
@@ -1,5 +1,3 @@
-LIBAV_LEGAL_NAVBAR
-
 <h1>Libav License and Legal Considerations</h1>
 
 <p>
diff --git a/src/legal_breadcrumb b/src/legal_breadcrumb
new file mode 100644
index 0000000..fdfe032
--- /dev/null
+++ b/src/legal_breadcrumb
@@ -0,0 +1,8 @@
+<ul class="breadcrumb">
+<li class="active">License and Legal Issues
+<span class="divider">/</span>
+</li>
+<li>
+<a href="shame.html">Hall of Shame</a>
+</li>
+</ul>
diff --git a/src/projects b/src/projects
index 342a9c8..dcf02b2 100644
--- a/src/projects
+++ b/src/projects
@@ -1,5 +1,3 @@
-LIBAV_ABOUT_NAVBAR
-
 <h1>Libav-Based Projects</h1>
 
 <p>
diff --git a/src/projects_breadcrumb b/src/projects_breadcrumb
new file mode 100644
index 0000000..bcbd090
--- /dev/null
+++ b/src/projects_breadcrumb
@@ -0,0 +1,5 @@
+<ul class="breadcrumb">
+<li>
+<a href="about.html">About</a><span class="divider">/</span></li>
+<li class="active">Projects Using Libav</li>
+</ul>
diff --git a/src/shame b/src/shame
index e8dc6e4..baf7245 100644
--- a/src/shame
+++ b/src/shame
@@ -1,5 +1,3 @@
-LIBAV_LEGAL_NAVBAR
-
 <h1>Hall of Shame</h1>
 
 <p>
diff --git a/src/shame_breadcrumb b/src/shame_breadcrumb
new file mode 100644
index 0000000..4d4cb83
--- /dev/null
+++ b/src/shame_breadcrumb
@@ -0,0 +1,7 @@
+<ul class="breadcrumb">
+<li>
+<a href="legal.html">License and Legal Issues</a>
+<span class="divider">/</span>
+</li>
+<li class="active">Hall of Shame</li>
+</ul>
diff --git a/src/template_head2 b/src/template_head2
index c040775..ce72d08 100644
--- a/src/template_head2
+++ b/src/template_head2
@@ -25,7 +25,4 @@
 <li><a href="legal.html">Legal</a></li>
 </ul>
 </div>
-</div>
-
-<div class="container">
 



More information about the libav-commits mailing list