ietf-tools / editor

A fully featured editor to write, review, refine and submit Internet-Drafts.
Other
7 stars 1 forks source link

Ability to extract sourcecode #27

Open ajeanmahoney opened 6 months ago

ajeanmahoney commented 6 months ago

The RPC extracts the following code components in order to validate them before publication: ABNF, YANG modules, MIBs, and XML. Other code components may be validated in the future.

The user should be able to extract code tagged with <sourcecode> and save it out as a separate file. If a filename is not provided by the the name attribute, then the XML's filename can be used (e.g., draftstring-NN or rfcNNNN) plus the sourcecode extension (e.g., rfcNNNN.abnf). Note that YANG modules usually have dates in their names (e.g., yangfile@YYYY-MM-DD.yang), but their filenames are usually provided in the sourcecode. If there multiple code components, then they can be named rfcNNNNa.abnf, rfcNNNNb.abnf, etc).

It should be possible to select just one sourcecode type (e.g., "Extract YANG module" in addition to "Extract all code components")

The ability to extract sourcecode is currently provided by the following scripts