Skip to content

Commit 3362daf

Browse files
author
Zerline
committed
CSS should be working.
1 parent 588f154 commit 3362daf

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ include setupbase.py
66
include js/tsconfig.json
77
include js/package.json
88
include js/webpack.config.js
9+
include style/sage-combinat-widgets.css
910
include sage_combinat_widgets/labextension/*.tgz
1011

1112
# Documentation

js/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"files": [
2020
"lib/*.d.ts",
2121
"lib/*.js",
22-
"dist/*.js"
22+
"style/*.css"
2323
],
24+
"style": "style/sage-combinat-widgets.css",
2425
"scripts": {
2526
"build": "npm run build:lib && npm run build:nbextension",
2627
"build:labextension": "npm run clean:labextension && mkdirp ../sage_combinat_widgets/labextension && cd ../sage_combinat_widgets/labextension && npm pack ../../js",
@@ -62,6 +63,7 @@
6263
"webpack": "^4.39.1"
6364
},
6465
"jupyterlab": {
65-
"extension": "lib/plugin"
66+
"extension": true,
67+
"themePath": "style/sage-combinat-widgets.css"
6668
}
6769
}

js/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) Odile B
22
// Distributed under the terms of the Modified BSD License.
33

4-
const styles = require('./sage-combinat-widgets.css');
4+
const styles = require('../style/sage-combinat-widgets.css');
55
export * from './version';
66
export * from './singleton_widgets';
File renamed without changes.

sage_combinat_widgets/nbextension/static/extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ define(function() {
2222
.attr({
2323
rel: 'stylesheet',
2424
type: 'text/css',
25-
href: requirejs.toUrl('./sage-combinat-widgets.css')
25+
href: requirejs.toUrl('../style/sage-combinat-widgets.css')
2626
})
2727
.appendTo('head');
2828
};

0 commit comments

Comments
 (0)