mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-12-19 08:08:17 +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",
|
"grunt-shell": "~0.3.1",
|
||||||
"handlebars": "^3.0.2",
|
"handlebars": "^3.0.2",
|
||||||
"harmony-collections": "~0.3.8",
|
"harmony-collections": "~0.3.8",
|
||||||
"highlight.js": "^8.5.0",
|
"highlight.js": "^8.8.0",
|
||||||
"json-front-matter": "^1.0.0",
|
"json-front-matter": "^1.0.0",
|
||||||
"legal-eagle": "~0.9.0",
|
"legal-eagle": "~0.9.0",
|
||||||
"meta-marked": "^0.3.3",
|
"meta-marked": "^0.3.3",
|
||||||
|
|
|
||||||
|
|
@ -133,15 +133,8 @@ module.exports = (grunt) ->
|
||||||
|
|
||||||
sidebar.sections.push
|
sidebar.sections.push
|
||||||
name: 'Sample Code'
|
name: 'Sample Code'
|
||||||
items: [{
|
link: 'https://nylas.github.io/N1/examples'
|
||||||
name: 'Composer Translation'
|
|
||||||
link: 'https://github.com/nylas/edgehill-plugins/tree/master/translate'
|
|
||||||
external: true
|
external: true
|
||||||
},{
|
|
||||||
name: 'Github Sidebar'
|
|
||||||
link: 'https://github.com/nylas/edgehill-plugins/tree/master/sidebar-github-profile'
|
|
||||||
external: true
|
|
||||||
}]
|
|
||||||
|
|
||||||
referenceSections = {}
|
referenceSections = {}
|
||||||
for klass in classes
|
for klass in classes
|
||||||
|
|
|
||||||
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…
Add table
Reference in a new issue