Git Product home page Git Product logo

codeina's Introduction

Codeína

A tool for generate beautiful api documentation for clojure and clojurescript.

This is a codox fork with various structural changes and new look.

Quick Start

Include the following plugin in your project.clj file or your global profile:

:plugins [[funcool/codeina "0.4.0"
           :exclusions [org.clojure/clojure]]]

Put the initial configuration specifying to codeina the location of your sources and the language:

:codeina {:sources ["src"]
         :reader :clojure}

And run the doc lein subcommand:

$ lein doc
Generated HTML docs in /path/to/you/project/doc

Configuration

This is a complete example that uses all available options:

:codeina {:sources ["src"]
          :exclude [cats.monad.continuation
                    cats.monad.reader
                    cats.monad.writer]
          :reader :clojure
          :target "doc/dist/latest/api"
          :src-uri "http://github.com/funcool/cats/blob/master/"
          :src-uri-prefix "#L"}

And this is a detailed explanation of possible options:

  • :sources → is a vector of paths that should be analized for extract the docstrings.

  • :reader → is a reader that should be used. Can be :clojure and :clojurescript.

  • :exclude → is a vector of namespace symbols that should be excluded.

  • :target → the directory when the documentation should be generated.

  • :src-uri → the base uri for the source code location.

  • :src-uri-prefix → additional uri prefix.

Additionally to that configuration options, the codeina interprets the metadata attached to the code, then, you can granulary exclude some functions from the documentation using ^:no-doc metadata on the function or in entire namespace.

Also, you can use the ^:deprecated metadata for mark visually in the documentation that a function is deprecated.

codeina's People

Contributors

niwinz avatar bensu avatar pepegar avatar orthographic-pedant 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.