-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
617 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
var Page = require('sitepage').Page | ||
|
||
module.exports = (function () { | ||
// CONSTRUCTOR | ||
/** | ||
* A set of static members used for the site. | ||
* Similar to a utility class. | ||
* @constructor | ||
*/ | ||
function Docs() {} | ||
|
||
// METHODS | ||
|
||
// STATIC MEMBERS | ||
/** | ||
* The style guide site for this project. | ||
* @type {Page} | ||
*/ | ||
Docs.DOCS = new Page({ name: 'Xmeter Style Guide', url: '/docs/' }) | ||
.title('Xmeter Style Guide') | ||
.description('A demo of Xmeter styles.') | ||
.add(new Page({ name: 'Home', url: '/docs/index.html' }) | ||
.description('Xmeter Homepage') | ||
) | ||
.add(new Page({ name: 'Base Typography', url: '/docs/base.html' }) | ||
.description('Bare, unstyled HTML elements. No classes.') | ||
.add(new Page({ name: 'Grouping Elements', url: '/docs/base.html#grouping-elements' }) | ||
.add(new Page({ name: 'Headings & Paragraphs', url: '/docs/base.html#headings-paragraphs' })) | ||
.add(new Page({ name: 'Lists' , url: '/docs/base.html#lists' })) | ||
.add(new Page({ name: 'Tables' , url: '/docs/base.html#tables' })) | ||
) | ||
.add(new Page({ name: 'Text-Level Elements', url: '/docs/base.html#text-level-elements' }) | ||
.add(new Page({ name: 'Links' , url: '/docs/base.html#links' })) | ||
.add(new Page({ name: 'Stress' , url: '/docs/base.html#stress' })) | ||
.add(new Page({ name: 'Documentation', url: '/docs/base.html#documentation' })) | ||
.add(new Page({ name: 'Data' , url: '/docs/base.html#data' })) | ||
) | ||
.add(new Page({ name: 'Forms' , url: '/docs/base.html#forms' })) | ||
.add(new Page({ name: 'Embedded Elements' , url: '/docs/base.html#embedded-elements' })) | ||
.add(new Page({ name: 'Interactive Elements', url: '/docs/base.html#interactive-elements' })) | ||
) | ||
.add(new Page({ name: 'Objects', url: '/docs/obj.html' }) | ||
.description('Patterns of structure that can be reused many times for many different purposes.') | ||
.add(new Page({ name: 'The List Object' , url: '/docs/obj.html#list-object' })) | ||
.add(new Page({ name: 'The Flex Object' , url: '/docs/obj.html#flex-object' })) | ||
.add(new Page({ name: 'The Grid Object' , url: '/docs/obj.html#grid-object' })) | ||
) | ||
.add(new Page({ name: 'Helpers', url: '/docs/help.html' }) | ||
.description('Somewhat explicit classes used for enhancing default styles.') | ||
.add(new Page({ name: 'Block' , url: '/docs/help.html#block' })) | ||
.add(new Page({ name: 'Inline' , url: '/docs/help.html#inline' })) | ||
.add(new Page({ name: 'Clearfix' , url: '/docs/help.html#clearfix' })) | ||
.add(new Page({ name: 'Hidden' , url: '/docs/help.html#hidden' })) | ||
) | ||
.add(new Page({ name: 'Atoms', url: '/docs/atom.html' }) | ||
.description('Very specific classes used for creating anomalies or fixing broken styles.') | ||
.add(new Page({ name: 'margin-bottom' , url: '/docs/atom.html#margin-bottom' })) | ||
.add(new Page({ name: 'padding-top' , url: '/docs/atom.html#padding-top' })) | ||
.add(new Page({ name: 'font-size' , url: '/docs/atom.html#font-size' })) | ||
) | ||
|
||
return Docs | ||
})() |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Options and locals for compiling Pug pages. | ||
module.exports = { | ||
Xmeter: require('./Xmeter.class.js') | ||
Docs: require('./Docs.class.js') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
extends _docs.tpl.jade | ||
|
||
block append vars | ||
- var page = Xmeter.DOCS.find('atom.html') | ||
- var page = Docs.DOCS.find('/docs/atom.html') | ||
|
||
block append main | ||
+newSection(2, Xmeter.DOCS.find('atom.html#margin-bottom')) | ||
+newSection(2, Docs.DOCS.find('/docs/atom.html#margin-bottom')) | ||
include _includes/_atom.margin-bottom.jade | ||
+newSection(2, Xmeter.DOCS.find('atom.html#padding-top')) | ||
+newSection(2, Docs.DOCS.find('/docs/atom.html#padding-top')) | ||
include _includes/_atom.padding-top.jade | ||
+newSection(2, Xmeter.DOCS.find('atom.html#font-size')) | ||
+newSection(2, Docs.DOCS.find('/docs/atom.html#font-size')) | ||
include _includes/_atom.font-size.jade |
Oops, something went wrong.
d43d70e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
xmeter v5.5.0