Skip to content

Commit

Permalink
publication_list: the BibTeX file should be a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Feb 7, 2016
1 parent 20fcd41 commit 852332a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_publication_list.py
Expand Up @@ -38,6 +38,7 @@ def test_default(self):
'</ul></div>'
)
self.sample = '.. publication_list:: tests/data/publication_list/test.bib\n\t:highlight_author: Nikola Tesla'
self.deps = 'tests/data/publication_list/test.bib'
self.basic_test()
assert re.search(expected.replace('\n', '').strip(), self.html.replace('\n', '').strip())

Expand Down
1 change: 1 addition & 0 deletions v7/publication_list/publication_list.py
Expand Up @@ -64,6 +64,7 @@ def run(self):
style = find_plugin('pybtex.style.formatting', self.options.get('style', 'unsrt'))()
bibtex_dir = self.options.get('bibtex_dir', 'bibtex')
highlight_author = self.options.get('highlight_author', None)
self.state.document.settings.record_dependencies.add(self.arguments[0])

parser = Parser()

Expand Down

0 comments on commit 852332a

Please sign in to comment.