Skip to content

Commit 5794238

Browse files
committed
Copy haddock3-ui css and js file to here + copy them to run dir during analysis
1 parent f159698 commit 5794238

File tree

6 files changed

+5288
-3
lines changed

6 files changed

+5288
-3
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,4 @@ recursive-include varia *.lua
3636
recursive-include varia *.md
3737

3838
include src/haddock/bin/*
39+
include src/haddock/libs/assets/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def read_description(*names, **kwargs) -> str:
172172
url="https://github.com/haddocking/haddock3",
173173
packages=find_packages("src"),
174174
package_dir={"": "src"},
175-
package_data={"haddock": ["bin/*"]},
175+
package_data={"haddock": ["bin/*"], "haddock.libs.assets": ["*.css", "*.js"]},
176176
include_package_data=True,
177177
zip_safe=False,
178178
classifiers=[
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""Static assets
2+
3+
Static assets for analysis report.
4+
5+
Files where downloaded from
6+
https://cdn.jsdelivr.net/npm/@i-vresse/haddock3-ui@~0.3.0/dist/index.css
7+
and
8+
https://cdn.jsdelivr.net/npm/@i-vresse/haddock3-ui@~0.3.0/dist/report.bundle.js
9+
"""
10+
import importlib.resources as importlib_resources
11+
12+
haddock_ui_path = importlib_resources.files("haddock.libs.assets")

src/haddock/libs/assets/index.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)