Skip to content

Commit 2aa4853

Browse files
committed
Moved web tool scripts to header
1 parent 34eeeae commit 2aa4853

File tree

5 files changed

+50
-24
lines changed

5 files changed

+50
-24
lines changed

_includes/demo-header.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-red.min.css">
2+
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
3+
<link rel="stylesheet" href="stylesheets/style.css">
4+
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
5+
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
6+
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
7+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/default.min.css">
8+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js"></script>
9+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
10+
<script src="javascripts/jquery.ui.touch-punch.min.js"></script>
11+
<script src="javascripts/FileSaver.min.js"></script>
12+
<script src="javascripts/parser.js"></script>
13+
<script src="javascripts/parser-indices.js"></script>
14+
<script src="javascripts/default-schedules.js"></script>
15+
<script src="javascripts/demo.js"></script>
16+
<script type="text/x-mathjax-config">
17+
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
18+
</script>
19+
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
20+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
21+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
22+
<link rel="stylesheet" href="stylesheets/dropdown.css">

_includes/demo.html

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.indigo-red.min.css">
2-
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
3-
<link rel="stylesheet" href="stylesheets/style.css">
4-
<script src="https://code.getmdl.io/1.3.0/material.min.js"></script>
5-
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
6-
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
7-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/default.min.css">
8-
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js"></script>
9-
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
10-
<script src="javascripts/jquery.ui.touch-punch.min.js"></script>
11-
<script src="javascripts/FileSaver.min.js"></script>
12-
<script src="javascripts/parser.js"></script>
13-
<script src="javascripts/parser-indices.js"></script>
14-
<script src="javascripts/default-schedules.js"></script>
15-
<script src="javascripts/demo.js"></script>
16-
<script type="text/x-mathjax-config">
17-
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
18-
</script>
19-
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
20-
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
21-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
22-
<link rel="stylesheet" href="stylesheets/dropdown.css">
23-
241
<div class="mdl-grid" style="padding-top: 0px">
252
<div class="mdl-cell mdl-cell--12-col">
263
<p style="line-height: 100%">This is an prototype implementation of the sparse tensor algebra compiler theory and contains known bugs, which are documented <a href="https://github.com/tensor-compiler/taco/issues">here</a>. If you find additional issues, please consider submitting a bug report.</p>

_includes/head.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1">
4+
<meta name="theme-color" content={{ site.theme_color | default: '#ffffff' }}>
5+
{% if page.header %}
6+
{%- include {{page.header}} -%}
7+
{% endif %}
8+
<link rel="stylesheet" href="{{ site.baseurl }}/assets/css/app.css">
9+
<link rel="shortcut icon" type="image/png"
10+
{% if site.favicon %} href="{{ site.favicon | relative_url }}" {% else %} href="{{ site.baseurl }}/favicon.png" {% endif %}
11+
/>
12+
<script defer src="https://unpkg.com/alpinejs@3.9.0/dist/cdn.min.js"></script>
13+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css">
14+
{% unless site.hide_share_buttons %}
15+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma-social@1/bin/bulma-social.min.css">
16+
{% endunless %}
17+
{% seo %}
18+
{% if site.feed %}
19+
{% feed_meta %}
20+
{% endif %}
21+
{%- if site.google_analytics -%}
22+
{%- include google-analytics.html -%}
23+
{%- endif -%}
24+
{%- include head-scripts.html -%}
25+
</head>
26+

codegen.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Web Tool
33
hero_height: is-small
44
layout: page
5+
header: demo-header.html
56
---
67

78
{% include demo.html %}

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The code base includes a README that describes how to build the C++ and Python A
2727
The [online documentation](docs/index.html) describes how to use the C++ and Python APIs as well as includes some example programs that show how TACO can be used.
2828
The command-line tool also includes a help menu that documents all of its features; you can access the help menu by invoking the tool with the `--help` option.
2929

30-
You can also use TACO as a code generator [online](codegen.html) without having to download it.
30+
You can also use TACO as a code generator [directly within your browser](codegen.html) without having to download it.
3131

3232
# How can I contribute to TACO?
3333

0 commit comments

Comments
 (0)