tooling / book-of-modern-frontend-tooling

The Front-end Tooling Book
http://tooling.github.io/book-of-modern-frontend-tooling/
2.53k stars 177 forks source link

Clean-up site setup #48

Open addyosmani opened 10 years ago

addyosmani commented 10 years ago

At the moment, going to http://tooling.github.io/book-of-modern-frontend-tooling/introduction.html gives you the current version of the book based on the gh-pages branch. Links to most of the chapters result in a 404, even if the content exists. I believe this is because of the way the TOC is currently generated.

I wonder if it's worth taking another look at how the TOC is handled and only list the sections that have content written up for them. Perhaps graying out the items that don't have any content yet. Does that sound like a feasible/sensible way of displaying the navigation?

cc @rowoot @sindresorhus

sindresorhus commented 10 years ago

Instead of graying out, I think we should just not make them linkable.

Example:

michealbenedict commented 10 years ago

For now, I have made a quick change to gray out unwritten content, check PR #49

I'll explore better ways of automating toc generation next weekend.

addyosmani commented 10 years ago

Thanks again @rowoot!

I spent the morning playing around with re-theming the current setup and trying to make it more mobile friendly. Some pain points I ran into:

I would love to make it super easy for anyone on the team to checkout the site, run an npm install and just be able to preview/deploy what we have in just a few minutes. Any thoughts?

addyosmani commented 10 years ago

cc @zenorocha who updated our webcomponents.org setup to use DocPad. Zeno, do you have a rough idea of how long that took to get setup? :)

addyosmani commented 10 years ago

I should add, none of this is urgent. Just a nice to have :) I appreciate hugely everything @rowoot and c/o have done with the current setup so far. We can definitely continue using it for some time.

zenorocha commented 10 years ago

DocPad, Jekyll, Middleman... all these static generators are really really easy to setup. You could do it in few hours.

michealbenedict commented 10 years ago

Those pain points seem valid. If you think existing static site generators will solve aforementioned pain, I don't have any qualms building on top of it. My only constraint is that the end result should feel like a book with the ability to export to different formats.

sindresorhus commented 10 years ago

So, should we decide on one?

zenorocha commented 10 years ago

I think I found the best solution: Gitbook.

It's incredibly easy to setup and publish with the ability to export to different formats (PDF, eBook, ...) They also have an editor made with node webkit.

Check:

zenorocha commented 10 years ago

The only drawback that I found is not having multiple levels of chapters (only 2 are allowed).

michealbenedict commented 10 years ago

@zenorocha gitbook seems interesting. I am curious, does it provide a way to pull in details of the markdown author so as to provide credits for them? It also doesn't seem to mobile friendly.

zenorocha commented 10 years ago

Seems to be pretty responsive for me:

mobile

zenorocha commented 10 years ago

What do you mean by pull in details of the markdown author? Do you want to provide credits below a page or something? That could be easily achieved by adding all the information you want in the markdown file itself.

michealbenedict commented 10 years ago

Whoops, will take back my mobile friendly comment -> it looks good on the phone.

What do you mean by pull in details of the markdown author? Do you want to provide credits below a page or something? That could be easily achieved by adding all the information you want in the markdown file itself.

Should have been more clear about this, I was referring to something similar to frontmatter-yml in Jekyll and other static site generators that lets you add extra metadata on the *md and display it as and when required in the template.

Nonetheless, I am currently going through the gitbook project to evaluate it further, it surely seems to fit our bill at first glance.

zenorocha commented 10 years ago

Got it!

I'm afraid they don't have that kind of thing, we'll probably need to add those stuff manually. It's just several markdown files, no layouts or document attributes.

addyosmani commented 9 years ago

@rowoot I've been recently considering if we should reboot this project using GitBook too. Did you manage to get anywhere with your research? (I understand if not as this was way earlier last year).

michealbenedict commented 9 years ago

Hi Addy, i haven't made progress there. I am currently on vacation and will be back on the 8th, Let me follow up with you then.

Happy holidays to everyone :)

On Sunday, January 4, 2015, Addy Osmani notifications@github.com wrote:

@rowoot https://github.com/rowoot I've been recently considering if we should reboot this project using GitBook too. Did you manage to get anywhere with your research? (I understand if not as this was way earlier last year).

Reply to this email directly or view it on GitHub https://github.com/tooling/book-of-modern-frontend-tooling/issues/48#issuecomment-68615982 .

Regards, Micheal Benedict Arul Software Engineer, Twitter