Replies: 2 comments
-
I'm not sure how Debian is building Furo? The referenced
That won't work in any case, on any browser -- documentation built with Furo won't contain a
OK, in that case that's a fundamental issue in how Debian has repackaged this project? You're trying to ship an uncompiled artifact and hoping that it'd work in a browser as-is, which it won't, and you're breaking assumptions about how this package is built. While I'm not going to volunteer to fix the Debian packaging of the project, I'm happy to take a look and point out what could be improved/changed on their end to make things work (I don't really know where to find the |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply ! I understand, indeed it is not meant to be used like that (but it turned out to almost work "by accident"). The package is here: https://salsa.debian.org/debian/furo But the issue is mainly missing nodejs dependencies:
Many packages are just a bit older than the required version, but I guess updating them all and adding missing ones is probably a lot of work for just an offline documentation on Debian side (that happen to already mostly work). I'm myself packaging a package for Debian that use Furo theme for its documentation (streamlink) and tried to see if it would be possible to get Furo to its full potential without too much effort, but I'm still sufficiently happy with the current state given the required work to improve it in Debian side. Thus I'm closing this, but I'm open for discussion :) |
Beta Was this translation helpful? Give feedback.
-
When https://github.com/pradyunsg/furo/blob/main/src/furo/assets/scripts/furo.js is imported using a line like this in an HTML file:
<script type="module" src="_static/scripts/furo.js"></script>
Then Firefox will throw an error on furo.js:
Uncaught SyntaxError: ambiguous indirect export: default
This can be fixed by changing this line
furo/src/furo/assets/scripts/furo.js
Line 1 in aab86f4
to this:
import * as Gumshoe from "./gumshoe-patched.js";
I don't know enough about javascript to tell the difference between them.
I guess
import Gumshoe from "./gumshoe-patched.js";
doesn't work with Firefox as it doesn't find anyexport default
in gumshoe-patched.js, but I'm not sure about that.So I'm asking as a feature request to change the import, if that's acceptable for you :)
The use case of this is that in Debian, as of now, furo.js is kept unmodified because not all package.json dependencies are available in Debian to transform furo.js. So packages that use Furo will get an unmodified furo.js file.
See also: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1036437
Beta Was this translation helpful? Give feedback.
All reactions