patternlab-jekyll icon indicating copy to clipboard operation
patternlab-jekyll copied to clipboard

deploy from patternlab-jekyll?

Open alexgreen opened this issue 9 years ago • 2 comments

Is it possible to output a deployable static site from patternlab-jekyll? (Pardon me if this question seems obtuse, I'm pretty new to Pattern Lab and Jekyll.)

Also, it seems like the pattern library in patternlab-jekyll displays the atom, molecule, organism and template patternTypes but not the page patternType that I see in patternlab-php. Am I missing something? Seems like once there's output of the page patternType it might be a relatively small step from there to output a deployable static site...?

Thanks!

alexgreen avatar Jan 13 '16 09:01 alexgreen

Jekyll will place the static site it generates in the _site directory: http://jekyllrb.com/docs/structure/, which is .gitingored. I haven't tried deploying to anything except gh-pages, but there should be documentation out there on how to deploy Jekyll sites to other platforms.

You are correct that the page patternType is missing in this version. It just so happened I didn't get that far in development, due to time restraints and butting up against a wall in my Jekyll knowledge. I'd be happy to revisit and collaborate if there is interest in this project.

karissademi avatar Jan 13 '16 15:01 karissademi

Jekyll will place the static site it generates in the _site directory

That’s been my understanding, but the stylesheet reference in _site/index.html points to /patternlab-jekyll/css/patterns.css which is a path that doesn’t exist within _site, so the site doesn’t render properly. …probably there’s a fairly obvious way of fixing this, maybe in the config.

You are correct that the page patternType is missing in this version. … I'd be happy to revisit and collaborate if there is interest in this project.

Sadly my time and knowledge are pretty limited, but I’ll see if it can fit into the scope of my current prototyping project. Having an app that can output a deployable static site while also auto-generating updated atomic pattern libraries would be amazing!

Brian Muenzenmeyer has a similar project using PatternLab, Node and Jekyll. But I have no clue about Node, so your project seems more approachable to me. http://www.brianmuenzenmeyer.com/using-patternlab-to-design-build-and-maintain-a-website/ http://www.brianmuenzenmeyer.com/using-patternlab-to-design-build-and-maintain-a-website/ https://github.com/pattern-lab/patternlab-node https://github.com/pattern-lab/patternlab-node

alexgreen avatar Jan 14 '16 01:01 alexgreen