anadian / extract-documentation-comments Goto Github PK
View Code? Open in Web Editor NEWSimply extract documentation comments from a source file.
License: MIT License
Simply extract documentation comments from a source file.
License: MIT License
I was trying to use your library via npx on one of my routes for inline documentation on params and returns. I was getting an error so i mad ea test doc to run against and still l get an error.
test.js
/** Some test documentation things */
command
npx extract-documentation-comments -n -v -I test.js
output in console
npx: installed 65 in 9.722s
note: MainExecutionFunction: Logger: console_stderr transport log level set to: debug
debug: MainExecutionFunction: Soft error: Error: Cannot find module '/home/goofballtech/.npm/_npx/2608/lib/node_modules/extract-documentation-comments/source/package.json'
Require stack:
- /home/goofballtech/.npm/_npx/2608/lib/node_modules/extract-documentation-comments/source/main.js
debug: main_Async: received: [object Object]
info: main_Async: Reading input from a file.
debug: main_Async: options.input: 'test.js'
debug: getDocumentationStringFromSourceString: received: /** Some test documentation things */
,[object Object]
debug: getDocumentationStringFromSourceString: matches:
debug: getDocumentationStringFromSourceString: returned:
error: main_Async: "output_string" is either null or not a string.
crit: main_Async: "output_string" is either null or not a string.
debug: MainExecutionFunction: End of execution block.
I can only assume that Object to string parse is throwing something off. It looks like the contents of the file are making it into the function fine. I got similar results with the full route file. The contents were displayed and it ended with the same error. I also tried different options in place of -n. Same with each i attempted.
I'm using this library to automatically generate markdown documentation updating a static web site every time I deploy my application. It works great. However, when the documentation block has one or more accent marks the all block is ignored.
Example:
Input:
/**
## Some title
Parámetros
*/
void main(args[]){
}
/**
## Another title
Parameters
*/
--> In this case the letter a
in "Parámetros" has an accent mark
Output:
## Another title
Parameters
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.