PreTeXtBook / pretext-codespace

A template for creating a PreTeXt project that runs in GitHub Codespaces
MIT License
10 stars 10 forks source link

Remove deprecated children of <website> #15

Closed siwelwerd closed 1 year ago

siwelwerd commented 1 year ago

Creating a new pretext project off of this template results in a warning out of the box:

* PTX:DEPRECATE: (2023-08-08) a "website" element with "address" and "name" children has changed.  Continue to use the "website" element as before, but replace the "address" and "name" children with a single "url" element, which is more flexible and reliable.  We will try to honor your intent, but you may prefer your own adjustments. (1 time)
    *              located within: "frontmatter" (xml:id)
    * -------------- 

This removes the deprecated <address> and <name> from the template and replaces them with <url> as suggested.

oscarlevin commented 1 year ago

Thanks for pointing this out. I guess this is a recent change (and needs to be updated in the Schema of pretext).

I'll merge this request here, but a long-term fix requires an update to the CLI, since this repository is updated with a pretext new every time the CLI has a new release.