ucinlp / bibere

Manage and render your publication list
http://ucinlp.github.io/bibere
BSD 2-Clause "Simplified" License
6 stars 1 forks source link

`byyear.html` is not working, while `paper.html` works - No style changes from `bibere.scss` #4

Open mepland opened 10 months ago

mepland commented 10 months ago

Thank you for developing this great package, it seems perfect for adding a list of publications to github pages! I am using it as intended, but am currently testing my site locally with the BretFisher/jekyll-serve docker container rather than live on github pages.

I've added <script src="https://code.jquery.com/jquery-1.12.4.js"></script> to _includes/head.html, and bibere.scss to _sass/, along with the required _includes/bibere files and demo _data/bibere/ yaml files.

Including paper.html for one paper works okay, though without styling:

image

However, using byyear.html breaks at the first publication at the <code> tag:

image

Am I using bibere incorrectly, or could this be breaking due to the particular docker container I am hosting it in? Any suggestions on how to fix the <code> section of byyear.html and how to get the bibere.scss to be applied?

mepland commented 10 months ago

The relevant html from the served page is below.

<html lang="en">
  <head>
  <meta charset="UTF-8" />
...
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
...
</head>
...
<h1 id="publications">Publications</h1>

<h2 id="-include-biberepaperhtml-piddemselectemnlp23-">{% include bibere/paper.html pid=”demselect:emnlp23” %}</h2>

<li id="demselect_emnlp23">
        <!-- Author --><span class="author"><a href="https://github.com/Shivanshu-Gupta">Shivanshu Gupta</a></span>,&nbsp;<span class="author"><a href="https://matt-gardner.github.io/">Matt Gardner</a></span>,&nbsp;<span class="author"><a href="http://www.sameersingh.org/">Sameer Singh</a></span>.<!-- Title -->
        <span class="title">Coverage-based Example Selection for In-Context Learning.</span>
        <!-- Venue -->
        <span class="venue">Empirical Methods in Natural Language Processing (EMNLP).
        </span>
        <!-- Year -->
        <span class="year">2023</span>
        <!-- Tag -->
        <span class="tag_Conference tag label label-default">Conference</span><br />
        <!-- Notes --><!-- Links -->
        [&nbsp;<a href="https://arxiv.org/abs/2305.14907">ArXiV</a>,&nbsp;<a href="https://arxiv.org/pdf/2305.14907.pdf">PDF</a>,<!-- Abstract --><!-- BibTex -->
        <a class="collapse-clicker" onclick="$('#demselect_emnlp23_bibtex').slideToggle(200)">BibTex</a> ]<div class="collapse" id="demselect_emnlp23_bibtex">
        <div class="panel panel-info">
            <pre class="panel-body details-panel">@inproceedings{demselect:emnlp23,
  author = {Shivanshu Gupta and Matt Gardner and Sameer Singh},
  title = { {Coverage-based Example Selection for In-Context Learning} },
  booktitle = {Empirical Methods in Natural Language Processing (EMNLP)},
  year = {2023}
}</pre>
        </div>
        </div>
    </li>

<h2 id="-include-biberebyyearhtml-mainauthorsameer-filterauthorsameer-minyear2023-">{% include bibere/byyear.html mainAuthor=”sameer” filterAuthor=”sameer” minYear=2023 %}</h2>

<!-- Create a list of papers filtered by flags -->
<!-- Group filtered ones by year, sorted -->

<div>
Publications (grouped by year):
    <a href="[#2023](http://0.0.0.0:4000/#2023)">2023</a>.
<hr />
</div>
<!-- For each year, sorted by type (alphabetical), then sort_weight -->

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>&lt;span id="2023" class="yearGroup"&gt;2023&lt;/span&gt;
&lt;ul class="papers"&gt;

        &lt;li id="posthoc_neurips23"&gt;
    &lt;!-- Author --&gt;&lt;span class="author"&gt;Satyapriya Krishna&lt;/span&gt;,&amp;nbsp;&lt;span class="author"&gt;Jiaqi Ma&lt;/span&gt;,&amp;nbsp;&lt;span class="author"&gt;&lt;a href="https://dylanslacks.website/"&gt;Dylan Slack&lt;/a&gt;&lt;/span&gt;,&amp;nbsp;&lt;span class="author"&gt;Asma Ghandeharioun&lt;/span&gt;,&amp;nbsp;&lt;span class="mainAuthor"&gt;&lt;a href="http://www.sameersingh.org"&gt;Sameer Singh&lt;/a&gt;&lt;/span&gt;,&amp;nbsp;&lt;span class="author"&gt;&lt;a href="https://himalakkaraju.github.io/"&gt;Himabindu Lakkaraju&lt;/a&gt;&lt;/span&gt;.&lt;!-- Title --&gt;
    &lt;span class="title"&gt;Post Hoc Explanations of Language Models Can Improve Language Models.&lt;/span&gt;
    &lt;!-- Venue --&gt;
...
</code></pre></div></div>
...