Skip to content

Commit

Permalink
docs(src): docs
Browse files Browse the repository at this point in the history
update doc generation script && typo
  • Loading branch information
muhammedmoussa1 committed Aug 29, 2021
1 parent 6ae1e45 commit fc310cf
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist/*.js
.env
docs
12 changes: 12 additions & 0 deletions jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"source": {
"includePattern": ".+\\.js(doc|x)?$",
"include": ["."],
"exclude": ["node_modules"]
},
"recurseDepth": 10,
"opts": {
"destination": "./docs/",
"recurse": true
}
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"build": "webpack --config webpack.config.js --mode=production",
"dev": "npm run build && nodemon './src/paymob-marketplace'",
"commit": "git-cz",
"local:server": "nodemon './src/paymob-marketplace'"
"local:server": "nodemon './src/paymob-marketplace'",
"generate:doc": "jsdoc -c './jsdoc.json'"

},
"repository": {
"type": "git",
Expand Down
1 change: 0 additions & 1 deletion src/http/HTTPRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { requester } from "./_requester";

/**
* Wanna a request!, it's HTTPRequest class.
* @export
* @class HTTPRequest
*/
export class HTTPRequest {
Expand Down
1 change: 0 additions & 1 deletion src/intention/Intention.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { getApiBaseUrl, getApiVersion } from "../utils";

/**
* Intention operations (create, update, patch, delete, retrieve, list)
* @export
* @class Intention
*/
export class Intention {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/_getApiBaseUrl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* return current api version
* return current api domain
* @name getApiBaseUrl
* @return {*}
*/
Expand Down
2 changes: 1 addition & 1 deletion src/utils/_paymobLogger.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* paymonb logger util
* paymob logger util
* @param {string} msg
* @param {string} [level='log']
* @name paymobLogger
Expand Down

0 comments on commit fc310cf

Please sign in to comment.