diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2015-03-02 23:28:08 -0500 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2015-03-02 23:28:08 -0500 |
| commit | 44efb251eb3bf7b6fb0f618683319b63b64c1f9b (patch) | |
| tree | b7864e679270ca63dda378b08ff576aedced2726 | |
| parent | af35aa6ae14885e2dcb1f9260cdd49cbd1073fa6 (diff) | |
| download | reading_group-44efb251eb3bf7b6fb0f618683319b63b64c1f9b.tar.gz | |
Add papers
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | build.py | 8 | ||||
| -rw-r--r-- | index.jinja | 1 | ||||
| -rw-r--r-- | papers/ageev2004.pdf | bin | 0 -> 284652 bytes | |||
| -rw-r--r-- | papers/calinescu2007.pdf | bin | 0 -> 222340 bytes | |||
| -rw-r--r-- | papers/calinescu2011.pdf | bin | 0 -> 361857 bytes | |||
| -rw-r--r-- | papers/khuller1999.pdf | bin | 0 -> 1722129 bytes | |||
| -rw-r--r-- | papers/nemhauser1978.pdf | bin | 0 -> 1243305 bytes | |||
| -rw-r--r-- | papers/sviridenko2004.pdf | bin | 0 -> 135886 bytes | |||
| -rw-r--r-- | papers/vondrak2008.pdf | bin | 0 -> 192087 bytes | |||
| -rw-r--r-- | papers/vondrak2011.pdf | bin | 0 -> 549683 bytes |
11 files changed, 9 insertions, 2 deletions
@@ -4,4 +4,4 @@ build: python2 build.py deploy: - rsync -r index.html notes horel.org:public_html/submodularity + rsync -r index.html notes papers horel.org:public_html/submodularity @@ -16,7 +16,8 @@ def get_references(sessions): "-o - -unicode -nokeys -a -citefile keys.txt " "-s abbrv sub.bib"], shell=True) os.remove("keys.txt") - body = BeautifulSoup(html_refs, "lxml").body + soup = BeautifulSoup(html_refs, "lxml") + body = soup.body body.name = "ol" body.hr.decompose() entries = body.find_all("p") @@ -28,6 +29,11 @@ def get_references(sessions): entry["id"] = entry.a["name"] entry.a.decompose() keys[entry["id"]] = i + 1 + fname = op.join("papers", entry["id"] + ".pdf") + if op.isfile(fname): + link = soup.new_tag("a", href=fname) + link.string = "[pdf]" + entry.append(link) return unicode(body), keys diff --git a/index.jinja b/index.jinja index 575eb67..d020982 100644 --- a/index.jinja +++ b/index.jinja @@ -20,6 +20,7 @@ li + li { margin-top: 0.5em} <body> <h1>Submodular Optimization Reading Group<br> <span class="subtext">Spring 2015</span></h1> + <p>See the <a href="https://submodular.hackpad.com/">Hackpad</a> for discussions.<p/> <h2>Sessions</h2> <ul> {% for session in sessions -%} diff --git a/papers/ageev2004.pdf b/papers/ageev2004.pdf Binary files differnew file mode 100644 index 0000000..4515899 --- /dev/null +++ b/papers/ageev2004.pdf diff --git a/papers/calinescu2007.pdf b/papers/calinescu2007.pdf Binary files differnew file mode 100644 index 0000000..bdf4412 --- /dev/null +++ b/papers/calinescu2007.pdf diff --git a/papers/calinescu2011.pdf b/papers/calinescu2011.pdf Binary files differnew file mode 100644 index 0000000..c63401e --- /dev/null +++ b/papers/calinescu2011.pdf diff --git a/papers/khuller1999.pdf b/papers/khuller1999.pdf Binary files differnew file mode 100644 index 0000000..5af7777 --- /dev/null +++ b/papers/khuller1999.pdf diff --git a/papers/nemhauser1978.pdf b/papers/nemhauser1978.pdf Binary files differnew file mode 100644 index 0000000..918d553 --- /dev/null +++ b/papers/nemhauser1978.pdf diff --git a/papers/sviridenko2004.pdf b/papers/sviridenko2004.pdf Binary files differnew file mode 100644 index 0000000..33d3917 --- /dev/null +++ b/papers/sviridenko2004.pdf diff --git a/papers/vondrak2008.pdf b/papers/vondrak2008.pdf Binary files differnew file mode 100644 index 0000000..63b458f --- /dev/null +++ b/papers/vondrak2008.pdf diff --git a/papers/vondrak2011.pdf b/papers/vondrak2011.pdf Binary files differnew file mode 100644 index 0000000..fbbdca6 --- /dev/null +++ b/papers/vondrak2011.pdf |
