Search code examples
documentation-generationeleventyssg

Eleventy: Deploying static site into local file system


I have created a static site for my project documentation using Eleventy and want to deploy into local file system. I tried with many method but no luck. Actually I want to upload the static site/pages into source repository and whoever downloads should be able to use/browse the documentation. Is there any way to achieve it?


Solution

  • So running eleventy by itself will output, by default, your code to the _site folder. If you have a site using Eleventy already, then you're done. Just run the command and your output is there.

    It sounds like you also want to deploy that site such that people can use it. That's a whole other topic. There are multiple places where you can deploy a Jamstack site using Eleventy: Netlify, Vercel, Amazon S3, etc. If you want to have a commit to a source repository deploy your site, I'd look at Netlify. They can connect to your repo and on updates, run the Eleventy command on your site and deploy the results.