Hi,
I would like to create a blog mainly for the purpose to demo small data explorations with WL. I would like to use my personal website for the purpose (not cloud notebooks which are of course a simple solutions). Does anybody know what is needed to achieve something to https://blog.wolfram.com with posts generated from WL notebooks.
Currently I use generated pdf’s in wordpress, but it’s not all that useful for readers who would want to try code.
Unfortunately, it’s not particularly easy to set up or use at the moment. WordPress 5 brought with it a regrettable change, the Gutenberg editor, which is incompatible with this approach because it doesn’t let you store custom HTML. It will always try to change the HTML for you, even if you don’t want it to. I solved this by installing a plugin which disabled the new editor and reverted to the one in WordPress 4, but even here there is the caveat that you must never use the WYSIWYG editor because if you do it will mess with the HTML.
To sum it up, I have written a solution that works well for me but it is not yet easy for others to use so you have to be prepared for some trouble if you decide to use it. So far, I know of one other person who has successfully installed it.
I wrote some blogging tools way back in Mathematica V 5 which I used for a while. But I haven’t revisited the process since then. It’s in a set of tools that I wrote for myself (and still use for the general organization of my work in Mathematica). I think a lot can be done to create a new approach if one wanted to–but getting things right is subtle to reproduce all that one can do in a notebook, so taking an approach (if one forgoes the HTMLSave route) where some rules are set that restrict what one can put into a notebook that will be exported is the best starting point, rather than trying to get all the bells and whistles working. Paul-Jean Letourneau’s tools are a good start. Internally it seems that Wolfram Research apparently uses a complex workflow (perhaps a WRI employee can comment) to create their blog postings.
But here is what I did about 10 years ago:
The set of tools (I give it away for free these days if anyone’s interested… no support though anymore):
If I were to do this again I’d certainly take the route to implement it (at least as an option) some form of Markdown along with things like TeX/MathJax, etc…
P.S. All this stuff in this set of tools still works 10 years later with only minimal updates to the code. An amazing testament to the backward compatibility of the Wolfram Language, given that the codebase for this is about 50,000 lines… !
Hi Vitaly,
all very convincing reasons and I will certainly also use the Wolfram community and cloud in the future for a wide and highly competent audience. Thanks for the good links.
A BIG caveat that just has to be mentioned is that all content on this site goes under the ShareAlike license. The moment you post something here, you no longer own it.