From: Amin Bandali <bandali@gnu.org> Date: Thu, 16 Jul 2020 14:02:15 +0000 (-0400) Subject: add standalone publications page X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/bndl.org/commitdiff_plain/8c1ba2f235553b96215e157a4b686d0dd626d100?ds=sidebyside;hp=eb1aab372e720aaf68aef33d49f8b80950ff566c add standalone publications page uses bibtex2html to generate the bibliography from my bandali.bib --- diff --git a/Makefile b/Makefile index 353cbb8..a7071a1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ -SRC := $(filter-out $(wildcard meta_*),$(wildcard *.m4 fsf-internship/*.m4)) -OUTPUTS := $(patsubst %.m4,out/%.html,$(SRC)) -STATIC := $(patsubst static/%,out/%,$(wildcard static/* static/.*)) +SRC := $(filter-out $(wildcard meta_*), \ +$(wildcard *.m4 fsf-internship/*.m4)) +OUTPUTS := $(patsubst %.m4,out/%.html, $(SRC)) +STATIC := $(patsubst static/%,out/%, \ +$(filter-out static/publications.html, \ +$(wildcard static/* static/.*))) all: $(OUTPUTS) out/notes.atom out/notes.rss out/style.css $(STATIC) @@ -9,7 +12,14 @@ out/%.html: %.m4 header.html footer.html m4 $< > $@ out/notes.atom: meta_feed_atom.m4 ; m4 $< > $@ out/notes.rss: meta_feed_rss.m4 ; m4 $< > $@ -$(STATIC): ; ln -s $(PWD)/static/$(notdir $@) $@ +$(STATIC): ; ln -s $(PWD)/static/$(@F) $@ + +# publications bibliography +static/publications.html: static/bandali.bib static/bandali-bib-*.txt +static/publications.html: static/publications-sed.txt +static/publications.html: + $(MAKE) -C $(@D) $(@F) +out/publications.html: static/publications.html clean: rm -rf out/ @@ -18,4 +28,12 @@ deploy: rsync -avzLP out/ abandali@bndl.org:www/site/ ssh abandali@bndl.org mv www/site/.htaccess-www www/.htaccess -.PHONY: deploy +watch: + while true; do \ + echo $(SRC) header.html footer.html \ + static/bandali.bib static/bandali-bib-*.txt \ + static/publications-sed.txt \ + Makefile static/Makefile | \ + tr " " "\n" | entr -d make; done + +.PHONY: deploy watch diff --git a/header.html b/header.html index 2cc6c75..96cbbd7 100644 --- a/header.html +++ b/header.html @@ -40,7 +40,7 @@ ifelse(__slug,`home',`<h1>__title</h1>', </header> <nav> <ul> -<li><a href="/#papers">Publications</a></li> +<li><a href="/publications">Publications</a></li> <li><a href="/#projects">Projects</a></li> <li><a href="/#notes">Notes</a></li> <li><a href="/cv" title="curriculum vitae">CV</a></li> diff --git a/publications.m4 b/publications.m4 new file mode 100644 index 0000000..8a32f8a --- /dev/null +++ b/publications.m4 @@ -0,0 +1,15 @@ +dnl -*- html -*- +define(__title, `Publications')dnl +define(__slug, `publications')dnl +include(header.html)dnl + +<article id="pubs"> +<h1>Publications</h1> + +include(static/publications.html) + +<p class="muted bibtex2html"><em>bibliography generated using +<a href="//www.lri.fr/~filliatr/bibtex2html/">bibtex2html</a></em></p> +</article> + +include(footer.html)dnl diff --git a/static/.htaccess-www b/static/.htaccess-www index 9d6976c..69dab1d 100644 --- a/static/.htaccess-www +++ b/static/.htaccess-www @@ -8,3 +8,6 @@ RewriteBase / RewriteCond %{HTTP_HOST} ^csclub\.uwaterloo\.ca$ RewriteRule ^(.*)$ https://bndl.org/$1 [R] </IfModule> + +AddType text/plain .bib .org +AddCharset utf-8 .bib .org diff --git a/static/Makefile b/static/Makefile new file mode 100644 index 0000000..07c43a6 --- /dev/null +++ b/static/Makefile @@ -0,0 +1,9 @@ +publications.html: bandali.bib bandali-bib-*.txt + bibtex2html --citefile bandali-bib-citefile.txt \ + --nodoc --no-header --no-footer --no-doi \ + --reverse-sort --revkeys --sort-by-date --unicode \ + --output publications \ + bandali.bib + mv publications_bib.html bandali-bib.html + sed -i -f publications-sed.txt publications.html + sed -i -f bandali-bib-sed.txt bandali-bib.html diff --git a/static/bandali-bib-citefile.txt b/static/bandali-bib-citefile.txt new file mode 100644 index 0000000..ce2448a --- /dev/null +++ b/static/bandali-bib-citefile.txt @@ -0,0 +1,2 @@ +DBLP:conf/re/AbbassiBDS18 +bandali2020 diff --git a/static/bandali-bib-sed.txt b/static/bandali-bib-sed.txt new file mode 100644 index 0000000..35b2f79 --- /dev/null +++ b/static/bandali-bib-sed.txt @@ -0,0 +1,5 @@ +# drop .html +s/publications.html#/publications#/ + +# linkify bandali.bib at the top +s|bandali.bib|<a href="bandali.bib">&</a>| diff --git a/static/bandali-bib.html b/static/bandali-bib.html new file mode 100644 index 0000000..eb58572 --- /dev/null +++ b/static/bandali-bib.html @@ -0,0 +1,58 @@ +<h1><a href="bandali.bib">bandali.bib</a></h1><a name="DBLP:conf/re/AbbassiBDS18"></a><pre> +@inproceedings{<a href="publications#DBLP:conf/re/AbbassiBDS18">DBLP:conf/re/AbbassiBDS18</a>, + author = {Ali Abbassi and + Amin Bandali and + Nancy A. Day and + Jos{\'{e}} Serna}, + title = {A Comparison of the Declarative Modelling Languages + {B}, {Dash}, and {TLA\textsuperscript{+}}}, + booktitle = {8th {IEEE} International Model-Driven Requirements + Engineering Workshop, MoDRE@RE 2018, Banff, AB, + Canada, August 20, 2018}, + pages = {11--20}, + year = {2018}, + crossref = {<a href="#DBLP:conf/re/2018modre">DBLP:conf/re/2018modre</a>}, + url = {https://doi.org/10.1109/MoDRE.2018.00008}, + doi = {10.1109/MoDRE.2018.00008}, + timestamp = {Thu, 14 Feb 2019 15:07:29 +0100}, + biburl = {https://dblp.org/rec/bib/conf/re/AbbassiBDS18}, + bibsource = {dblp computer science bibliography, https://dblp.org}, + pdf = {https://p.bndl.org/modre2018-declarative.pdf} +} +</pre> + +<a name="DBLP:conf/re/2018modre"></a><pre> +@proceedings{<a href="publications#DBLP:conf/re/2018modre">DBLP:conf/re/2018modre</a>, + editor = {Ana Moreira and + Gunter Mussbacher and + Jo{\~{a}}o Ara{\'{u}}jo and + Pablo S{\'{a}}nchez}, + title = {8th {IEEE} International Model-Driven Requirements + Engineering Workshop, MoDRE@RE 2018, Banff, AB, + Canada, August 20, 2018}, + publisher = {{IEEE} Computer Society}, + year = {2018}, + url = {<a href="http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=8500723">http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=8500723</a>}, + isbn = {978-1-5386-8406-1}, + timestamp = {Thu, 14 Feb 2019 15:07:29 +0100}, + biburl = {https://dblp.org/rec/bib/conf/re/2018modre}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} +</pre> + +<a name="bandali2020"></a><pre> +@mastersthesis{<a href="publications#bandali2020">bandali2020</a>, + type = {{MMath} thesis}, + author = {Amin Bandali}, + title = {{A Comprehensive Study of Declarative Modelling Languages}}, + school = {University of Waterloo, David R. Cheriton School of Computer Science}, + year = 2020, + month = {July}, + publisher = {UWSpace}, + url = {<a href="http://hdl.handle.net/10012/16059">http://hdl.handle.net/10012/16059</a>}, + note = {\url{http://hdl.handle.net/10012/16059} and + \url{https://bndl.org/mmath}}, + pdf = {https://p.bndl.org/bandali-mmath-thesis.pdf} +} +</pre> + diff --git a/static/bandali.bib b/static/bandali.bib new file mode 100644 index 0000000..c617b4c --- /dev/null +++ b/static/bandali.bib @@ -0,0 +1,68 @@ +% bandali.bib --- bandali's bibliography -*-bibtex-*- + +% Copyright (C) 2020 Amin Bandali <bandali at uwaterloo.ca> +% DBLP items under CC0 (<https://dblp.org/db/about/copyright.html>) + +%% =================================================================== +%% string definitions +%% =================================================================== + +@string{uwaterloo = "University of Waterloo"} +@string{drc-scs = "David R. Cheriton School of Computer Science"} +@string{uwaterloo-cs = uwaterloo # ", " # drc-scs} + +%% =================================================================== +%% bandali's papers and talks (in chronological order) +%% =================================================================== + +@inproceedings{DBLP:conf/re/AbbassiBDS18, + author = {Ali Abbassi and + Amin Bandali and + Nancy A. Day and + Jos{\'{e}} Serna}, + title = {A Comparison of the Declarative Modelling Languages + {B}, {Dash}, and {TLA\textsuperscript{+}}}, + booktitle = {8th {IEEE} International Model-Driven Requirements + Engineering Workshop, MoDRE@RE 2018, Banff, AB, + Canada, August 20, 2018}, + pages = {11--20}, + year = {2018}, + crossref = {DBLP:conf/re/2018modre}, + url = {https://doi.org/10.1109/MoDRE.2018.00008}, + doi = {10.1109/MoDRE.2018.00008}, + timestamp = {Thu, 14 Feb 2019 15:07:29 +0100}, + biburl = {https://dblp.org/rec/bib/conf/re/AbbassiBDS18}, + bibsource = {dblp computer science bibliography, https://dblp.org}, + pdf = "https://p.bndl.org/modre2018-declarative.pdf" +} + +@proceedings{DBLP:conf/re/2018modre, + editor = {Ana Moreira and + Gunter Mussbacher and + Jo{\~{a}}o Ara{\'{u}}jo and + Pablo S{\'{a}}nchez}, + title = {8th {IEEE} International Model-Driven Requirements + Engineering Workshop, MoDRE@RE 2018, Banff, AB, + Canada, August 20, 2018}, + publisher = {{IEEE} Computer Society}, + year = {2018}, + url = {http://ieeexplore.ieee.org/xpl/mostRecentIssue.jsp?punumber=8500723}, + isbn = {978-1-5386-8406-1}, + timestamp = {Thu, 14 Feb 2019 15:07:29 +0100}, + biburl = {https://dblp.org/rec/bib/conf/re/2018modre}, + bibsource = {dblp computer science bibliography, https://dblp.org} +} + +@mastersthesis{bandali2020, + type = {{MMath} thesis}, + author = {Amin Bandali}, + title = {{A Comprehensive Study of Declarative Modelling Languages}}, + school = uwaterloo-cs, + year = 2020, + month = {July}, + publisher = "UWSpace", + url = {http://hdl.handle.net/10012/16059}, + note = {\url{http://hdl.handle.net/10012/16059} and + \url{https://bndl.org/mmath}}, + pdf = "https://p.bndl.org/bandali-mmath-thesis.pdf" +} diff --git a/static/publications-sed.txt b/static/publications-sed.txt new file mode 100644 index 0000000..0287ec8 --- /dev/null +++ b/static/publications-sed.txt @@ -0,0 +1,10 @@ +# delete all leading blank lines +# tip: can use /[[:space:]]/,$!d to delete all leading space +/./,$!d + +# take the rename into consideration +s/publications_bib.html#/bandali-bib#/ + +# linkify author names +s|Amin Bandali|<a href="https://bndl.org">&</a>| +s|Nancy A. Day|<a href="https://cs.uwaterloo.ca/~nday/">&</a>| diff --git a/static/publications.html b/static/publications.html new file mode 100644 index 0000000..0650d32 --- /dev/null +++ b/static/publications.html @@ -0,0 +1,40 @@ +<table> + +<tr valign="top"> +<td align="right" class="bibtexnumber"> +[<a name="bandali2020">2</a>] +</td> +<td class="bibtexitem"> +<a href="https://bndl.org">Amin Bandali</a>. + A Comprehensive Study of Declarative Modelling Languages. + MMath thesis, University of Waterloo, David R. Cheriton School of + Computer Science, July 2020. + <a href="http://hdl.handle.net/10012/16059">http://hdl.handle.net/10012/16059</a> and + <a href="https://bndl.org/mmath">https://bndl.org/mmath</a>. +[ <a href="bandali-bib#bandali2020">bib</a> | +<a href="http://hdl.handle.net/10012/16059">http</a> | +<a href="https://p.bndl.org/bandali-mmath-thesis.pdf">.pdf</a> ] + +</td> +</tr> + + +<tr valign="top"> +<td align="right" class="bibtexnumber"> +[<a name="DBLP:conf/re/AbbassiBDS18">1</a>] +</td> +<td class="bibtexitem"> +Ali Abbassi, <a href="https://bndl.org">Amin Bandali</a>, <a href="https://cs.uwaterloo.ca/~nday/">Nancy A. Day</a>, and José Serna. + A comparison of the declarative modelling languages B, Dash, and + TLA<sup>+</sup>. + In Ana Moreira, Gunter Mussbacher, João Araújo, and Pablo + Sánchez, editors, <em>8th IEEE International Model-Driven + Requirements Engineering Workshop, MoDRE@RE 2018, Banff, AB, Canada, August + 20, 2018</em>, pages 11–20. IEEE Computer Society, 2018. +[ <a href="bandali-bib#DBLP:conf/re/AbbassiBDS18">bib</a> | +<a href="https://doi.org/10.1109/MoDRE.2018.00008">http</a> | +<a href="https://p.bndl.org/modre2018-declarative.pdf">.pdf</a> ] + +</td> +</tr> +</table> \ No newline at end of file diff --git a/static/style.css b/static/style.css index 6270036..4031953 100644 --- a/static/style.css +++ b/static/style.css @@ -133,6 +133,10 @@ em { table td { padding: 0.125em 0.3em; } +#pubs td { + padding-top: 0.4em; + padding-bottom: 0.4em; +} table td:first-child { padding-left: 0; } @@ -155,13 +159,13 @@ table td:last-child { text-align: right; } -small, dd { +small, dd, .small, .bibtexnumber, .bibtexitem, .bibtex2html { font-size: 0.875em; } .muted { color: #666; } -.inbox { +.inbox, .bibtex2html { margin-top: 2em; }