Skip to content

Commit 05faac2

Browse files
committed
add first version of the website
0 parents  commit 05faac2

File tree

90 files changed

+17447
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+17447
-0
lines changed

Diff for: README.md

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
## Recent Advances in Machine Learning for Simulation Science
2+
3+
<h3>
4+
Aim
5+
</h3>
6+
7+
<hr>
8+
9+
To organize research articles that pushes the boundary of **machine learning and (graph) neural networks for simulation** with the introduction of novel approaches, algorithms, or theoretical insights.
10+
11+
<hr>
12+
13+
14+
15+
## Building the Website
16+
17+
<pre>
18+
> pip install -r requirements.txt
19+
> make run
20+
</pre>
21+
22+
When the code is ready to be deployed, run `make freeze` to get a static version of the website in the `build` folder.
23+
24+
### Deploying to GitHub pages
25+
26+
- Define two command-line variables `GH_TOKEN` and `GH_REF`. `GH_TOKEN` is your Github personal access token, and will look like `username:token`. `GH_REF` is the location of this repo, e.g., ```$> export GH_REF=github.com/brownvc/neural-fields-review```.
27+
28+
- *DO NOT* add `GH_TOKEN` to the Makefile&mdash;this is your personal access token and should be kept private. Hence, declare a temporary command line variable using `export`.
29+
30+
- Commit any changes. Any uncommited changes will be OVERWRITTEN!
31+
32+
- Execute `make deploy`.
33+
34+
- That's it.
35+
36+
<hr>
37+
38+
### Repo Stub
39+
40+
The <a href="https://github.com/brownvc/neural-fields-review">repo</a> contains:
41+
42+
1) *Datastore* <a href="https://github.com/brownvc/neural-fields-review/tree/main/sitedata">`sitedata/`</a>
43+
44+
Collection of CSV files representing the papers, speakers, workshops, and other important information for the conference.
45+
46+
2) *Routing* <a href="https://github.com/brownvc/neural-fields-review/tree/main/main.py">`main.py`</a>
47+
48+
One file flask-server handles simple data preprocessing and site navigation.
49+
50+
3) *Templates* <a href="https://github.com/brownvc/neural-fields-review/tree/main/templates">`templates/`</a>
51+
52+
Contains all the pages for the site. See `base.html` for the master page and `components.html` for core components.
53+
54+
4) *Frontend* <a href="https://github.com/brownvc/neural-fields-review/tree/main/static">`static/`</a>
55+
56+
Contains frontend components like the default css, images, and javascript libs.
57+
58+
5) *Scripts* <a href="https://github.com/brownvc/neural-fields-review/tree/main/scripts">`scripts/`</a>
59+
60+
<hr>
61+
62+
### Keyword Statistics
63+
* Keyword Statistics: The keywords are generated by a JS script (paper_vis_statistics.js line 13-58) running on the front end every time this page is loaded. So yes they will change correspondingly when papers' data is updated.
64+
65+
<hr>

Diff for: add_paper.html

+228
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,228 @@
1+
2+
3+
4+
5+
<!DOCTYPE html>
6+
<html lang="en">
7+
8+
<head>
9+
10+
11+
<!-- Required meta tags -->
12+
<meta charset="utf-8" />
13+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
14+
15+
<!-- External Javascript libs_ext -->
16+
<script src="https://cdn.jsdelivr.net/npm/d3@5/dist/d3.min.js"></script>
17+
18+
<script src="https://cdn.jsdelivr.net/npm/handlebars@4.7.3/dist/handlebars.min.js"
19+
integrity="sha256-/PJBs6QWvXijOFIX04kZpLb6ZtSQckdOIavLWKKOgXU=" crossorigin="anonymous"></script>
20+
21+
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
22+
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
23+
24+
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
25+
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
26+
crossorigin="anonymous"></script>
27+
28+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/js/bootstrap.min.js"
29+
integrity="sha256-WqU1JavFxSAMcLP2WIOI+GB2zWmShMI82mTpLDcqFUg=" crossorigin="anonymous"></script>
30+
31+
<script src="https://cdn.jsdelivr.net/npm/moment@2.24.0/min/moment.min.js"
32+
integrity="sha256-4iQZ6BVL4qNKlQ27TExEhBN1HFPvAvAMbFavKKosSWQ=" crossorigin="anonymous"></script>
33+
34+
<script src="https://cdn.jsdelivr.net/npm/moment-timezone@0.5.28/builds/moment-timezone-with-data.min.js"
35+
integrity="sha256-IWYg4uIC8/erItNXYvLtyYHioRi2zT1TFva8qaAU/ww=" crossorigin="anonymous"></script>
36+
37+
38+
<!-- Library libs_ext -->
39+
<script src="static/js/libs_ext/typeahead.bundle.js"></script>
40+
41+
<script src="static/js/tagEditor/jquery.caret.min.js"></script>
42+
<script src="static/js/tagEditor/jquery.tag-editor.min.js"></script>
43+
44+
45+
<!-- Internal Libs -->
46+
<script src="static/js/data/api.js"></script>
47+
48+
<!-- External CSS -->
49+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"
50+
integrity="sha256-YLGeXaapI0/5IgZopewRJcFXomhRMlYYjugPLSyNjTY=" crossorigin="anonymous">
51+
52+
<!-- External Fonts (no google for china) -->
53+
<link href="static/css/Lato.css" rel="stylesheet" />
54+
<link href="static/css/Exo.css" rel="stylesheet" />
55+
<link href="static/css/Cuprum.css" rel="stylesheet" />
56+
<link rel="stylesheet" href="static/css/main.css" />
57+
<!-- <link rel="stylesheet" href="static/css/fa_regular.css"/>-->
58+
<link rel="stylesheet" href="static/css/fa_solid.css" />
59+
<link rel="stylesheet" href="static/css/lazy_load.css" />
60+
<link rel="stylesheet" href="static/css/typeahead.css" />
61+
62+
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.min.js"></script>
63+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
64+
65+
<title>Machine Learning Simulation: Add Paper</title>
66+
67+
<link rel="icon" type="image/png" href="favicon.ico">
68+
69+
<!-- Google Analytics -->
70+
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=G-GT7LEVW06Z"></script>
71+
<script>
72+
window.dataLayer = window.dataLayer || [];
73+
function gtag() { dataLayer.push(arguments); }
74+
gtag('js', new Date());
75+
76+
gtag('config', 'G-GT7LEVW06Z');
77+
</script> -->
78+
<!-- head block ends here-->
79+
80+
<style>
81+
table,
82+
th,
83+
td {
84+
border: 1px solid black;
85+
}
86+
87+
.red-hyper-link {
88+
color: #ED1C24 !important;
89+
}
90+
91+
.footer {
92+
position: fixed;
93+
bottom: 0px;
94+
}
95+
96+
</style>
97+
98+
</head>
99+
100+
<body>
101+
<!-- NAV -->
102+
<!-- add the below items to the "navigation_bar" list if those pages are needed; can't comment those out b/c jinja doesn't support comment
103+
('index.html', 'Home'),
104+
('papers.html', 'Advanced Search'),
105+
('add_paper.html', 'Add Paper'),
106+
('join_us.html', 'Join Us'),
107+
('faq.html', 'FAQ')
108+
-->
109+
110+
<nav class="navbar sticky-top navbar-expand-lg navbar-light" style="background-color: #EFECE5;" id="main-nav">
111+
<div class="container">
112+
<a class="navbar-brand" href="index.html">
113+
<img class="logo" src="static/images/mls_logo_withfont.svg" style="width: 250px;"/>
114+
</a>
115+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
116+
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
117+
<span class="navbar-toggler-icon"></span>
118+
</button>
119+
<div class="collapse navbar-collapse text-right flex-grow-1" id="navbarNav">
120+
<ul class="navbar-nav ml-auto">
121+
122+
<li class="nav-item ">
123+
<a class="nav-link" href="index.html" style="font-family: 'Ubuntu', sans-serif;">Home</a>
124+
</li>
125+
126+
<li class="nav-item active">
127+
<a class="nav-link" href="add_paper.html" style="font-family: 'Ubuntu', sans-serif;">Add Paper</a>
128+
</li>
129+
130+
</ul>
131+
</div>
132+
</div>
133+
</nav>
134+
135+
136+
137+
<!-- User Overrides -->
138+
139+
140+
<!-- top block ends here-->
141+
142+
143+
<div class="container">
144+
<!-- Tabs -->
145+
<div class="tabs">
146+
147+
</div>
148+
<!-- Content -->
149+
<div class="content">
150+
151+
152+
<div class="main-text" style="width: 70%; display: block; margin-left: auto; margin-right: auto;">
153+
<!-- submit / update instructions section -->
154+
<div id="add-paper-instructions" style="padding-bottom: 45vh; padding-top: 5vh;">
155+
<p class="infopage-title-1">Submit a new paper (takes about a minute)</p>
156+
<p class="infopage-text">Please fill out <a class="red-hyper-link" href="#" target="_blank">TBD Google form</a>.</p>
157+
<br/>
158+
<p class="infopage-title-1">Update details about an existing paper</p>
159+
<p class="infopage-text">Please fill out <a class="red-hyper-link" href="#" target="_blank">TBD Google form</a>.
160+
<br/>
161+
<br/>
162+
<!-- *Changes will be reflected on this website within two days. -->
163+
<br/>
164+
<!-- <p class="infopage-title-1">Join us</p>
165+
<p class="infopage-text">We are looking for volunteers who can moderate and maintain this database. See <a class="red-hyper-link" href="https://neuralfields.cs.brown.edu/join_us.html" target="_blank">Join Us</a> tab.</p>
166+
-->
167+
<!-- <p class="infopage-title-1">Optional steps</p>
168+
<p class="infopage-text">If you would like to see the changes reflected more immediately, please follow these additional
169+
steps:</p>
170+
<ul>
171+
<li class="infopage-step-list-item">Step 1: Clone our <a class="red-hyper-link" href="https://github.com/brownvc/neural-fields-review"
172+
target="_blank">Github Repository</a> locally.</li>
173+
<li class="infopage-step-list-item">Step 2: Go to <a class="red-hyper-link"
174+
href="https://docs.google.com/spreadsheets/d/1n2cUPCbJMAmFdb5sNkpxuvKf2pzY2_lGaWWQfY5t9nE/edit?usp=sharing"
175+
target="_blank">this spreadsheet</a>,
176+
copy the row you just entered (first row).</li>
177+
<li class="infopage-step-list-item">Step 3 (new paper): Append the row to the top (2nd row) in file <a class="red-hyper-link"
178+
href="https://github.com/brownvc/neural-fields-review/blob/main/sitedata/papers.csv"
179+
target="_blank">"sitedata/papers.csv"</a>
180+
in your cloned local repository.</li>
181+
<li class="infopage-step-list-item">Step 3 (update existing): Replace the existing row (corresponding to your
182+
paper) in file <a class="red-hyper-link" href="https://github.com/brownvc/neural-fields-review/blob/main/sitedata/papers.csv"
183+
target="_blank">"sitedata/papers.csv"</a> with the row you copied.</li>
184+
<li class="infopage-step-list-item">Step 4: Commit changes to your cloned repository and create a pull request.
185+
</li>
186+
</ul> -->
187+
</div>
188+
</div>
189+
190+
</div>
191+
</div>
192+
193+
<!-- body block ends here-->
194+
195+
196+
197+
198+
199+
200+
<!-- Footer -->
201+
<footer class="footer"
202+
style="background-color: #353535; width: 100%; height: 4vh; display: flex; justify-content: center; align-items: center; ">
203+
<!-- no contents needed -->
204+
</footer>
205+
206+
<!-- Code for hash tags -->
207+
<script type="text/javascript">
208+
$(document).ready(function () {
209+
if (window.location.hash !== "") {
210+
$(`a[href="${window.location.hash}"]`).tab("show");
211+
}
212+
213+
$("a[data-toggle='tab']").on("shown.bs.tab", function (e) {
214+
const hash = $(e.target).attr("href");
215+
if (hash.substr(0, 1) === "#") {
216+
const position = $(window).scrollTop();
217+
window.location.replace(`#${hash.substr(1)}`);
218+
$(window).scrollTop(position);
219+
}
220+
});
221+
});
222+
</script>
223+
224+
<!-- footer block ends here -->
225+
226+
</body>
227+
228+
</html>

Diff for: favicon.ico

1.87 KB
Binary file not shown.

0 commit comments

Comments
 (0)