Hello,
Thank you for working to free some JS!

What you are trying to do is almost exactly what is expected. As you can
read in the GNU JavaScript License Web Labels guide [0], each row in your
web labels table must contain three elements:

1. The name of the JS file as an HTML anchor tag to where the script is
loaded from on your site
2. An HTML anchor tag that specifies the licensing information of this
particular JS script
3. The third cell provides a link to the JavaScript's source code. This
source code file can be a single, unminified JavaScript file, a .tar.gz
archive, or a .zip archive

So, in your example, the first and second `td` elements look correct. In
the third `td` element, you should link to the ZIP archive that is
available on Github instead. One thing to note is that if the ZIP archive
(or .tar.gz archive) contain multiple JS files, then the archive *must*
also include a file named `00-Index` which specifies the order in which the
JS files must be concatenated in order to recreate the exact ordering in
the script that your page uses.

This all means that your HTML snippet should instead be something like:

<tr>
    <td><a href="/js/semantic-2.2.1.min.js">semantic-2.2.1.min.js</a></td>
    <td><a href="http://www.freebsd.org/copyright/freebsd-license.html
">Expat</a></td>
    <td><a href="https://github.com/Semantic-Org/Semantic-UI/tree/2.2.1.zip
">Semantic-UI-2.2.1.zip</a></td>
</tr>

I hope that this clears up any confusion that you had, and if not, please
feel free to reach back out and we can get this all sorted out.

Good luck and happy hacking!
-zach

[0] https://www.gnu.org/licenses/javascript-labels.html

On Sun, Feb 5, 2017 at 7:34 PM, Jorge <[email protected]> wrote:
>
> I'm trying to add LibreJS compatibility for Gogs (
https://github.com/gogits/gogs/issues/4084) using weblabels.
>
> But the project only ships the minified JavaScript code, so we don't have
the original source code. Would it be correct to reference the URL of the
Git repository of the source file? Maybe an example illustrates what I mean
better. The link to the URL points to the version tagged 2.2.1 with Git, so
that it corresponds with the version of the minified file.
>
>
> <tr>
>     <td><a href="/js/semantic-2.2.1.min.js">semantic-2.2.1.min.js</a></td>
>     <td><a href="http://www.freebsd.org/copyright/freebsd-license.html
">Expat</a></td>
>     <td><a href="/js/semantic-2.2.1.js">
https://github.com/Semantic-Org/Semantic-UI/tree/2.2.1</a></td>
>   </tr>

Reply via email to