Re: asciidoc documentation asks me to add some entry in my project’s Gemfile. What is it?
Posted by
mojavelinux on
Jul 18, 2019; 10:10am
URL: https://discuss.asciidoctor.org/asciidoc-documentation-asks-me-to-add-some-entry-in-my-project-s-Gemfile-What-is-it-tp6998p6999.html
If you don't know what a Gemfile is, then you don't need it. It's for use cases when Asciidoctor is used in a Ruby project that is managed by Bundler.
If you are running Asciidoctor standalone, then you'll want to install the gem directly.
gem install asciidoctor-diagram
In order to have a proper Ruby and RubyGem environment, I strongly recommend using RVM. See
https://rvm.io RVM creates a workspace in your home directory to install Ruby. (There are other options like chruby and rbenv).
Best,
-Dan
On Thu, Jul 18, 2019 at 4:02 AM lalebarde [via Asciidoctor :: Discussion] <
[hidden email]> wrote:
I need diagrams in asciidoc, then I have installed asciidoctor-diagram as explained here. Then, the documentation requires:
You can install the Asciidoctor Diagram gem by typing gem install in the CLI.
$ gem install asciidoctor-diagram
by first adding the following entry to your project’s Gemfile.
Gemfile
gem 'asciidoctor-diagram'
Then execute bundle in the CLI.
$ bundle
But I have only an asciidoc file, what is this "project's Gemfile" I am supposed to have?
Needless to say I don't know ruby.
--