doc/doxygen: remove support for lesscpy#11037
Conversation
lessc (node-less) and lesscpy do not produce the same output. There are some minor whitespace +-1 in color values which are not important but the output file is not stable However lesscpy removes comments and so the license of the output file As it produces an invalid file it support is dropped. https://lesscpy.readthedocs.io/en/latest/#differences-from-less-js
Add package name in ubuntu for lessc.
|
@miri64 as you added the |
|
If lesscpy is the one removing the license header and lesscpy is the one removed here I don't really understand that comment... However, I don't really care about that header in the generated result, as long as it stays in in the upstream repo. |
Sorry for not being precise, I was asking about having the alternative solution and use If the tool is generating a file without header, it would mean keeping the file without header in the repository as the generated file is tracked. Otherwise you end up in a state where you cannot generate it anymore. The generated file is here https://github.com/RIOT-OS/RIOT/blob/master/doc/doxygen/src/css/riot.css and the source file has RIOT/doc/doxygen/src/css/riot.less Lines 1 to 6 in 1335bf6 |
|
Since the generated file is the one exposed on the website, I'd prefer to keep in the copyright header. |
Ok that what I was thinking, but prefered to ask. I strike the alternative then. |
jcarrano
left a comment
There was a problem hiding this comment.
As a note, "less" (and not "lesscpy") is what is installed in riotdocker (and therefore in Travis.)
|
None of I re-updated the image just to be sure: |
Yes... |
Contribution description
lessc (node-less) and lesscpy do not produce the same output.
There are some minor whitespace +-1 in color values which
are not important but the output file is not stable
However lesscpy removes comments and so the license of the output file
As it produces an invalid file it support is dropped.
https://lesscpy.readthedocs.io/en/latest/#differences-from-less-js
Apparently when it was added by #7607 the output was not checked.
Alternative solution
Decide we do not care about the license header inriot.cssand only uselesscpyinstead ofnode-less.Not a valid alternative #11037 (comment)
Testing procedure
I used this diff to show the command being executed:
With
node-lessinstalled and touchingriot.lessthe file is rebuilt:See the
/usr/bin/lessc src/css/riot.less src/css/riot.cssline:If
LESSCis empty it is not:And if
node-lessis not installed it is not rebuildIssues/PRs references
The file was always being modified and said different from the version of the repository when doing
make docwith onlylesscpyinstalled.I mentioned the issue with the comments being removed in #10249 (comment)