mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
use absolute URLs for static files
This commit is contained in:
parent
d67865c73c
commit
ba5e2538b5
@ -282,7 +282,7 @@ class NotebookApp(BaseIPythonApplication):
|
||||
static_path = self.webapp_settings.get("static_path", os.path.join(os.path.dirname(__file__), "static"))
|
||||
if os.path.exists(os.path.join(static_path, 'mathjax', "MathJax.js")):
|
||||
self.log.info("Using local MathJax")
|
||||
return u"static/mathjax/MathJax.js"
|
||||
return u"/static/mathjax/MathJax.js"
|
||||
else:
|
||||
self.log.info("Using MathJax from CDN")
|
||||
return u"http://cdn.mathjax.org/mathjax/latest/MathJax.js"
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
<title>{% block title %}IPython Notebook{% end %}</title>
|
||||
|
||||
<link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/layout.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/base.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="/static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/boilerplate.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/layout.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/base.css" type="text/css"/>
|
||||
{% block stylesheet %}
|
||||
{% end %}
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
<body {% block params %}{% end %}>
|
||||
|
||||
<div id="header">
|
||||
<span id="ipython_notebook"><h1><img src='static/ipynblogo.png' alt='IPython Notebook'/></h1></span>
|
||||
<span id="ipython_notebook"><h1><img src='/static/ipynblogo.png' alt='IPython Notebook'/></h1></span>
|
||||
|
||||
{% block login_widget %}
|
||||
|
||||
@ -72,11 +72,11 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/loginmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/loginmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
{% block script %}
|
||||
{% end %}
|
||||
|
||||
|
@ -15,20 +15,20 @@
|
||||
window.mathjax_url = "{{mathjax_url}}";
|
||||
</script>
|
||||
|
||||
<link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/codemirror/lib/codemirror.css">
|
||||
<link rel="stylesheet" href="static/codemirror/mode/markdown/markdown.css">
|
||||
<link rel="stylesheet" href="static/codemirror/mode/rst/rst.css">
|
||||
<link rel="stylesheet" href="static/codemirror/theme/ipython.css">
|
||||
<link rel="stylesheet" href="static/codemirror/theme/default.css">
|
||||
<link rel="stylesheet" href="/static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/codemirror/lib/codemirror.css">
|
||||
<link rel="stylesheet" href="/static/codemirror/mode/markdown/markdown.css">
|
||||
<link rel="stylesheet" href="/static/codemirror/mode/rst/rst.css">
|
||||
<link rel="stylesheet" href="/static/codemirror/theme/ipython.css">
|
||||
<link rel="stylesheet" href="/static/codemirror/theme/default.css">
|
||||
|
||||
<link rel="stylesheet" href="static/prettify/prettify.css"/>
|
||||
<link rel="stylesheet" href="/static/prettify/prettify.css"/>
|
||||
|
||||
<link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/layout.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/base.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/notebook.css" type="text/css" />
|
||||
<link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/boilerplate.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/layout.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/base.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/notebook.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/renderedhtml.css" type="text/css" />
|
||||
|
||||
{% comment In the notebook, the read-only flag is used to determine %}
|
||||
{% comment whether to hide the side panels and switch off input %}
|
||||
@ -42,7 +42,7 @@
|
||||
>
|
||||
|
||||
<div id="header">
|
||||
<span id="ipython_notebook"><h1><a href='..' alt='dashboard'><img src='static/ipynblogo.png' alt='IPython Notebook'/></a></h1></span>
|
||||
<span id="ipython_notebook"><h1><a href='..' alt='dashboard'><img src='/static/ipynblogo.png' alt='IPython Notebook'/></a></h1></span>
|
||||
<span id="save_widget">
|
||||
<input type="text" id="notebook_name" size="20"></textarea>
|
||||
<button id="save_notebook"><u>S</u>ave</button>
|
||||
@ -258,40 +258,40 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script src="static/codemirror/lib/codemirror.js" charset="utf-8"></script>
|
||||
<script src="static/codemirror/mode/python/python.js" charset="utf-8"></script>
|
||||
<script src="static/codemirror/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script>
|
||||
<script src="static/codemirror/mode/xml/xml.js" charset="utf-8"></script>
|
||||
<script src="static/codemirror/mode/javascript/javascript.js" charset="utf-8"></script>
|
||||
<script src="static/codemirror/mode/css/css.js" charset="utf-8"></script>
|
||||
<script src="static/codemirror/mode/rst/rst.js" charset="utf-8"></script>
|
||||
<script src="static/codemirror/mode/markdown/markdown.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/lib/codemirror.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/mode/python/python.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/mode/xml/xml.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/mode/javascript/javascript.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/mode/css/css.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/mode/rst/rst.js" charset="utf-8"></script>
|
||||
<script src="/static/codemirror/mode/markdown/markdown.js" charset="utf-8"></script>
|
||||
|
||||
<script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
|
||||
<script src="/static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
|
||||
|
||||
<script src="static/prettify/prettify.js" charset="utf-8"></script>
|
||||
<script src="/static/prettify/prettify.js" charset="utf-8"></script>
|
||||
|
||||
<script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/utils.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/cell.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/codecell.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/quickhelp.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/notebookmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/utils.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/cell.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/codecell.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/layout.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/quickhelp.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/loginwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/pager.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/notebookmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
</body>
|
||||
|
||||
|
@ -5,7 +5,7 @@ IPython Dashboard
|
||||
{% end %}
|
||||
|
||||
{% block stylesheet %}
|
||||
<link rel="stylesheet" href="static/css/projectdashboard.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/static/css/projectdashboard.css" type="text/css" />
|
||||
{% end %}
|
||||
|
||||
{% block meta %}
|
||||
@ -38,6 +38,6 @@ data-base-kernel-url={{base_kernel_url}}
|
||||
{% end %}
|
||||
|
||||
{% block script %}
|
||||
<script src="static/js/notebooklist.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="static/js/projectdashboardmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/notebooklist.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/static/js/projectdashboardmain.js" type="text/javascript" charset="utf-8"></script>
|
||||
{% end %}
|
||||
|
Loading…
Reference in New Issue
Block a user