
from __future__ import unicode_literals

from akatsuki.exporter import export_html
from akatsuki.parser import load_bibtex_file
from akatsuki.utils import sort_by_date


def main(bibtex_file, html_file):
    """Load BibTeX file and export to HTML file"""
    entries = load_bibtex_file(bibtex_file)
    entries = sort_by_date(entries, reverse=True)
    export_html(html_file, entries)


from __future__ import unicode_literals

from akatsuki.exporter import export_html
from akatsuki.parser import load_bibtex_file
from akatsuki.utils import pmid_to_url, sort_by_date


def main(bibtex_file, html_file):
    """Load BibTeX file and export to HTML file"""
    entries = load_bibtex_file(bibtex_file)
    entries = pmid_to_url(entries)
    entries = sort_by_date(entries, reverse=True)
    export_html(html_file, entries)

Add pmid to url convertion
Add pmid to url convertion

  
  from __future__ import unicode_literals
  
  from akatsuki.exporter import export_html
  from akatsuki.parser import load_bibtex_file
- from akatsuki.utils import sort_by_date
+ from akatsuki.utils import pmid_to_url, sort_by_date
  
  
  def main(bibtex_file, html_file):
      """Load BibTeX file and export to HTML file"""
      entries = load_bibtex_file(bibtex_file)
+     entries = pmid_to_url(entries)
      entries = sort_by_date(entries, reverse=True)
      export_html(html_file, entries)
  
Add pmid to url convertion
## Code Before:

from __future__ import unicode_literals

from akatsuki.exporter import export_html
from akatsuki.parser import load_bibtex_file
from akatsuki.utils import sort_by_date


def main(bibtex_file, html_file):
    """Load BibTeX file and export to HTML file"""
    entries = load_bibtex_file(bibtex_file)
    entries = sort_by_date(entries, reverse=True)
    export_html(html_file, entries)

## Instruction:
Add pmid to url convertion
## Code After:

from __future__ import unicode_literals

from akatsuki.exporter import export_html
from akatsuki.parser import load_bibtex_file
from akatsuki.utils import pmid_to_url, sort_by_date


def main(bibtex_file, html_file):
    """Load BibTeX file and export to HTML file"""
    entries = load_bibtex_file(bibtex_file)
    entries = pmid_to_url(entries)
    entries = sort_by_date(entries, reverse=True)
    export_html(html_file, entries)
