netlify / ask-netlify

A place to submit questions for Netlify to answer in tutorials, podcasts and blog posts
https://ask.netlify.com
32 stars 8 forks source link

relationship with staticgen #42

Open ghost opened 5 years ago

ghost commented 5 years ago

several questions:

  1. here https://netlify.com it says "Add your build settings". Does that mean I can juse pick any tool from https://staticgen.com and and use that as my command? for example jekyll build?

  2. if all programs on https://staticgen.com are not supported "out of the box" as described above, which ones are, if any?

  3. i see here https://github.com/netlify/build-image#tools that Hugo is listed, does that mean that Hugo is the only generator supported out of the box? if so why are Clojure, PHP, etc installed? If not why is Hugo the only generator installed? Since the other languages are installed does that mean that any generator in those languages is allowed? If so how does that work?

j-f1 commented 5 years ago

Does tat mean I can just pick any tool … and use that as my command?

Yep!

Is any generator allowed?

Yep! You just have to install it, which should occur automatically based on the files you have (i.e. package.json causes npm/Yarn to be used, Gemfile triggers Bundler, etc.).

ghost commented 5 years ago

@j-f1 I dont have those files, as im currently just using GitHub Pages

however i am looking to switch from Markdown to Asciidoc

while I could still use GitHub Pages for this, its kind of a clunky process:

https://gohugo.io/hosting-and-deployment/hosting-on-github#github-project-pages

so i was curious if netlify could streamline it for me

j-f1 commented 5 years ago

Here’s a guide from GitHub with instructions for setting up a Gemfile: https://help.github.com/en/articles/setting-up-your-github-pages-site-locally-with-jekyll#step-2-install-jekyll-using-bundler

ghost commented 5 years ago

i think i have answered my own questions.

only the tools marked "Deploy to Netlify" are currently supported. however even if your tool of choice is not marked, it could still work. For example "Nanoc" uses Ruby, which is part of the included software:

https://github.com/netlify/build-image#included-software

so you would need to create a Gemfile like this:

gem 'nanoc'

https://netlify.com/docs/build-gotchas#command-not-found

Regarding Hugo, it is installed along Ruby, Python etc because it is an executable, not a script. It does appear that Hugo is currently the only Go generator supported.