-
Notifications
You must be signed in to change notification settings - Fork 4
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
Option for destination directory? #41
Comments
Well, I said |
This will be included in the configuration revamp. For now it's called Thanks for these questions, suggestions and bug reports. Keep them coming! |
Should lodox output be versioned too? For now it's not and I guess with that you can change We do have access to Thoughts? |
I was kinda of bummed when Slate didn't offer versioned docs. But after thinking about it, I realized (duh) that a bit of a manual process, as you say, helped me get around that (which I codified in I've now gotten used to that for Slate, so I'd just assumed I'd do that with lodox. If you are interested in adding support for versioned docs, I'd probably be +1 on that :-) Though I'd almost certainly want flags for that capability so that my Also, I'd probably stay away from module-level Thinking about this more ... a workflow might go like this
That probably outlines my approach. If that's what was done, then I'll I'd ever need to do is simply run You'd probably want to provide a If all this is too much for right now, I'm totally cool adapting the |
Ah, by These are all great ideas. I guess I'll want to break them up into smaller tasks and try to chip away at them. |
Re: module-level |
You can do this now in develop: {lodox,
[{apps,
[{yourproject,
[{'source-uri',
"https://github.com/username/yourproject/blob/{version}/{filepath}#L{line}"},
{'output-path', "relative/path/to/output"}]}]}]}. where |
Also bump to 0.12.2 and update documentation. This commit should resolve #43 and also address #41. Still needed is some better documentation about how to configure Lodox. Pandex: https://github.com/FilterKaapi/pandex
I tried doing this in a new project: and ran across a few speedbumps. First, I misinterpreted the example above -- I didn't realize that the {lodox,
[{apps,
[{yourproject,
[{'source-uri',
"https://github.com/username/yourproject/blob/{version}/{filepath}#L{line}"},
{'output-path', "relative/path/to/output"}]}]}]}. Second, I didn't realize that if the parent directory of the source dir didn't exist, lodox would silently fail to create the docs :-( (no docs, but no error message either). I've added a dependency With those two out of the way, though, this feature is looking great! Thanks! |
Thanks for clarifying the example. I've updated mine above too to avoid confusion. I've been dogfooding Lodox, so that example makes sense to me and likely no one else. Actually, I'm not sure I understand what you mean when you say "if the parent directory of the source dir didn't exist." Wait, after reading about your I'm using
I'll figure out a solution and close #53. Thanks again for your insightful feedback. |
Is there a way to override the default destination directory?
If not, may I suggest updating the plugin to support something like
rebar3 lfe lodox --output=some/path
?Here's my use case for several LFE projects:
./docs
./docs/build/user-guide
./docs/build/api
./docs/build/index.html
file which links to both, and./docs/build
dir will get deployed to thegh-pages
branch on Github for the given projectOnce I can override the lodox output directory, I'll be able to start using for these projects :-)
The text was updated successfully, but these errors were encountered: