diff options
| author | Yoshiki Shibukawa <yoshiki@shibu.jp> | 2014-01-22 02:12:04 -0800 |
|---|---|---|
| committer | Yoshiki Shibukawa <yoshiki@shibu.jp> | 2014-01-22 02:12:04 -0800 |
| commit | d8c8fa8240b0d4dd67702a5da388055d4429c393 (patch) | |
| tree | e202a140420722fcd215a2a248673a3dbcc21b77 /doc | |
| parent | 49238644401fa2728f171f5fa29c18f9150b96d5 (diff) | |
| download | sphinx-d8c8fa8240b0d4dd67702a5da388055d4429c393.tar.gz | |
Add development memo about stemming JS code, acceleration tips about stemming, small bug fix
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/config.rst | 9 | ||||
| -rw-r--r-- | doc/devguide.rst | 12 |
2 files changed, 21 insertions, 0 deletions
diff --git a/doc/config.rst b/doc/config.rst index 260ccddd..2fd1cf66 100644 --- a/doc/config.rst +++ b/doc/config.rst @@ -747,6 +747,15 @@ that use Sphinx' HTMLWriter class. * ``sv`` -- Swedish * ``tr`` -- Turkish + .. admonition:: Accelerate build speed + + Each language (except Japanese) provides its own stemming algorithm. + Sphinx uses Python implementation by default. You can use + C implementation to accelerate building the index file. + + * `PorterStemmer <https://pypi.python.org/pypi/PorterStemmer>`_ (`en`) + * `PyStemmer <https://pypi.python.org/pypi/PyStemmer>`_ (all languages) + .. versionadded:: 1.1 .. versionchanged:: 1.3 diff --git a/doc/devguide.rst b/doc/devguide.rst index fccdd3fa..666822d6 100644 --- a/doc/devguide.rst +++ b/doc/devguide.rst @@ -243,3 +243,15 @@ Debugging Tips * Set the debugging options in the `Docutils configuration file <http://docutils.sourceforge.net/docs/user/config.html>`_. + +* JavaScript stemming algorithms in `sphinx/search/*.py` (except `en.py`) are + genereted by + `modified snowballcode generator <https://github.com/shibukawa/snowball>`_. + Generated `JSX <http://jsx.github.io/>`_ files are + in `this repository <https://github.com/shibukawa/snowball-stemmer.jsx>`_. + You can get resulting JavaScript files by the following command: + + .. code-block:: bash + + $ npm install + $ node_modules/.bin/grunt build # -> dest/*.global.js |
