mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-10 17:48:50 +08:00
fix(docs): Push examples to the correct /examples URL
This commit is contained in:
parent
45fcab0151
commit
c3a3886b5b
4 changed files with 4 additions and 25 deletions
|
@ -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",
|
||||
|
|
|
@ -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')
|
||||
|
|
4
docs/templates/_sidebar.html
vendored
4
docs/templates/_sidebar.html
vendored
|
@ -1,4 +0,0 @@
|
|||
aside
|
||||
{{#each sidebar.sections}}
|
||||
{{>_sidebarSection}}
|
||||
{{/each}}
|
10
docs/templates/_sidebarSection.html
vendored
10
docs/templates/_sidebarSection.html
vendored
|
@ -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>
|
Loading…
Reference in a new issue