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

metanorma site dependencies #232

Open
opoudjis opened this issue Mar 16, 2021 · 3 comments
Open

metanorma site dependencies #232

opoudjis opened this issue Mar 16, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@opoudjis
Copy link
Contributor

It would be nice if metanorma site was a little more like Make, in (a) having a "clean" option, and (b) not building files that had already been built --- so that execution can resume after a site generation has been aborted, rather than restarting from the beginning.

@opoudjis opoudjis added the enhancement New feature or request label Mar 16, 2021
@ronaldtse
Copy link
Contributor

ronaldtse commented Mar 16, 2021

This falls into Rake functionality, which metanorma-cli can directly require. Basically we can create Rake File rules using the defined paths in metanorma.yml.

And yes, we did talk about this before.

@ronaldtse
Copy link
Contributor

The challenge is that stale documents can't be known. We can check the built file against "last modified time" of the source .adoc file, but if it uses includes, we can't detect the changes within those included files.

@ronaldtse
Copy link
Contributor

ronaldtse commented Jul 7, 2021

We can parse the document in Metanorma and retrieve the build dependency tree (which nodes contain all dependent file paths) to a particular end product (the XML file). If there are updates to the file paths (a file path has mtime later than the XML), then we re-generate the XML.

In fact, we can re-do the Metanorma site compilation flow (and collection build) to rely on Rake for dependency checking.

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

3 participants