Skip to main content

Some tools to format references in documentation

Project description

ReadTheDocs PyPI-Server Coveralls Project generated with PyScaffold

docite

Some tools to format references in documentation

This is a small package I created to help me format references in my documentation. It uses pandoc to convert the references from bibtex to a format that can be used in markdown files.

Installation

You can install the package via pip:

pip install docite

Usage

You can use the package from the command line as follows:

docite --input <input_file> --output <output_file> --bib <bib_file>

or:

python -m docite.cli --input <input_file> --output <output_file> --bib <bib_file>

You can also use the package from python as follows:

from docite import convert
convert.convert_with_refs(input_file, output_file, bib_file)

My personal workflow is:

  • I use Zotero to manage my references and then export them to a Better Bibtex file.

  • I use the Citation Picker for Zotero extension within VSCode to add the references to my markdown files.

  • I use docite to generate an output markdown file with the references formatted.

Here is a gif showing how I use the package:

Usage

Making Changes & Contributing

This project uses pre-commit, please make sure to install it before making any changes:

pip install pre-commit
cd docite
pre-commit install

It is a good idea to update the hooks to the latest version:

pre-commit autoupdate

Don’t forget to tell your contributors to also install and use pre-commit.

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docite-0.1.2.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

docite-0.1.2-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file docite-0.1.2.tar.gz.

File metadata

  • Download URL: docite-0.1.2.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for docite-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7d8936538bca5669f2d4403e178883ac4b3ae86397c4e517d430d1bf46e1977e
MD5 48d8235c79e2dbc740553f9468e6ec6d
BLAKE2b-256 b870280867c6973727809b20f160ac45c3eca985e4f8e9c8b20d3573da2b0994

See more details on using hashes here.

File details

Details for the file docite-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: docite-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for docite-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 82033468774e463254ca4845bfd99917246ddd38ce5d0b0b158dd8565fefefa8
MD5 087ed8913177d062124d46c4d0702445
BLAKE2b-256 ef168aefc85011ac03fb313e533878c3d5203eba3a48040558bb945f5e932568

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page