Git Product home page Git Product logo

Comments (3)

larsgw avatar larsgw commented on June 8, 2024

It definitely is appropriate! The current setup for using Citation.js in the browser is a bit awkward at times, and this is a good reminder. The solution is in the README, but not in the most obvious place (something that I should fix as well).

TL;DR: You need to load citeproc-js as well:

<script src="path/to/citeproc.js" type="text/javascript"></script>
<script src="path/to/citation-0.2.js" type="text/javascript"></script>

As I said, this is a bit clumsy, but should be fixed with #24, which I'll fix somewhere today or next week, I hope.

As for the CLI interface: Installing Citation.js globally with -g or --global should do the trick.

from citation.js.

LemuelCushing avatar LemuelCushing commented on June 8, 2024

Incredible, thanks! Don't know how I've missed it, felt like I scoured the docs.

And regarding the CLI - though I have a suspicion that I'm missing something small but essential in my understanding of the nodejs environment, many (but not all) of the packages I've installed globally failed to load without the .cmd file, which the npm i -g doesn't always create.
But that's neither here nor there. The point is, pretty sure I installed it globally, but I had to create a .cmd file for it to be initiated from the shell.

Thanks again, for your help and your prompt reply!
Lem

from citation.js.

larsgw avatar larsgw commented on June 8, 2024

I know what the issue with the CLI is now. I need to actually put a bin entry in the package.json. I thought it did that automatically, but I guess not. Anyway, it should be fixed in the next version, or the first patches after the next version.

from citation.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.