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

Separate knitting from posting? #2

Open
maelle opened this issue Jun 17, 2020 · 4 comments
Open

Separate knitting from posting? #2

maelle opened this issue Jun 17, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@maelle
Copy link

maelle commented Jun 17, 2020

Unsollicited opinion 😉 In hugodown the idea is that you knit and preview each post and then Hugo builds the site.

I am thinking of adopting a similar workflow for my not yet public Wordpress prototype.

Would it make sense for dev.to.ol to only render if the md is older than the Rmd maybe?

@DaveParr
Copy link
Owner

That's interesting. I hadn't really considered the workflow integration aspect at all.

So it sounds a little like this proposal would roughly equate to converting post_new_article into effectively 2 steps each with their own function?

One knit function and one post function? I'm not sure I'm understanding right. Could you point me towards where I can learn more about this concept? :)

@maelle
Copy link
Author

maelle commented Jun 17, 2020

For knitting I was imagining letting people use their usual workflow (like RStudio knit button), assuming the YAML has the correct output format.

The post function could still knit again if needed (a parameter maybe?)

These are all only suggestions!

hugodown https://github.com/r-lib/hugodown

My WIP (little progress) Wordpress repo https://github.com/maelle/goodpress

@DaveParr
Copy link
Owner

Something I have also been debating from a workflow perspective is updating an existing, published post. I think this should be possible through the dev.to API. A workflow like this might help there too, as the function should probably be able to check if the supplied article is newer/different than the old one.

@maelle
Copy link
Author

maelle commented Jun 18, 2020

In my Wordpress package what I plan to do is creating a text file in the post folder after the first upload, where I write the post ID. This way if the text file exists I can update the post instead of creating a new one.

@DaveParr DaveParr added the enhancement New feature or request label Oct 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants