• Stars
    star
    260
  • Rank 152,959 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created over 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📚 Import academic publications from Bibtex to your Markdown website. 将Bibtex转换为Markdown网站

Hugo Academic CLI

Download from PyPI Conda Discord GitHub Sponsors Twitter Follow GitHub followers

📚 Import publications from your reference manager to Hugo

Features

  • 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

Community

❤️ 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:

Prerequisites

  1. Create a Hugo website such as by using the Hugo Academic Starter template for the Wowchemy website builder
  2. Download your site from GitHub, installing Hugo and its dependencies
  3. Install Python 3.6+ if it’s not already installed
  4. 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

Installation

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

Usage

Use the cd command to navigate to your website folder in the terminal:

cd <MY_WEBSITE_FOLDER>

Help:

academic

Import publications:

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. content/zh/publication):

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/

Optional arguments:

  • --publication-dir PUBLICATION_DIR Folder to import publications to (defaults to content/publication)
  • --overwrite Overwrite any existing publications in the output folder
  • --normalize Normalize tags by converting them to lowercase and capitalizing the first letter (e.g. "sciEnCE" -> "Science")
  • --featured Flag these publications as featured (to appear in Featured Publications widget)
  • --verbose or -v Show verbose messages
  • --help Help

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):

academic server

Contribute

Interested in contributing to open source and open science?

Learn how to contribute code on Github.

Check out the open issues and contribute a Pull Request.

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:

  • Lint: make lint
  • Format: make format
  • Test: make test

License

Copyright 2018-present George Cushen.

Licensed under the MIT License.

PyPI - Downloads Conda License

More Repositories

1

wowchemy-hugo-themes

😍 EASILY BUILD THE WEBSITE YOU WANT - NO CODE, JUST MARKDOWN BLOCKS! 创建在线课程,学术简历或初创网站。#OpenScience
SCSS
7,339
star
2

starter-hugo-academic

🎓 Hugo Academic Theme 创建一个学术网站. Easily create a beautiful academic résumé or educational website using Hugo and GitHub.
Jupyter Notebook
2,903
star
3

starter-hugo-research-group

👥 轻松创建研究组或组织网站 Easily create a stunning Research Group, Team, or Business Website with no-code
TeX
200
star
4

hugo-documentation-theme

📖 Project Docs / Knowledge Base template for Hugo Website Builder. 创建项目文档
114
star
5

hugo-blog-theme

📝 Hugo Academic Blog Theme. 轻松创建一个简约博客. No code, highly customizable using widgets.
Jupyter Notebook
85
star
6

starter-hugo-online-course

👩🏼‍🏫 Create an online course or coaching business with Wowchemy Website Builder for Hugo. 创建在线课程
SCSS
80
star
7

awesome-hugo

Automate batch edits to your Markdown content. Integrates with static website generators such as Hugo and Gatsby
Shell
64
star
8

hugo-second-brain-theme

🧠 卡片盒笔记法:面向未来的第二大脑 Your future-proof second brain and digital garden for free! Make it truly yours with unlimited customization!
48
star
9

starter-hugo-portfolio-theme

Easily create your own portfolio website with Hugo.
SCSS
33
star
10

hugo-minimal-theme

🌱 Easily create a simple one-page website without any code, just using widgets. 轻松创建自己可爱的最小网站
SCSS
25
star
11

starter-hugo-markdown-slides

🎙 在 Markdown 中创建漂亮的演示文稿。Write, share, and present your slides using the open, future-proof Markdown standard
19
star
12

wowchemy-block-starter

🧑‍🎨 Create and publish your own Hugo content blocks for Wowchemy Website Builder
HTML
17
star
13

wowchemy-shortcode-starter

HTML
2
star