picocms / Pico

Pico is a stupidly simple, blazing fast, flat file CMS.
http://picocms.org/
MIT License
3.83k stars 614 forks source link

Export everything to static html #539

Closed ArsNeurochirurgica closed 4 years ago

ArsNeurochirurgica commented 4 years ago

Hi together,

I came across PicoCMS and I am converting my Worpdress site to PicoCMS right now. It looks really great and I am a big fan of its simplicity! However is there a way in the current release or in one of the upcoming releases to export everything as a static html site? Right now I don't need the search function and it seems the only reason not to export everything to a static html site would be the need of a search function.

Thank you very much in advance and great job on this project!

KoljaL commented 4 years ago

this workes for me: https://github.com/glumb/pico_cache and many more: https://github.com/picocms/Pico/wiki/Pico-Plugins

PhrozenByte commented 4 years ago

Pico is no static website generator, so there's currently no built-in feature to export the contents of a Pico website to static HTML pages. However, exporting ("crawling") a website is no big deal in general. You could use e.g. wget -r to create a local static copy of your website. Try something like the following:

wget -r -l inf -N -k "http://localhost/pico/"

Refer to the manpage of wget to learn about the used and all other available options.

ArsNeurochirurgica commented 4 years ago

Thank you very much for your quick help guys, these are great approaches !

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1:

Croydon commented 4 years ago

Would it be a reasonable feature request to add an export to a static site as a default feature?

Edit: Seems like it is already on the roadmap -> #317. Awesome 😄 👍

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two days if no further activity occurs. Thank you for your contributions! :+1: