File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ import os
1
2
import re
2
3
from pathlib import Path
3
4
14
15
EXAMPLES = HERE / "vendor"
15
16
TEMPLATES = HERE .parent / "templates"
16
17
17
- GITHUB_EXAMPLES = Path (
18
+ GITHUB_EXAMPLES = (
18
19
"https://github.com/"
19
20
"facultyai/dash-bootstrap-components/blob/master/examples/"
20
21
)
@@ -87,13 +88,15 @@ def register_apps():
87
88
iris_app ,
88
89
"iris" ,
89
90
(EXAMPLES / "iris.py" ).read_text (),
90
- str (GITHUB_EXAMPLES / "gallery/iris-kmeans/app.py" ),
91
+ os . path . join (GITHUB_EXAMPLES , "gallery/iris-kmeans/app.py" ),
91
92
)
92
93
git_app_ = build_app_from_example (
93
94
git_app ,
94
95
"graphs-in-tabs" ,
95
96
(EXAMPLES / "graphs_in_tabs.py" ).read_text (),
96
- str (GITHUB_EXAMPLES / "advanced-component-usage/graphs_in_tabs.py" ),
97
+ os .path .join (
98
+ GITHUB_EXAMPLES , "advanced-component-usage/graphs_in_tabs.py"
99
+ ),
97
100
)
98
101
99
102
# need to do a bit of hackery to make sure the links of the multi page app
@@ -109,7 +112,7 @@ def register_apps():
109
112
sidebar_app ,
110
113
"simple-sidebar" ,
111
114
sidebar_source ,
112
- str (GITHUB_EXAMPLES / "multi-page-apps/simple_sidebar.py" ),
115
+ os . path . join (GITHUB_EXAMPLES , "multi-page-apps/simple_sidebar.py" ),
113
116
show_warning = True ,
114
117
)
115
118
You can’t perform that action at this time.
0 commit comments