New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve control over detail pages #153
Comments
Do you know from which version you upgraded? I'm sure this would help us to figure out what's causing the change. |
I'm using 4.5.0 on a remote machine and that works as I expect and I was using 5.0.0.pre.1. I'm now using 5.8.2, and that appears to be adding the details stuff. I tried setting the |
OK thanks. So, the issue is that 'details' links are being generated, which were not generated previously (and this should not happen or there should be a way to turn it off), yes? I'm not sure I understand the second part; you have a page that generates a BibTeX file? This is something you're doing yourself (how?) or are you using the Do you think you can provide failing test cases for the issues? (See here for examples) |
Yes, I have done nothing to enable details, but I am still getting Details links.
I'm using
I don't know how to read those, but I have a config that makes no reference to the details feature at all, yet it still appears to generate a link with the text "Details" and the link target of bibliography/{BibTeX ID of the reference}. It is also generating a I would expect to only see the details links and pages if I have explicitly asked for them to be generated. |
Hmm, I added a test case to ensure that details pages and links are not rendered by default -- which passes. So I'm guessing there is something in your configuration that triggers this. Details pages are generated if you provide a |
Same here. Any way to turn off the |
Like I said above, details links are only generated by default if you have a layout that matches the layout specified by the |
Sorry for taking your time. Just to make my question clear. I want to have details pages on one post page with my own publication bibtex source file, while I don't want to have the detailed pages and links shown for references on another post. I understand that using a non-bibtex.html name for the This tool is good to generate a bibliography for a list of stuffs at once, but it would be nice to have more buttons to tweak around for generating citation lists. Maybe it's there I just don't know how to use. Thanks. |
Ah, that's a good point. You're right, the details feature can only be activated for everything at the moment. This is probably for legacy reasons: when we added the feature there was just a single bibliography I believe. Plus, detail pages use a generator which runs before the individual pages are built I think... so it's sort of all or nothing at the moment. Having said that, it can't be too difficult disabling at list the links at more granular level. I think that would certainly be a good addition. |
Just a followup. I tried to use different |
The details are only generated for the main bibliography specified in the config IIRC, so there is not problem with your setup (the details generator was implemented before the Unfortunately, I don't have the time to work on this now, but for future reference, we want to
Correct? |
Would it be sufficient to specify a list of bib files in the config, so that at least all the listed files have details pages generated? And then add a tag to allow references to be rendered with or without the details link. I think that should be the least invasive modifcation... |
It's been a long time, but glancing over the Jekyll docs they mention that 'Generators run after Jekyll has made an inventory of the existing content, and before the site is generated.' -- if I am not mistaken this means that there is no way to know all the files which are used by bibliography tags, because they have not run at the point in time when we need to generate the detail pages. (Obviously there are ways around this, but I imagine it might get complicated quickly.) So yes, if that's the case then your suggestion is probably the best solution for us. To add an explicit list of bibtex files for which detail pages shall be generated and, additionally, add a separate setting for whether or not to generate details links which can also be overridden per tag. |
Also see #52 |
I want to revive this issue, because I think that a bit more control on the details page generation would be beneficial. In particular, I think that the capability to generate details pages and to automatically add the link to details pages in the bibliography list should be separated. I have a very complicated setup of this plugin, which tries to mimic what dblp does on an author page, plus the ability to show the bibtex entry in a dialog. To reach this goal, I had to tweak hardly scholar to remove all forms of automated lists, to rely on a custom style, and to provide the whole logic to generate a proper entry in the The problem I have been facing is twofold. Since I cannot style the To work around this, I have in my main layout template the following:
This is extremely hackish, totally tailored for my site, and it slows down significantly the generation. Yet, it works. But it would be much easier to prevent the generation of the links, rather than removing them later. TL;DR
An option like |
I found that you can specify multiple bib files in your # Bibliography settings
scholar:
bibliography: "*.bib"
... and then if you have the details generator enabled it will generate details pages for all entries in all of the bib files in Then you can list all of your articles, including link to each of their details pages, e.g. like this: <h2>Journal Papers</h2>
{% bibliography --file journals.bib %}
<h2>Conference Papers</h2>
{% bibliography --file conferences.bib %}
... |
Since I updated Jekyll Scholar, I'm getting "Details" links that don't go anywhere. I already extract a number of fields from the BibTeX and format the equivalent in a more expressive way, how do I turn this off? It has also broken the page that generates a clean BibTeX file for people to download, as now the .tex file contains a load of mismatched quotes.
The text was updated successfully, but these errors were encountered: