Skip to content

Commit

Permalink
Merge pull request #4 from amclin/master
Browse files Browse the repository at this point in the history
Exclude non-PHP files from styleguide
  • Loading branch information
Brad Frost committed Jun 6, 2013
2 parents fa4c548 + b8f38c1 commit d01b41c
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 18 deletions.
Binary file removed .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion css/scss/objects/_accordion.scss
Expand Up @@ -26,7 +26,7 @@
&.active {
background: $gray-dark;

a:after {
&:after {
content:"-";
}
}
Expand Down
2 changes: 1 addition & 1 deletion css/style.css
Expand Up @@ -1019,7 +1019,7 @@ td {
background: #333333; }
.acc-handle.active {
background: #333333; }
.acc-handle.active a:after {
.acc-handle.active:after {
content: "-"; }

.tabs {
Expand Down
Binary file removed images/.DS_Store
Binary file not shown.
7 changes: 4 additions & 3 deletions index.php
Expand Up @@ -14,7 +14,7 @@
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="styleguide/js/jquery.js"><\/script>')</script>
</head>
<body>
<body class="sg-nav-wrapper">
<!--Style Guide Header-->
<header class="sg-header" role="banner">
<a href="#sg-nav-container" class="sg-nav-toggle">Menu</a>
Expand All @@ -40,8 +40,9 @@ function listFolderFiles($dir,$exclude){
if(is_dir($dir.'/'.$ff)){ /*If main section */
echo '<li class="sg-nav-'.$fCaps.'"><a href="?url='.$pathToFile.'/'.$ff.'" class="sg-acc-handle">'.$fCaps.'</a><ol class="sg-acc-panel">';
} else { /* If SubItem */
//if(strlen(strstr($ff, '.', true)) < 1) continue; //Continue if hidden file
echo '<li><a href="?url='.$pathToFile.'/'.$ff.'" class="sg-pop">'.$fCaps.'</a></li>';
if(pathinfo($ff,PATHINFO_EXTENSION) == 'php') { //Skip non-PHP files
echo '<li><a href="?url='.$pathToFile.'/'.$ff.'" class="sg-pop">'.$fCaps.'</a></li>';
}
}

if(is_dir($dir.'/'.$ff)) {
Expand Down
Binary file removed js/.DS_Store
Binary file not shown.
Binary file removed patterns/00-Atoms/07-Unsed/.DS_Store
Binary file not shown.
Binary file removed patterns/00-Atoms/07-Unsed/00-Text/.DS_Store
Binary file not shown.
Binary file removed patterns/00-Atoms/07-Unused/.DS_Store
Binary file not shown.
Binary file removed patterns/00-Atoms/07-Unused/00-Text/.DS_Store
Binary file not shown.
Binary file removed patterns/01-Molecules/.DS_Store
Binary file not shown.
Binary file removed patterns/01-Molecules/03-Media/.DS_Store
Binary file not shown.
11 changes: 6 additions & 5 deletions styleguide.php
Expand Up @@ -40,11 +40,12 @@ function displayPatterns($dir,$exclude){
if(is_dir($dir.'/'.$ff)){ /*If main section */
echo '<div class="sg-section" id="'.$fName.'">';
} else { /* If SubItem */
//if(strlen(strstr($ff, '.', true)) < 1) continue; //Continue if hidden file
echo '<h2 class="sg-head sg-sub" id="'.$fName.'"><a href="'.$absolutePath.'?url='.$pathToFile.'/'.$ff.'" class="sg-pop">'.$fCaps.'</a></h2>';
echo '<div class="sg-pattern">';
include $dir.'/'.$ff;
echo '</div>';
if(pathinfo($ff,PATHINFO_EXTENSION) == 'php') { //Skip non-PHP files
echo '<h2 class="sg-head sg-sub" id="'.$fName.'"><a href="'.$absolutePath.'?url='.$pathToFile.'/'.$ff.'" class="sg-pop">'.$fCaps.'</a></h2>';
echo '<div class="sg-pattern">';
include $dir.'/'.$ff;
echo '</div>';
}
}

if(is_dir($dir.'/'.$ff)) {
Expand Down
Binary file removed styleguide/css/.DS_Store
Binary file not shown.
20 changes: 14 additions & 6 deletions styleguide/css/styleguide.css

Large diffs are not rendered by default.

17 changes: 15 additions & 2 deletions styleguide/css/styleguide.scss

Large diffs are not rendered by default.

0 comments on commit d01b41c

Please sign in to comment.