User: barry.wardell Date: 2014/03/13 03:58 PM
Added: /documentation/ThornDoc/ .htaccess
Removed: /documentation/ThornDoc/ .htaccess.bak
Modified: /documentation/ThornDoc/ index.php /global/ style.css
Log: Minor improvements to ThornDoc pages
Use .htaccess so that linking to documentation.html is not necessary. Add some css stying.
File Changes:
Directory: /documentation/ThornDoc/ ===================================
File [added]: .htaccess Delta lines: +1 -0 =================================================================== --- documentation/ThornDoc/.htaccess (rev 0) +++ documentation/ThornDoc/.htaccess 2014-03-13 20:58:56 UTC (rev 1137) @@ -0,0 +1 @@ +DirectoryIndex documentation.html index.html index.php
File [removed]: .htaccess.bak Delta lines: +0 -1 =================================================================== --- documentation/ThornDoc/.htaccess.bak 2014-03-13 17:54:42 UTC (rev 1136) +++ documentation/ThornDoc/.htaccess.bak 2014-03-13 20:58:56 UTC (rev 1137) @@ -1 +0,0 @@ -DirectoryIndex documentation.html index.html index.php
File [modified]: index.php Delta lines: +17 -14 =================================================================== --- documentation/ThornDoc/index.php 2014-03-13 17:54:42 UTC (rev 1136) +++ documentation/ThornDoc/index.php 2014-03-13 20:58:56 UTC (rev 1137) @@ -4,18 +4,20 @@ </head> <body>
-<!-- <script> --> -<!-- (function() { --> -<!-- var cx = '010633638434495175530:drikheaxmhi'; --> -<!-- var gcse = document.createElement('script'); --> -<!-- gcse.type = 'text/javascript'; --> -<!-- gcse.async = true; --> -<!-- gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + --> -<!-- '//www.google.com/cse/cse.js?cx=' + cx; --> -<!-- var s = document.getElementsByTagName('script')[0]; --> -<!-- s.parentNode.insertBefore(gcse, s); --> -<!-- })(); --> -<!-- </script> --> +<!-- +<script> +(function() { + var cx = '010633638434495175530:drikheaxmhi'; + var gcse = document.createElement('script'); + gcse.type = 'text/javascript'; + gcse.async = true; + gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + + '//www.google.com/cse/cse.js?cx=' + cx; + var s = document.getElementsByTagName('script')[0]; + s.parentNode.insertBefore(gcse, s); +})(); +</script> +-->
<?php $title='Documentation'; include_once($_SERVER['DOCUMENT_ROOT'].'/global/header.php'); ?> @@ -25,7 +27,7 @@
<?php
- $arrangementlist = glob("*/documentation.html"); + $arrangementlist = sort(glob("*/documentation.html"));
echo "<ul>"; foreach($arrangementlist as $arrangement) @@ -44,6 +46,7 @@ $arrangement = dirname($thorn_path); $arrangements[$arrangement][] = $thorn; } + ksort($arrangements);
foreach($arrangements as $name => $arrangement) { @@ -53,7 +56,7 @@ { if (file_exists("$name/$thorn/documentation.html")) { - echo "<li class="doclist"><a href='$name/$thorn/documentation.html'>$thorn</a></li>\n"; + echo "<li class="doclist"><a href='$name/$thorn'>$thorn</a></li>\n"; } else {
Directory: /global/ ===================
File [modified]: style.css Delta lines: +27 -0 =================================================================== --- global/style.css 2014-03-13 17:54:42 UTC (rev 1136) +++ global/style.css 2014-03-13 20:58:56 UTC (rev 1137) @@ -138,4 +138,31 @@ a.downloadbutton {font-size: 2em; font-weight: bold} p.downloadnotice {text-align: center}
+/* ThornDoc */ li.doclist {display: inline-block; margin-left: 0.3em; margin-right: 0.3em} + +table.gsc-search-box td { + border: 0px; +} + +div.gsc-control-cse { + padding: 0px; + border: 0px; +} + +form.gsc-search-box { + padding: 10px 0px 0px 0px; + border: 0px; +} + +div.gsc-results-wrapper-overlay td, div.gsc-results-wrapper-visible td{ + border: 0px; +} + +.gsc-results .gsc-cursor-box .gsc-cursor-current-page { + color: #FFFFFF; +} + +div.gsc-results-wrapper-overlay a:hover, div.gsc-results-wrapper-visible a:hover{ + text-shadow: none; +}
commits@lists.einsteintoolkit.org