-
Notifications
You must be signed in to change notification settings - Fork 486
Is require-following a good idea? #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It's been a valuable feature for documenting mapbox-gl-js, and the points you list sound like the kinds of difficult implementation details that I'm appreciative of one project solving so lots of people don't have to reinvent. |
I'm in favor of simplifying if we don't lose too much. In the |
Hmm, yeah -- it's true that I've sorta instinctively liked the |
Okay: I think fork the time being let's stick with following module deps. There's some benefit, not a mind-blowing amount, but the cost of refactoring it away is likely more than the benefit of removing it right now. |
Would be nice this supported both resolving from an entry as well as specifying a directory. I would like the flexibility of providing a glob over using an entry. Especially as some of my projects have multiple entry points. |
For the time being, |
@tmcw do you mean |
Er yeah, sorry - |
As a new documentation user, I'm having trouble getting a simple, recursive scan to work: documentation --polyglot --shallow ~/xdev/bucket/platform/coreapp/platform/src/javascript/console/* -o ~/xdev/bucket/platform/coreapp/platform/doc/ -f html I think that should run a recursive, simple scan of everything in the ..../console directory and pump it out to the .../doc directory in html. But I get this: http://puu.sh/p5C5Q/264a66ac73.png Bug or user error? (I think I know which :D ) |
Hi @jangla! Two things about that example - Since the shell command you're calling doesn't include ~/xdev/bucket/platform/coreapp/platform/src/javascript/console/* This will list files and directories in console, but won't list them recursively - you can test this out by running ls ~/xdev/bucket/platform/coreapp/platform/src/javascript/console/* If you'd like to use shallow recursively, you can use a recursive glob, like documentation build --polyglot --shallow ~/xdev/bucket/platform/coreapp/platform/src/javascript/console/**/.js -o ~/xdev/bucket/platform/coreapp/platform/doc/ -f html
`` |
Hi @tmcw That doesn't work, I assume because:
isn't correct. Calling:
Yields nothing: http://puu.sh/p6HtO/b08b11f594.png Calling:
does list all the js files. However, placing that in the call to documentationjs just yields this: http://puu.sh/p6HCb/a4c7292298.png I'm using documentation v3.0.4 P.S. Sorry for the thread hijack - just trying to get this to work as it seems a better fit for us than straight JSDoc :) |
cc @anandthakker @jfirebaugh @beaugunderson
Been thinking over #340 #132 and #140 and have been thinking: is require-following useful? One of the main things that led me to work on documentation in the first place is the usage of module-deps to find all included source code and document it. But is this actually a useful approach? I think we're seeing some downsides:
This is all making me reconsider whether we don't want to support a simple non-require-following recursive-find-the-files API. Thoughts?
The text was updated successfully, but these errors were encountered: