Giter Club home page Giter Club logo

dynadoc's People

Contributors

oakes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynadoc's Issues

Weird Function Definitions

I'm using Dynadoc for a project, and most of the functions work fine, but some have strange definitions i.e. for camel-snake-kebab.core, functions are documented as (->Camel_Snake_Case s__44602__auto__ & rest__44603__auto__). Is there a fix for this, or is it an issue with that dependency?

consider using spec fdef to autogenerate examples

Hey Zach,

to be honest I have never used your project but I came here since it was mentioned in an expound issue.

I checked your docs generation and they seem really nice, which made me wonder if you have considered creating examples automatically.

You are already creating docs automatically so why not the examples? ๐Ÿ˜„

With the introduction of clojure spec it is possible to "instrument" functions and through that both arguments and return values can be determined.

Since it is (generally) possible to get a generator for a clojure spec I think it should be possible to generate an example based on an instrumented function

Hope it helps

example of how this works with rum?

I'm assuming this will play nice with rum.

I wasn't able to follow the code in the defexample macro, so I'm not sure what arguments it takes in full. My example so far looks like this:

(defexample example.core/click-counter
  {:with-card card}
  (rum/mount (click-counter) card))

And on the dynadoc page, which renders fine (I'm back to using figwheen atm), it's saying "rum.mount is not a function" on the page. Which I'm not sure how to understand, as it's certainly is one according to the rum docs.

Too many namespaces in the list to explore the project organically.

If I fire up a new dynadoc I get a list of all the namespaces and it's hard to find a page that is relevant to the project. This includes clojure core and all the libs. It would be nice if there was filters for clj core, libs, and local nses.

I started the UI work on this, but I'm struggling with the ns filtering logic.

Core is easy enough to detect with patterns matching.

I'm not sure how to detect library namespaces and local.

http://clojure.github.io/tools.namespace there is some functions there that could help.

required namespace cljsjs.rangy-core is not available when invoking shadow compile method.

greetings, This I'm trying to use dynadoc from shadow-clj. I hit a snag when i try to compile the docs application which is very small

(ns docs
  (:require [tomatto.frontend.app :as app]
            ;; must require dynadoc.core so dynadoc's frontend can be built
            dynadoc.core
            [rum.core :as rum])
  (:require-macros [dynadoc.example :refer [defexample]]))




(defexample basic-deps-cljs.core/clicks
  {:with-card  card
   :with-focus (app/Text {:size "14px"} "hello")}
  ;;TODO replace with rum equivelent
  #_(reagent.core/unmount-component-at-node card)
  (rum/mount app/Text card)
  nil)

(defexample conj
  (conj [] 1))

The expression (shadow.cljs.devtools.api/compile :docs {:verbose true}) returns the error:

[:docs] Compiling ...
-> build target: :browser stage: :configure
<- build target: :browser stage: :configure (0 ms)
-> Resolving Module: :main
The required namespace "cljsjs.rangy-core" is not available, it was required by "paren_soup/core.cljs".

However if i remove the dynadoc.core require, it does compile, but it doesn't properly eval the defexamples e.g the conj example above doesn't show the result [1]. Also my card doesn't render, but that might be another issue.

If anything to try pops out at you that would be great, hopefully, I can add a shadow example to the list.

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.