Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatten dirs #138

Merged
merged 5 commits into from
Apr 7, 2017
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var monthData = {};
var dayData = {};

notes.on('data', function (entry) {
entry.path = entry.path.replace(/^\/es[67]\//, '');
entry.path = entry.path.replace(/^(\/es[67])?\//, '');
if (entry.type === 'File' && /^\d\d\d\d\-\d\d\//.test(entry.path) && entry.body) {
var month = entry.path.split('/')[0];
var name = entry.path.split('/').slice(1).join('/');
Expand Down
4 changes: 2 additions & 2 deletions views/notes-listing.pug
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ block content
| These notes are the official TC39 meeting minutes taken by 
a(href='http://twitter.com/rwaldron') @rwldrn
| . They are copied from 
a(href='https://github.com/rwldrn/tc39-notes/') this
a(href='https://github.com/rwaldron/tc39-notes/')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you've accidentally removed the "this" here, so there's no actual text inside the hyperlink/anchor tag.

You should also probably update the username in lib/notes.js line 9 while you're at it.

| GitHub repository. It's hoped that they will offer a fairly readable, useful insight into how the committee works.
- var m = months.sort(function (a, b) { return a.month < b.month ? 1 : -1 })
for month in m
Expand All @@ -40,4 +40,4 @@ block content
for file in files
li.topic-title
a(href='/notes/' + month.month + '/' + file)
h4= file
h4= file