2013-06-03 15:32:55 +02:00
< ?
2013-06-04 19:26:14 +02:00
/*
2013-06-12 00:28:29 +02:00
Daux . io
2013-06-04 19:26:14 +02:00
==================
Description
-----------
This is a tool for auto - generating documentation based on markdown files
located in the / docs folder of the project . To see all of the available
2013-06-12 00:28:29 +02:00
options and to read more about how to use the generator , visit :
http :// daux . io
2013-06-04 19:26:14 +02:00
Author
------
Justin Walsh ( Todaymade ) : justin @ todaymade . com , @ justin_walsh
2013-06-12 00:28:29 +02:00
Garrett Moon ( Todaymade ) : garrett @ todaymade . com , @ garrett_moon
Feedback & Suggestions
----
To give us feedback or to suggest an idea , please create an request on the the
Github issue tracker :
2013-06-04 19:26:14 +02:00
2013-06-12 00:28:29 +02:00
https :// github . com / justinwalsh / tm - docs / issues
2013-06-04 19:26:14 +02:00
Bugs
----
To file bug reports please create an issue using the github issue tracker :
https :// github . com / justinwalsh / tm - docs / issues
Copyright and License
---------------------
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are
met :
* Redistributions of source code must retain the above copyright notice ,
this list of conditions and the following disclaimer .
* Redistributions in binary form must reproduce the above copyright
notice , this list of conditions and the following disclaimer in the
documentation and / or other materials provided with the distribution .
This software is provided by the copyright holders and contributors " as
is " and any express or implied warranties, including, but not limited
to , the implied warranties of merchantability and fitness for a
particular purpose are disclaimed . In no event shall the copyright owner
or contributors be liable for any direct , indirect , incidental , special ,
exemplary , or consequential damages ( including , but not limited to ,
procurement of substitute goods or services ; loss of use , data , or
profits ; or business interruption ) however caused and on any theory of
liability , whether in contract , strict liability , or tort ( including
negligence or otherwise ) arising in any way out of the use of this
software , even if advised of the possibility of such damage .
*/
2013-06-12 00:28:29 +02:00
ini_set ( 'display_errors' , 1 );
error_reporting ( E_ALL );
require_once ( 'libs/functions.php' );
2013-06-04 19:26:14 +02:00
2013-06-12 00:28:29 +02:00
$options = get_options ();
$tree = get_tree ( " docs " );
2013-06-03 15:32:55 +02:00
?>
<! DOCTYPE html >
< html >
< head >
2013-06-11 00:26:54 +02:00
< title >< ? = $options [ 'title' ]; ?> </title>
<!-- Mobile -->
< meta name = " viewport " content = " width=device-width, initial-scale=1.0 " >
2013-06-12 00:28:29 +02:00
<!-- Font -->
2013-06-11 00:26:54 +02:00
< link href = 'http://fonts.googleapis.com/css?family=Roboto+Slab:400,700,300,100' rel = 'stylesheet' type = 'text/css' >
2013-06-12 00:28:29 +02:00
<!-- LESS -->
< ? if ( $options [ 'colors' ]) { ?>
< style type = " text/less " >
< ? foreach ( $options [ 'colors' ] as $k => $v ) { ?>
@< ? = $k ; ?> : <?=$v;?>;
< ? } ?>
@ import " /less/import/daux-base.less " ;
</ style >
< script src = " /js/less.min.js " ></ script >
< ? } else { ?>
< link rel = " stylesheet " href = " /css/daux-<?= $options['theme'] ;?>.css " >
< ? } ?>
2013-06-03 15:32:55 +02:00
<!-- hightlight . js -->
2013-06-12 00:28:29 +02:00
< script src = " /js/highlight.min.js " ></ script >
2013-06-03 15:32:55 +02:00
< script > hljs . initHighlightingOnLoad (); </ script >
<!-- Navigation -->
< script src = " //ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js " ></ script >
2013-06-12 00:28:29 +02:00
< script src = " /js/custom.js " ></ script >
2013-06-03 15:32:55 +02:00
</ head >
< body >
2013-06-12 00:28:29 +02:00
< ? if ( $homepage ) { ?>
<!-- Hompage -->
< h1 >< ? = $options [ 'title' ]; ?> </h1>
< ? if ( $options [ 'tagline' ]) { ?>
< h2 >< ? = $options [ 'tagline' ]; ?> </h2>
< ? } ?>
< ? if ( $options [ 'image' ]) { ?>
< img width = " 800 " src = " <?= $options['image'] ;?> " alt = " <?= $options['title'] ;?> " >
< ? } ?>
< ? echo load_page ( $tree ); ?>
< ? } else { ?>
<!-- Docs -->
< ? if ( $options [ 'repo' ]) { ?>
< a href = " https://github.com/<?= $options['repo'] ; ?> " target = " _blank " id = " github-ribbon " >< img src = " https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png " alt = " Fork me on GitHub " ></ a >
< ? } ?>
< div class = " container-fluid wrapper " >
< div class = " navbar navbar-fixed-top " >
< div class = " navbar-inner " >
< a class = " brand pull-left " href = " / " >< ? = $options [ 'title' ]; ?> </a>
< p class = " navbar-text pull-right " >
Generated by < a href = " http://daux.io " > Daux . io </ a >
</ p >
2013-06-11 00:26:54 +02:00
</ div >
2013-06-12 00:28:29 +02:00
</ div >
2013-06-11 00:26:54 +02:00
2013-06-12 00:28:29 +02:00
< div class = " row-fluid columns content " >
< div class = " left-column article-tree span3 " >
<!-- For Mobile -->
< div class = " responsive-collapse " >
< button type = " button " class = " btn btn-sidebar " data - toggle = " collapse " data - target = " #sub-nav-collapse " >
< span class = " icon-bar " ></ span >
< span class = " icon-bar " ></ span >
< span class = " icon-bar " ></ span >
</ button >
</ div >
< div id = " sub-nav-collapse " class = " collapse in " >
<!-- Navigation -->
< ? echo build_nav ( $tree ); ?>
< ? if ( ! empty ( $options [ 'links' ]) || ! empty ( $options [ 'twitter' ])) { ?>
< div class = " well well-sidebar " >
<!-- Links -->
< ? foreach ( $options [ 'links' ] as $name => $url ) { ?>
< a href = " <?= $url ;?> " target = " _blank " >< ? = $name ; ?> </a><br>
< ? } ?>
<!-- Twitter -->
2013-06-11 00:26:54 +02:00
< ? foreach ( $options [ 'twitter' ] as $handle ) { ?>
< div class = " twitter " >
2013-06-11 00:39:34 +02:00
< hr />
2013-06-11 00:26:54 +02:00
< iframe allowtransparency = " true " frameborder = " 0 " scrolling = " no " style = " width:162px; height:20px; " src = " https://platform.twitter.com/widgets/follow_button.html?screen_name=<?= $handle ;?>&show_count=false " ></ iframe >
</ div >
< ? } ?>
2013-06-12 00:28:29 +02:00
</ div >
< ? } ?>
</ div >
2013-06-11 00:26:54 +02:00
</ div >
2013-06-12 00:28:29 +02:00
< div class = " right-column <?=( $options['float'] ?'float-view':''); ?> content-area span9 " >
< div class = " content-page " >
< article >
< ? echo load_page ( $tree ); ?>
</ article >
</ div >
2013-06-11 00:26:54 +02:00
</ div >
2013-06-03 15:32:55 +02:00
</ div >
</ div >
2013-06-12 00:28:29 +02:00
< ? } ?>
2013-06-03 15:32:55 +02:00
</ body >
2013-06-12 00:28:29 +02:00
</ html >