Giter Site home page Giter Site logo

lfe-rebar3 / lodox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quasiquoting/lodox

3.0 3.0 2.0 1.1 MB

Like Codox for LFE.

Home Page: http://lfe-rebar3.github.io/lodox/

License: MIT License

Erlang 78.12% CSS 15.44% JavaScript 6.17% Makefile 0.27%

lodox's People

Contributors

oubiwann avatar yurrriq avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

yurrriq erlanger

lodox's Issues

Compile includes and parse their LDoc chunks

Prepend something like:

(defmodule {{filename}}
  (export all)
  (export-macro all)) ; may have to parse forms for this

and pass '[return binary] to lfe_comp:file/2. See bin/lfedoc for more tricks.

Combine apps in umbrella projects

In projects that have more than one app, e.g. /apps/*, we should generate a monolithic doc set, at least optionally. This would also require a configurable top-level output-path. (We have that already)

Discuss HTML template

Previously, we were generating HTML very similar to the output of Codox, but with the EDoc rewrite, we have an opportunity to change that. Does anyone have any suggestions or examples of HTML docs they prefer?

Add CONTRIBUTING.md

It would be great to get more people involved and we ought to have a little description of how that should go.

Rethink links

With the changes proposed in #31, we'll have to jump through additional hoops to get Wikilinks handled correctly. Perhaps it would be better to adopt the {@link ...} convention. Same goes for `code` vs `code'. Perhaps we can take some cues from edown wrt rendering and {in,ex}ternal link resolution. Edown may help inform the solution to #16 as well.

Write tests

Over the course of development, a number of weird bugs have popped up, especially wrt HTML output. We should have tests to catch them.

Handle macro-generated functions

Now that macros are getting more meta, we should probably somehow parse defuns that are generated by macros at compile time. @rvirding, could you remind me of the option to pass to the compiler to return the macro expanded forms?

Use EDoc format internally

Right now we use a custom internal state based heavily on lfe_doc_v1 records. It might be worthwhile to adopt the EDoc record format.

Related:

  • OLP releases (lfe/olp#1)
  • Generate docs from Erlang source (#31)

is this dead?

Is this not maintained anymore? It doesn't work with any new version of lfe. (e.g. lfe 1.3)

Use proplists instead of maps

This will enable support for older OTP releases. Now that the hard work is done by lfe_doc, this should be no big deal.

  • Replace maps with proplists
  • Fix tests (specifically 17.1)
  • Update docstrings
  • Update README.md
  • Update .travis.yml

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.