fix(docs): Push examples to the correct /examples URL

This commit is contained in:
Ben Gotow 2015-10-02 16:09:44 -07:00
parent 45fcab0151
commit c3a3886b5b
4 changed files with 4 additions and 25 deletions

View file

@ -30,7 +30,7 @@
"grunt-shell": "~0.3.1",
"handlebars": "^3.0.2",
"harmony-collections": "~0.3.8",
"highlight.js": "^8.5.0",
"highlight.js": "^8.8.0",
"json-front-matter": "^1.0.0",
"legal-eagle": "~0.9.0",
"meta-marked": "^0.3.3",

View file

@ -133,15 +133,8 @@ module.exports = (grunt) ->
sidebar.sections.push
name: 'Sample Code'
items: [{
name: 'Composer Translation'
link: 'https://github.com/nylas/edgehill-plugins/tree/master/translate'
external: true
},{
name: 'Github Sidebar'
link: 'https://github.com/nylas/edgehill-plugins/tree/master/sidebar-github-profile'
external: true
}]
link: 'https://nylas.github.io/N1/examples'
external: true
referenceSections = {}
for klass in classes
@ -223,7 +216,7 @@ module.exports = (grunt) ->
# Render sidebar json
grunt.file.write(outputPathFor('sidebar.json'), JSON.stringify(sidebar, null, 2))
# Render Class Pages
classTemplatePath = path.join(templatesPath, 'class.html')

View file

@ -1,4 +0,0 @@
aside
{{#each sidebar.sections}}
{{>_sidebarSection}}
{{/each}}

View file

@ -1,10 +0,0 @@
<div class="heading">{{name}}</div>
<ul>
{{#each items}}
{{#if items}}
{{> _sidebarSection}}
{{else}}
<li><a href="{{link}}" {{#if external}}target="_blank"{{/if}}>{{name}}</a></li>
{{/if}}
{{/each}}
</ul>