stoic 0.1.0 copy "stoic: ^0.1.0" to clipboard
stoic: ^0.1.0 copied to clipboard

Dart 1 only

Stoic is a minimal, static-site generator for dart libraries.

stoic #

Stoic is a minimal, static-site generator for dart libraries.

Setup #

First make sure stoic is in your pubspec.yaml as a dev dependency, with the transformer active

dev_dependencies:
stoic:
git:
  ref: master
  url: https://github.com/ppvk/stoic.git
transformers:
- stoic

Then add an empty config.json to your /web directory. At the moment this is simply a target for the generated files, and in the future it will assist in configuring the transformer.

documentation markdown files go in /docs

Do a pub build

Enjoy your generated site in the build/web directory.

Optionally add to your /web:

  • an overriding style.css
  • an image called logo.svg
  • an image called splash.svg

##Pushing to Github Pages To publish your generated site to Github pages, run

pub run stoic:push

This will automatically create a commit to the gh-pages branch with nothing but the generated files.

You'll get a preview of what files will be pushed, and then prompted for your Github credentials.

0
likes
25
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Stoic is a minimal, static-site generator for dart libraries.

Homepage

License

MIT (license)

Dependencies

html, markdown

More

Packages that depend on stoic