On 31/05/2023 16:43, georgesk wrote:
Dear Alexis,

I packaged furo for debian in order to be able to keep maintaining the
package sympy, which depends on it.

However sympy's documentation is rather big. Creating a minimal sphinx
tree with sphinx-quickstart is not enough to trigger the bug which you
are reporting.

Please can you share a minimal example which would trigger this bug, so
I can include it in furo package's test scripts, and prevent future
regressions after this bug's fix?

Thank you in advance.                   Georges.



Hi,

You can reproduce it by:
- Installing python3-sympy-doc package
- Open firefox and browse to 
file:///usr/share/doc/python-sympy-doc/html/index.html
- Check the Firefox' console, it will show "Uncaught SyntaxError: import 
declarations may only appear at top level of a module"
  for furo.js
- furo.js contains "import Gumshoe from "./gumshoe-patched.js";" line which 
means it was not minified (which is what upstream does).

The impact is just that dark/light theme and search bar won't work.

I've checked if this would be possible to do the minification, but that seems 
to require many node packages and not all of them
are available or up to date in Debian.

So maybe that's too much work to just get dark/light theme and search bar... 
(most of the theme, mostly css, is still working fine anyway)

--
Alexis Murzeau
PGP: B7E6 0EBB 9293 7B06 BDBC  2787 E7BD 1904 F480 937F                |

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to