项目作者: jpmattern

项目描述 :
convert information from a bibTeX file into multiple markdown files suitable for use with hugo-academic
高级语言: Python
项目地址: git://github.com/jpmattern/bibtex2md.git
创建时间: 2018-11-14T23:40:03Z
项目社区:https://github.com/jpmattern/bibtex2md

开源协议:Apache License 2.0

下载


bibtex2md

convert information from a bibTeX file into multiple markdown files suitable for use with hugo-academic

The build_publications.py Python 3 script builds a directory structure like

  1. build
  2. ├── ucsc_fda
  3. ├── cite.bib
  4. ├── featured.png
  5. └── index.md
  6. ├── ucsc_fpi
  7. ├── cite.bib
  8. └── index.md
  9. └── ucsc_osaka
  10. ├── cite.bib
  11. └── index.md

that is suitable for use with hugo-academic to create the “publication” entries for the website (copy contents of build/ into hugo’s content/publication/). The entries for the index.md files and the cite.bib are generated from a bibTeX file that needs to be supplied and can be modified by entries in the buildconfig.toml configuration file.

How it works

All that is required is a Python 3 installation with toml (JSON configuration files are also supported) and a bibTeX file containing the information of the publications that need to be included (Mendeley can create such a file).

To build:

  1. Edit the buildconfig.toml configuration file to point to the bibTeX file and include the publications to generate entries for. Information not contained in the bibTeX file (like abstracts) can also be supplied via buildconfig.toml. If both files contain information for an entry the one from the configuration file is used.
  2. Edit buildconfig.toml to set the build directory in which the directory structure and files will be generated. Be aware that files in the build direcory may be erased or overwritten.
  3. Run build_publications.py.
  4. Copy the contents of the build directory into hugo’s content/publication/ directory.

Authors

License

This project is licensed under the Apache License - see the LICENSE.md file for details.