-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.css
and only uselesscpy
instead ofnode-less
.Not a valid alternative #11037 (comment)
Testing procedure
I used this diff to show the command being executed:
With
node-less
installed and touchingriot.less
the file is rebuilt:See the
/usr/bin/lessc src/css/riot.less src/css/riot.css
line:If
LESSC
is empty it is not:And if
node-less
is 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 doc
with onlylesscpy
installed.I mentioned the issue with the comments being removed in #10249 (comment)