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

Add documentation #2

Merged
merged 10 commits into from
Jan 15, 2018
Merged

Add documentation #2

merged 10 commits into from
Jan 15, 2018

Conversation

LeoFrachet
Copy link
Contributor

No description provided.

@LeoFrachet LeoFrachet changed the title Add documentation Add documentation [Draft for feedback. Do not merge] Jan 12, 2018
gtfs.js Outdated
*
* @param {Array<Object>} items Array of item to add to the GTFS.
* @param {string} tableName Name of the table of the GTFS in which the objects should be added.
* @param {Object} gtfs GTFS object in which to add the items.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't usually you want the object you are modifying to be the first instead of last? If you don't have an actual gifts object (sorry this is not really related to documentation).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol oops, this is @gcamp

gtfs.js Outdated
/**
* Table-generic function to add items in a table of a GTFS.
*
* @param {Array<Object>} items Array of item to add to the GTFS.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

items*

gtfs.js Outdated
* Table-generic function to get an indexed table of a GTFS. The indexation depends of the table, and is defined in
* the schema (If possible, it is the unique id).
*
* @param {string} tableName Name of the table of the GTFS to get.
Copy link

@annaelleduff annaelleduff Jan 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will it work if the table name is invalid?

gtfs.js Outdated
@@ -35,6 +43,16 @@ function addItems(items, tableName, gtfs) {
}
}

/**
* Table-generic function to get an indexed table of a GTFS. The indexation depends of the table, and is defined in
* the schema (If possible, it is the unique id).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what schema?

gtfs.js Outdated
* Table-generic function to add items in a table of a GTFS.
*
* @param {Array<Object>} items Array of item to add to the GTFS.
* @param {string} tableName Name of the table of the GTFS in which the objects should be added.
Copy link

@annaelleduff annaelleduff Jan 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will it work if the name of the table is not valid?

gtfs.js Outdated
/**
* Constructor of the GTFS
*
* @param {string} path Path to the folder contains the GTFS text files.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path to the folder that contains the GTFS...?

gtfs.js Outdated
* Constructor of the GTFS
*
* @param {string} path Path to the folder contains the GTFS text files.
* @param {Object|undefined} regexPatternObjectsByTableName Optional ad-hoc regex to fix the tables. See importTable.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to fix how? see what about importTable ?

gtfs.js Outdated
/**
* Async function exporting the GTFS at a specific path.
*
* @param {string} path Path to the folder which will contains the GTFS. The folder will be created if needed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

contain*

@LeoFrachet LeoFrachet changed the title Add documentation [Draft for feedback. Do not merge] Add documentation Jan 15, 2018
*
* @param {Gtfs} gtfs The GTFS in which to import the table.
* @param {string} tableName The table of the name to import.
* @param {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this work? (does webstorm parse it / did you try to validate it against a jsdoc validator?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

webstorm does parse it, and give advices based on that. Indeed GitHub seems to not like it.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect

@LeoFrachet LeoFrachet merged commit ffcbbb7 into master Jan 15, 2018
@LeoFrachet LeoFrachet deleted the feature/add-documentation branch January 15, 2018 18:23
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

Successfully merging this pull request may close these issues.

4 participants