Import publications from your reference manager to Hugo
📚 Import publications from your reference manager to Hugo
- Import publications, including books, conference proceedings and journals, from your reference manager to your static site generator
- Simply export a BibTeX file from your reference manager, such as Zotero, and provide this as the input
- Hugo command pass-through
- 📚 View the documentation and usage guide below
- 💬 Chat with the Wowchemy community or Hugo community
- 🐦 Twitter: @wowchemy @GeorgeCushen #MadeWithAcademic
❤️ Support this open-source software
To help us develop this Academic CLI tool and the associated Wowchemy software sustainably under the MIT license, we ask all individuals and businesses that use it to help support its ongoing maintenance and development via sponsorship and contributing.
Support development of the Academic CLI:
- Create a Hugo website such as by using the Hugo Academic Starter template for the Wowchemy website builder
- Download your site from GitHub, installing Hugo and its dependencies
- Install Python 3.6+ if it’s not already installed
- Version control your website
- Ideally, version control your site with Git so that you can review the proposed changes and accept or reject them without risking breaking your site
- Otherwise, if not using Git, backup your site folder prior to running this tool
Open your Terminal or Command Prompt app and install the Academic CLI tool:
pip3 install -U academic
Alternatively, install Academic CLI v0.5.1 if you do not wish to install Hugo on your computer:
pip3 install academic==0.5.1
Or, help test the lastest development version:
pip3 install -U git+https://github.com/wowchemy/hugo-academic-cli.git
cd command to navigate to your website folder in the terminal:
Say we downloaded our publications from our reference manager, such as Zotero, to a file named
my_publications.bib within the website folder. We can import them into the default
content/publication/ folder with:
academic import --bibtex my_publications.bib
Import publications to a specific folder (e.g.
Say our site has multiple languages, we may want to output the publications to a specific folder with:
academic import --bibtex my_publications.bib --publication-dir content/zh/publication/
--publication-dir PUBLICATION_DIRFolder to import publications to (defaults to
--overwriteOverwrite any existing publications in the output folder
--normalizeNormalize tags by converting them to lowercase and capitalizing the first letter (e.g. "sciEnCE" -> "Science")
--featuredFlag these publications as featured (to appear in Featured Publications widget)
-vShow verbose messages
After importing publications, a full text PDF and image can be associated with each item and further details added via extra parameters.
Run a Hugo command (pass-through):
Interested in contributing to open source and open science?
For local development, clone this repository and use Pipenv to install the tool using the following commands:
git clone https://github.com/wowchemy/hugo-academic-cli.git cd hugo-academic-cli pip3 install pipenv pipenv install -e .
Preparing a contribution:
Copyright 2018-present George Cushen.
Licensed under the MIT License.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.