Skip to content
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

Documentation #32

Closed
dpo opened this issue Aug 3, 2015 · 11 comments
Closed

Documentation #32

dpo opened this issue Aug 3, 2015 · 11 comments
Milestone

Comments

@dpo
Copy link
Member

dpo commented Aug 3, 2015

Just a thought. I wonder if the documentation for the core interface functions could be the contents of the corresponding man page. For example help(usetup) would display the result of man cutest_usetup. Is that possible?

@abelsiqueira
Copy link
Member

Since the man pages are in $CUTEST/man/man3, this will be very easy to add to the script. I started to read the Docile and Lexicon documentation, so I'll implement this soon.

@dpo
Copy link
Member Author

dpo commented Aug 3, 2015

Great! Thanks!

@abelsiqueira
Copy link
Member

Converting the man page to plain text was a little more troublesome than anticipated, if you know of a better way, please let me know. f1950c8 shows what I managed to do.

@dpo
Copy link
Member Author

dpo commented Aug 4, 2015

I thought it might be possible to set the contents of a docstring to the result of the command man cutest_usetup.

@dpo
Copy link
Member Author

dpo commented Aug 4, 2015

For example at the Julia command line, I can hit ; and do

shell> man cutest_usetup

Could we get help(usetup) to perform the same operation?

@abelsiqueira
Copy link
Member

I will check if that's possible, but we need to consider the documentation for the specialized interface too, because they share the name now.

@abelsiqueira
Copy link
Member

The best I could reach was

@doc :(run(`man ls`)) foo

But I can't run that. Do you think we should ask in julia-users?

@dpo
Copy link
Member Author

dpo commented Aug 4, 2015

Maybe it's not possible. Perhaps the docstring could just recommend that the user run the shell command man cutest_$(function_name) to learn more.

@abelsiqueira
Copy link
Member

That's good

@abelsiqueira
Copy link
Member

I implemented your suggestion along with a basic usage and parameter list in f82c0e5.
I will try to grab some info from the man file from python before PRing.

@abelsiqueira abelsiqueira modified the milestone: Announcement release Aug 11, 2015
@abelsiqueira abelsiqueira mentioned this issue Aug 11, 2015
9 tasks
@abelsiqueira
Copy link
Member

Implemented by #36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants