diff options
author | Romain d'Alverny <rda@mageia.org> | 2012-05-15 09:31:23 +0000 |
---|---|---|
committer | Romain d'Alverny <rda@mageia.org> | 2012-05-15 09:31:23 +0000 |
commit | 537565bc926eff6c90d3184512b486be8b9aa30d (patch) | |
tree | a8b0468ac163ad9f0e5ec89f1c9a78837faa8531 /_nav | |
parent | c10b088ae31c1dc1026755b936456c32a94ef0a3 (diff) | |
download | www-537565bc926eff6c90d3184512b486be8b9aa30d.tar www-537565bc926eff6c90d3184512b486be8b9aa30d.tar.gz www-537565bc926eff6c90d3184512b486be8b9aa30d.tar.bz2 www-537565bc926eff6c90d3184512b486be8b9aa30d.tar.xz www-537565bc926eff6c90d3184512b486be8b9aa30d.zip |
better doc self test
Diffstat (limited to '_nav')
-rw-r--r-- | _nav/index.php | 9 | ||||
-rw-r--r-- | _nav/js/source.js | 4 |
2 files changed, 10 insertions, 3 deletions
diff --git a/_nav/index.php b/_nav/index.php index c4064d458..d5867d713 100644 --- a/_nav/index.php +++ b/_nav/index.php @@ -1,17 +1,20 @@ <html lang="en"> <head> <meta name="robots" content="noindex,nosnippet,nofollow"> + <title>mognase doc</title> <style> - #navdoc { font: 14px/1.4 "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Tahoma, Arial, sans-serif; } + html, body { margin: 0; padding: 0; } + #navdoc { font: 14px/1.4 "Trebuchet MS", "Lucida Grande", "Lucida Sans", Verdana, Tahoma, Arial, sans-serif; margin: 10px; } #navdoc code { background: #333; color: #eee; font-size: 80%; padding: 0.5em; } </style> </head> -<body id="navdoc"> +<body class="community"> + <div id="navdoc"> <?php include '../lib/php-markdown/markdown.php'; echo Markdown(file_get_contents('README.md')); ?> + </div> <script src="/_nav/js/"></script> - <p>(this document uses the Javascript snippet) </body> </html>
\ No newline at end of file diff --git a/_nav/js/source.js b/_nav/js/source.js index 484c33e57..d3695a357 100644 --- a/_nav/js/source.js +++ b/_nav/js/source.js @@ -11,6 +11,10 @@ f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3 $("head").append('<link rel="stylesheet" href="//www.mageia.org/_nav/css/">'); + // TODO test is h1#mgnavt exists; + // TODO if not, inject existing first h1 value into a new h1#mgnavt element; + // TODO and remove old h1. + var params = { b: $("body").attr("class"), u: document.location.href, |