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

Export everything to static html #539

Closed
ArsNeurochirurgica opened this issue Apr 19, 2020 · 6 comments
Closed

Export everything to static html #539

ArsNeurochirurgica opened this issue Apr 19, 2020 · 6 comments

Comments

@ArsNeurochirurgica
Copy link

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
Copy link

KoljaL commented Apr 19, 2020

@PhrozenByte
Copy link
Collaborator

PhrozenByte commented Apr 19, 2020

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
Copy link
Author

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

@stale
Copy link

stale bot commented Apr 26, 2020

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! 👍

@stale stale bot added the info: Stale label Apr 26, 2020
@Croydon
Copy link

Croydon commented Apr 27, 2020

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 stale bot removed the info: Stale label Apr 27, 2020
@stale
Copy link

stale bot commented May 6, 2020

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! 👍

@stale stale bot added the info: Stale label May 6, 2020
@stale stale bot closed this as completed May 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants