Fix: bad uri for static files

This commit is contained in:
Kujiu 2024-07-29 03:10:35 +02:00
parent 7fa7573977
commit 7565a38385
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F
3 changed files with 7 additions and 2 deletions

View file

@ -2,6 +2,11 @@
Changes Changes
======= =======
2.0.2 (*2024-07-29*)
====================
- Fix static uri
2.0.1 (*2023-08-11*) 2.0.1 (*2023-08-11*)
==================== ====================

View file

@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"
[project] [project]
name = "sphinx_fasvg" name = "sphinx_fasvg"
version = "2.0.1" version = "2.0.2"
requires-python = ">=3.8" requires-python = ">=3.8"
dependencies = [ dependencies = [
"Sphinx>=7.0.0" "Sphinx>=7.0.0"

View file

@ -44,7 +44,7 @@ def append_fa_image(self: HTMLTranslator, node: fa or falink) -> None:
path = relative_uri( path = relative_uri(
self.builder.current_docname, self.builder.current_docname,
self.builder.get_asset_paths()[0] + '/' + path self.builder.outdir + '/_static/' + path
) )
label_uid = uuid.uuid4() label_uid = uuid.uuid4()