tota 0.6.0

Tota #

Tota is a simple and elegant static-site generator, written in Dart. Great for personal websites, side-projects, blogs, documentation, and more.

Install #

Pre-requisites: #

Then, activate the package globally:

pub global activate tota

Quick start #

Setup your site #

mkdir -p blog && cd blog
tota init

Create a new post #

tota new "Hello, world!"
vim pages/hello-world.md

Generate static files #

tota build

Deploy site #

tota deploy

See --help for usage information.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.6.0] - 2019-07-16

Added #

  • Fallback mechanism for loading templates.

[0.5.0] - 2019-07-12

Added #

  • Command to deploy to Netlify.

[0.4.0] - 2019-06-29

Added #

  • Date format to config.
  • Site config to template locals.
  • Ability to omit template file extension.
  • Posts and tags archive page generation.

[0.3.0] - 2019-06-21

Added #

  • Directory for non-page static assets.

Removed #

  • Deploy flag -d from build command.

[0.2.0] - 2019-06-21

Added #

  • Command to initialize a new project.

Changed #

  • Use environment variables (dotenv) for config instead of YAML file.

[0.1.0] - 2019-06-17

Added #

  • Command to create a new page from a title.
  • Command to generate pages in a source directory.

example/example.md

Install #

Activate the package globally:

pub global activate tota

Quick start #

Setup your site #

mkdir blog && cd blog
tota init

Create a new post #

tota new "Hello, world!"
vim pages/hello-world.md

Generate static files #

tota build

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate tota

2. Use it

The package has the following executables:


$ tota

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  tota: ^0.6.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:tota/tota.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Jul 17, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.4.0
  • pana: 0.12.19

Platforms

Detected platforms: other

Primary library: package:tota/tota.dart with components: io, mirrors.

Health suggestions

Fix lib/src/tota.dart. (-0.50 points)

Analysis of lib/src/tota.dart reported 1 hint:

line 74 col 5: Future results in async function bodies must be awaited or marked unawaited using package:pedantic.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
args ^1.5.2 1.5.2
cli_util ^0.1.3+2 0.1.3+2
crypto ^2.0.6 2.0.6
dotenv ^1.0.0 1.0.0
front_matter ^1.1.0 1.1.0
http ^0.12.0+2 0.12.0+2
intl ^0.15.8 0.15.8
markdown ^2.0.3 2.0.3
meta ^1.1.7 1.1.7
mustache ^1.1.1 1.1.1
path ^1.6.2 1.6.2
pool ^1.4.0 1.4.0
slugify ^1.0.0 1.0.0
Transitive dependencies
async 2.3.0
charcode 1.1.2
collection 1.14.11
convert 2.1.1
dart2_constant 1.0.2+dart2
http_parser 3.1.3
pedantic 1.8.0+1
source_span 1.5.5
stack_trace 1.9.3
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
yaml 2.1.16
Dev dependencies
test ^1.6.4

Admin