Skip to content

Commit 93215f0

Browse files
authored
doc: Actualize information about generating snowball JS files (#10931)
1 parent b90bf8d commit 93215f0

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

doc/internals/contributing.rst

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,11 @@ Debugging tips
326326
* Set the debugging options in the `Docutils configuration file
327327
<https://docutils.sourceforge.io/docs/user/config.html>`_.
328328

329-
* JavaScript stemming algorithms in ``sphinx/search/*.py`` (except ``en.py``)
330-
are generated by this `modified snowballcode generator
331-
<https://github.com/shibukawa/snowball>`_. Generated `JSX
332-
<https://jsx.github.io/>`_ files are in `this repository
333-
<https://github.com/shibukawa/snowball-stemmer.jsx>`_. You can get the
334-
resulting JavaScript files using the following command::
335-
336-
npm install
337-
node_modules/.bin/grunt build # -> dest/*.global.js
329+
* JavaScript stemming algorithms in ``sphinx/search/non-minified-js/*.js``
330+
are generated using `snowball <https://github.com/snowballstem/snowball>`_
331+
by cloning the repository, executing ``make dist_libstemmer_js`` and then
332+
unpacking the tarball which is generated in ``dist`` directory.
333+
334+
Minified files in ``sphinx/search/minified-js/*.js`` are generated from
335+
non-minified ones using ``uglifyjs`` (installed via npm), with ``-m``
336+
option to enable mangling.

0 commit comments

Comments
 (0)