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

Provide an exporter #2143

Closed
rixx opened this issue Apr 21, 2017 · 3 comments
Closed

Provide an exporter #2143

rixx opened this issue Apr 21, 2017 · 3 comments

Comments

@rixx
Copy link

@rixx rixx commented Apr 21, 2017

Alongside with an importer it would be nice to have an exporter that exports all published posts (or all posts) and their metadata. I recently wrote my own export script and it was kind of painful and hacky, especially things like constructing the post's date etc.

@ssteinerx

This comment has been minimized.

Copy link

@ssteinerx ssteinerx commented Apr 21, 2017

The input format's pretty simple and the desired output varies as much as the tools into which you might want to import the data.

I would think that importing would be best left to the tool into which you want to import the data, not something for Pelican to implement.

e.g. There's no "Export to Drupal" built into WordPress ;-).

@rixx

This comment has been minimized.

Copy link
Author

@rixx rixx commented Apr 21, 2017

No, but there could be an export to any easily processable format, eg some kind of JSON, that can be easily parsed. I didn't find the input format too comfortable to parse (sure, split on ':', then remember to re-join everything except the first part, etc), especially since I had to use pelican's slugify, which is also something an exporter could provide.

@justinmayer

This comment has been minimized.

Copy link
Member

@justinmayer justinmayer commented Jun 18, 2017

Even if an exporter were to be implemented, that would be best done in the form of a plugin as opposed to Pelican core. If someone wants to write and submit an exporter plugin, please do so in the Pelican Plugins repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.