Giter VIP home page Giter VIP logo

lein-margauto's Introduction

lein-margauto

Leiningen Plugin for Marginalia that watches your source directories for changes to your clojure source files and rebuilds the Marginalia documentation whenever you update your source code.

Installation

Add to your project.clj:

:plugins [...
           [com.github.tranchis/lein-margauto "1.0.14"]
         ]

Usage

lein margauto [some/path/dir]

Open uberdoc.html from the path you set up, or from docs/ by default. Refresh as you make changes to see the updates.

Configuration

    (defproject my-project "1.0.0"
      ...
      :margauto {
        :src-dirs    ["src" "test"]
        :sleep-time  1000
        :target-dir  "resources/public"})

:src-dirs

By default lein-margauto only searches src/ for files that end in .clj. You can change this behavior by setting :src-dirs to a vector of directories to search.

:sleep-time

lein-margauto uses a brute force appraoch to detecting changes in your sources. It performs a recursive search through the :src-dirs rebuilding when it sees a change. :sleep-time controls how long lein-margauto will pause before checking the directory structure again.

The default is 1000 ms (1 second).

:target-dir

The relative path where the uberdoc.html file will be generated.

License

Copyright (C) 2011 Kyle R. Burton [email protected] (C) 2013 Sergio Alvarez-Napagao [email protected]

Distributed under the Eclipse Public License, the same as Clojure.

lein-margauto's People

Contributors

tranchis avatar

Watchers

 avatar

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.