Open siwelwerd opened 2 months ago
To list these, run xpath -e '//activity[not(task) and not(answer)]' source/*/*.ptx
to find activities with no tasks and no answer, and xpath -e '//task[not(answer)]' source/*/*.ptx
to find tasks that don't have an answer.
It'd be great to have a linter that runs in GitHub to check for these things, and have an X show up when they are forgotten. Perhaps if we had one, it'd be in scope for the EditAThon to make this enhancement for LA and Calc too?
I don't know what a linter is, but I can think of a few things that PreTeXt doesn't check for that I'd appreciate our action checking for. The other big one that comes to mind is @xml:id
s for certain things (e.g. images; see https://github.com/TeamBasedInquiryLearning/calculus/issues/78)
it'd be in scope for the EditAThon to make this enhancement for LA and Calc too?
Do you mean copy the action over to those books, or to create instructor versions for them which contain <answer>
s?
A linter is a tool that checks that certain preferences in a software product are satisfied. So theoretically we could add preferences that images have xml:id
s, that task
s have answer
s, etc.
Do you mean copy the action over to those books, or to create instructor versions for them which contain
s?
To create instructor versions with answer
s, so that our linter won't balk at the lack thereof.
We created the instructor version midway through writing, so we do not currently have
<answer>
s for all of the activities.