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

Move build to own host #26

Open
Bartvds opened this issue Jul 30, 2014 · 12 comments
Open

Move build to own host #26

Bartvds opened this issue Jul 30, 2014 · 12 comments

Comments

@Bartvds
Copy link
Collaborator

Bartvds commented Jul 30, 2014

I was experimenting with this on a OpenShift server so we can hang it on a couple of webhook and rebuild static html for the definition index.

@Bartvds
Copy link
Collaborator Author

Bartvds commented Jul 30, 2014

@sebastian-lenz I was running the docpad build on OpenShift, the original works, but the Sass stuff in your fork is problematic. Ruby & the Sass dependency wont install properly because we don't have sudo. The alternative plugin that doesn't use Ruby won't build on Windows.

Do we particularly need Sass? Could we change it to Less? The Less compile is just plain node so works a bit smoother on all systems (our own but also potential contributors).

@sebastian-lenz
Copy link
Member

Yes, I also had problems with the sass plugin; not related to yours, but I'm also not happy with the current setup. I'm not used to work with less, tried it years before but decided to stick with scss/sass as it felt more mature and powerfull.

After your concerns I tried to convert the sass files to less but I it did not work right out of the box. I could try to undertake a second, more detailed tryout to switch to less. Or like the javascript part, we could use vanilla css.

I know that you will not a big fan of this idea, but we could also put the theme into a separated project/repository which could use all the tools we would like to use for the assets and the final docpad setup could only consume the compiled assets.

@basarat
Copy link
Member

basarat commented Jul 30, 2014

After your concerns I tried to convert the sass files to less but I it did not work right out of the box. I could try to undertake a second, more detailed tryout to switch to less.

Before you do that worth mentioning that there is pure node sass compiler (https://github.com/sass/node-sass with grunt https://www.npmjs.org/package/grunt-sass)

Also if you are tired of sass (I don't like ruby either) and less (lacks fundamental imperative constructs) I'd give stylus a go : http://learnboost.github.io/stylus/ It has much more feature parity with sass.

@Bartvds
Copy link
Collaborator Author

Bartvds commented Jul 30, 2014

I think being able to compile and contribute easily is important, so single repo for static site content if possible. And Less (or Stylus) would be simplest as users won't need Ruby or node-gyp.

@johnnyreilly
Copy link
Member

I say LESS as it's simple - not as powerful but probably good enough for our use cases?

@basarat
Copy link
Member

basarat commented Jul 31, 2014

more people do know LESS (since it came out first) http://www.google.com/trends/explore#q=less%20css%2C%20sass%20css%2C%20stylus%20css&cmpt=q

And I agree that its simple. Also easier to get a job if you know less.

@sebastian-lenz
Copy link
Member

@basarat That's a cool graph! Got to save this one.
Okay, let me get the less docs, I want to get a job 😉

@sebastian-lenz
Copy link
Member

Gosh, docpad-plugin-less is using an old version of less. I've updated my fork to use less files now.

@Bartvds
Copy link
Collaborator Author

Bartvds commented Jul 31, 2014

Nah, but it's only a minor version and some patches behind.

Anyway, your fork builds successfully when I try it on OpenShift's scrappy linux. So we now at least have the option of generating static html for the defs.

@basarat
Copy link
Member

basarat commented Aug 15, 2014

I am not sure if it is relevant but thought I'd share something about sass being automatically compiled : https://github.com/blog/1867-github-pages-now-runs-jekyll-2-2-0 (http://jekyllrb.com/)

@Bartvds
Copy link
Collaborator Author

Bartvds commented Aug 15, 2014

@basarat I think that's only valid for Jekyll (= Ruby) sites, while we use Docpad (= Node).

The thing about Sass was that is has dependencies (native or Ruby) so it is less portable (important when running of different kind of machines, like Travis, OpenShift and all the different user OS's).

@basarat
Copy link
Member

basarat commented Aug 16, 2014

that was dumb of me. sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants