dartbook 1.2.1 copy "dartbook: ^1.2.1" to clipboard
dartbook: ^1.2.1 copied to clipboard

A dart implementation of gitbook-cli for guys who loves writing.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate dartbook

Use it

The package has the following executables:

$ dartbook
$ dartbook-diff

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dartbook

With Flutter:

 $ flutter pub add dartbook

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dartbook: ^1.2.1

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dartbook/cli/context.dart';
import 'package:dartbook/cli/generator.dart';
import 'package:dartbook/cli/io.dart';
import 'package:dartbook/cli/logger.dart';
import 'package:dartbook/cli/modifiers.dart';
import 'package:dartbook/cli/output.dart';
import 'package:dartbook/cli/parser.dart';
import 'package:dartbook/cli/src/default.dart';
import 'package:dartbook/cli/src/jinja_template.dart';
import 'package:dartbook/cli/template/template_engine.dart';
import 'package:dartbook/cli/template/template_loader.dart';
import 'package:dartbook/cli/theme_manager.dart';
import 'package:dartbook/cli/utils.dart';
import 'package:dartbook/html/html.dart';
import 'package:dartbook/models/article.dart';
import 'package:dartbook/models/book.dart';
import 'package:dartbook/models/config.dart';
import 'package:dartbook/models/const/config.dart';
import 'package:dartbook/models/const/config_default.dart';
import 'package:dartbook/models/const/exts.dart';
import 'package:dartbook/models/const/ignore.dart';
import 'package:dartbook/models/glossary.dart';
import 'package:dartbook/models/ignore.dart';
import 'package:dartbook/models/language.dart';
import 'package:dartbook/models/page.dart';
import 'package:dartbook/models/parser.dart';
import 'package:dartbook/models/part.dart';
import 'package:dartbook/models/readme.dart';
import 'package:dartbook/models/summary.dart';
import 'package:dartbook/models/utils.dart';
2
likes
160
points
34
downloads

Publisher

unverified uploader

Weekly Downloads

A dart implementation of gitbook-cli for guys who loves writing.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

args, collection, dartbook_theme_default, diff_match_patch, glob, html, jinja, json_schema, markdown, path, shelf, shelf_static

More

Packages that depend on dartbook