Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
Signed-off-by: Wolfr <johan.ronsse@gmail.com>

# Conflicts:
#	content/styleguide/component-group.pug
#	content/styleguide/doc.pug
#	content/styleguide/index.pug
#	core/styleguide/component-group.pug
#	core/styleguide/doc.pug
#	core/styleguide/index.pug
#	core/templates/styleguide/component-group.pug
#	core/templates/styleguide/doc.pug
#	core/templates/styleguide/index.pug
  • Loading branch information
Wolfr committed Jan 15, 2019
2 parents 044b4b8 + 976bf26 commit bb137df
Show file tree
Hide file tree
Showing 7 changed files with 1,953 additions and 1,995 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8.3
10.14.1
17 changes: 17 additions & 0 deletions core/templates/styleguide/component-group.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends index

block append pageVariables
- var pageTitle = componentGroup.docs && componentGroup.docs.attributes.title || componentGroup.group.id
- var moduleTitle = pageTitle + ' - Styleguide'

block content

if !componentGroup.docs
h1.br-componentgroup-header(class=styleguideComponentGroupHeaderClass)= componentGroup.group.id
else
h1.br-componentgroup-header(class=styleguideComponentGroupHeaderClass)= componentGroup.docs.attributes.title || componentGroup.group.id
.br-content(class=styleguideRichContentClass)
!= componentGroup.docs.body

each component in componentGroup.components
+sample(component)
7 changes: 7 additions & 0 deletions core/templates/styleguide/doc.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends index

block append pageVariables
- var moduleTitle = doc.attributes.title + ' - Styleguide'

block content
!= doc.body
24 changes: 24 additions & 0 deletions core/templates/styleguide/index.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
extends /templates/_layouts/master

block append pageVariables
- var htmlClass = 'br-styleguide br-styleguide-default-styles-active'

block body

.br-styleguide-container
.br-styleguide-container-inner
.br-styleguide-navigation-holder
unless styleguideHideBrand
h1.br-styleguide-brand-heading(class=styleguideBrandClass)
a.br-reset-link-styling(href="/styleguide" class=styleguideResetLinkStylingClass) #{projectTitle}

block nav
include ../includes/styleguide-nav

.br-styleguide-content
.br-styleguide-content-inner
block content
block homeContent
// Place style guide introduction here. By default redirects to first docs page.
script.
window.location = "/styleguide/docs/introduction.html"
1 change: 0 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const gulp = require('gulp');
const inquirer = require('inquirer');
const runSequence = require('run-sequence');

const browserSync = require('./core/tasks/browser-sync');
Expand Down
Loading

0 comments on commit bb137df

Please sign in to comment.