-
Notifications
You must be signed in to change notification settings - Fork 24
build system #67
Comments
Note: the current script is sensitive to network failures. It should really include a, say, 5 minute timer and then retry the request up to 2 more times if the time limit is reached. Otherwise go on to the next item. (Cf. http://php.net/manual/en/function.pcntl-alarm.php) |
For the build system, it would be quite useful if |
Aparently Deyan has made a build system, but it is not integrated with Drupal yet. |
Note, I added the script to the repository, as |
I don't think my build system will align with a Planetary rebuild utility - the arXMLiv build system has the single purpose of stress testing LaTeXML against arbitrary TeX corpora, from the perspective of improving LaTeXML. The workflow I always had in mind is:
Integrating my build system with Drupal is not possible for a variety of technical reasons, but also not ideal in theory. Loose-coupling is helpful to separate concerns. |
What we could potentially do is use the build system to know which documents have changed since the previous rebuild. Then we'd know which documents needed rebuilding "downstream". ... Indeed, if we ever do get an Git/SVN "frontend" for Planetary going (#68), then I think we could potentially pull changes from a similar VCS that the Build System could write to. But I don't think the build system should write directly to Planetary storage, at least not until much testing and stabilization has taken place. Anyway, I'm in favor of one form or another of loose coupling. |
A simpler related problem: can we rebuild articles without saving an explicit new version? Answer: yes, just update the XHTML in the drutexml_cache for the given "key". So, how about rewriting |
Since we are caching the XHTML generated from LaTeX in the forum postings, after making any big-scale improvements to LaTeXML enhancements (e.g. if we can deal with xypic), we may want to trigger a re-build of all XHTML from the LaTeX sources.
We also typically have to render all articles whenever we import from a legacy database.
In other words, we need something like the arXMLiv build system inside PlanetMath. It could be more lightweight though. Ideally it would be accessible through the admin dashboard for convenience.
For now, our "proto-build system" is the following Drush script:
To use: make it executable, and give it the name of the site you're working as an argument, like this:
The text was updated successfully, but these errors were encountered: