Re: [pubrules] add rule to make sure all the resources under the same directory

Hi Jiaying,

Thank you! I think this is in line with our general principle on 
tooling[1].

Editors using spec-prod[2] may want to follow this issue as well: 
https://github.com/w3c/spec-prod/issues/32

~xfq

[1] https://github.com/w3c/w3process/pull/436/files
[2] Not this list, but the GitHub Action with the same name as this 
list: https://github.com/w3c/spec-prod

On 2021-03-16 12:20, Jiaying Liang wrote:
> Dear Editors,
> 
> As indicated in the pubrules rules[1], If the document is compound
> (i.e., if it consists of more than one file), all the files must be
> under a directory /TR/YYYY/WD-shortname-YYYYMMDD/.
> 
> Currently pubrules isn’t checking this, but will apply the rule on
> April 1st. Every resources that are not in the same directory as the
> spec is will trigger an error, and block publication. So please make
> sure the resources (images, stylesheets, scripts, svgs…) are in the
> right place.
> 
> E.g.
>     - spec doc: https://www.w3.org/TR/2021/WD-pubrules-20210401/
>     - image (pass):
> https://www.w3.org/TR/2021/WD-pubrules-20210401/images/sample.png
>     - image (pass):
> https://www.w3.org/TR/2021/WD-pubrules-20210401/sample.png
>     - image (error): https://w3c.github.io/pubrules/sample.png
> 
> Exceptions are resources under:    -
> https://www.w3.org/StyleSheets/TR/
>     - https://www.w3.org/scripts/TR/
> 
> [1]
> https://www.w3.org/pubrules/doc/rules/?profile=FPWD#compoundFilesLocation
> 
> --
> Jiaying Liang
> Web Developer, W3C/systeam
> +86-182-1069-8997

Received on Tuesday, 16 March 2021 14:50:26 UTC