JoshBrudnak / Lojidoc

A tool for generating markdown documentation for java projects
https://joshbrudnak.github.io/Lojidoc
Apache License 2.0
7 stars 7 forks source link

Add example generated docs #5

Open JoshBrudnak opened 5 years ago

JoshBrudnak commented 5 years ago

Use lojidoc to generate documentation for use as an example of what lojidoc output looks like. Then add a brief description and link to the generated documentation to the readme.

The generated documentation should be put in the examples directory.

jdemieville commented 5 years ago

I can do this!

jdemieville commented 5 years ago

I am getting an error when I run lojidoc. It says that it is generating documentation from the appropriate file, then "Keyword not supported: this" pops up 8 times followed by "thread '' panicked at 'called Result::unwrap() on an Err value: Os { code: 123, kind: Other, message: "The filename, directory name, or volume label syntax is incorrect." }', libcore\result.rs:945:5.

jdemieville commented 5 years ago

There is a note: Run with RUST_BACKTRACE=1 for a backtrace. It does make the appropriate folder with no file within if I use -d, and by using -b it generates a markdown book with a chapter_1.md file with only one line "# Chapter 1"

JoshBrudnak commented 5 years ago

What command and OS are you using to run lojidoc? So far it has only been tested on Linux.

jdemieville commented 5 years ago

Ah, I see. I am using Windows OS so that could be the problem. I have been using the example usage from the readme with the appropriate path and repository URL lojidoc [Project_Path] -c [repository URL] -d docs/

jdemieville commented 5 years ago

It will flag if the directory is wrong with either incorrect file path or no java files found, depending on which is wrong. It is also making the markdown file or the doc folder (depending on which flag I've selected), so that seems to be working correctly. Could it be a consequence of my java program? The folder contains 4 java files, the main class and 3 other classes.

JoshBrudnak commented 5 years ago

No that shouldn't be the issue as long as your java syntax is correct. Is there any indication where in the application it is crashing (My guess would be during the file IO)? I would test it too but I don't have access to a windows computer right now :sob:

jdemieville commented 5 years ago

Here's the repository of the java program I was attempting to run: https://github.com/jdemieville/SherwoodVersusBinary

Maybe see if you can get it to work with this program on Linux. If not, it would be my program and I can test it with one of the java programs that you know it works with!

I tried to run the rust backtrace it suggested, but it said the command was invalid. I was probably using it wrong!

JoshBrudnak commented 5 years ago

¯\(ツ)lojidoc

jdemieville commented 5 years ago

Ok, so it is either an operating system issue or I have done the commands incorrectly. When I get home, I will mimic the command that you used!

jdemieville commented 5 years ago

I ran the same commands an am getting the same error:

Generating documentation from SherwoodVersusBinary/src/

Keyword not supported: this Keyword not supported: this Keyword not supported: this Keyword not supported: this Keyword not supported: this Keyword not supported: this Keyword not supported: this Keyword not supported: this thread '' panicked at 'called Result::unwrap() on an Err value: Os { code: 123, kind: Other, message: "The filename, directory name, or volume label syntax is incorrect." }', libcore\result.rs:945:5 note: Run with RUST_BACKTRACE=1 for a backtrace.

Documentation finished. Generated 4 markdown files.

jdemieville commented 5 years ago

Sorry I can't get this example up for you! It's a cool concept!