Fix documentation - remove extra periods between paragraphs#460
Fix documentation - remove extra periods between paragraphs#460
Conversation
There was a problem hiding this comment.
@DailyDreaming added the periods which was an artifact of some changes that fixed the way help text was displayed (this can be confirmed by digging through the git history). Compare the help diffs with and without them
...
Files are always downloaded to a cache / filestore directory called '.hca'. This directory is created in the
current directory where download is initiated. A copy of the manifest used is also written to the current
directory. This manifest has an added column that lists the paths of the files within the '.hca' filestore.
.
The default layout is none. In this layout all of the files are downloaded to the filestore and the
recommended way of accessing the files in by parsing the manifest copy that's written to the download
directory.
.
The bundle layout still downloads all of files to the filestore. For each bundle mentioned in the
manifest a directory is created. All relevant metadata files for each bundle are linked into these
directories in addition to relevant data files mentioned in the manifest.
.
Each row in the manifest represents one file in DSS. The manifest must have a header row. The header row
must declare the following columns.
.
bundle_uuid - the UUID of the bundle containing the file in DSS.
bundle_version - the version of the bundle containing the file in DSS.
file_name - the name of the file as specified in the bundle.
file_uuid - the UUID of the file in the DSS.
file_sha256 - the SHA-256 hash of the file.
file_size - the size of the file.
.
The TSV may have additional columns. Those columns will be ignored. The ordering of the columns is
insignificant because the TSV is required to have a header row.
.
This download format will serve as the main storage format for downloaded files. If a user specifies a different
format for download (coming in the future) the files will first be downloaded in this format, then hard-linked
to the user's preferred format.
...
vs
...
Files are always downloaded to a cache / filestore directory called '.hca'. This directory is created in the
current directory where download is initiated. A copy of the manifest used is also written to the current
directory. This manifest has an added column that lists the paths of the files within the '.hca' filestore.
The default layout is none. In this layout all of the files are downloaded to the filestore and the
recommended way of accessing the files in by parsing the manifest copy that's written to the download
directory.
The bundle layout still downloads all of files to the filestore. For each bundle mentioned in the
manifest a directory is created. All relevant metadata files for each bundle are linked into these
directories in addition to relevant data files mentioned in the manifest.
Each row in the manifest represents one file in DSS. The manifest must have a header row. The header row
must declare the following columns:
bundle_uuid - the UUID of the bundle containing the file in DSS.
bundle_version - the version of the bundle containing the file in DSS.
file_name - the name of the file as specified in the bundle.
file_uuid - the UUID of the file in the DSS.
file_sha256 - the SHA-256 hash of the file.
file_size - the size of the file.
The TSV may have additional columns. Those columns will be ignored. The ordering of the columns is
insignificant because the TSV is required to have a header row.
This download format will serve as the main storage format for downloaded files. If a user specifies a different
format for download (coming in the future) the files will first be downloaded in this format, then hard-linked
to the user's preferred format.
...
I'm not really sure what the best resolution is. Either add this fix and reopen the ticket about the misformatted --help message, abandon this change, or find a fix for both.
|
@jessebrennan by "the way the help text is displayed" do you mean the help printed on the command line? (Is that what you pasted above?) This PR addresses an issue with the sphinx documentation. IMHO the |
|
@chmreid, sorry yes I should have been more clear. If you run You will see the formatting of the output is messed up by your change.
I don't understand what you are saying here. |
|
To clarify what I was asking: I'm looking in the same file that I modified in this PR, and looking at the function Lines 202 to 233 in 7213d95 That docstring is formatted exactly the same way as my new proposed/changed docstring. So I was wondering askingif using the command line interface with the To try and answer this question, I ran the is rendered (via Note the missing two newlines. If I add a bullet list to the docstring, like so: here is the corresponding output (via So, the docstrings are being formatted using a kind of quasi-ReST (restructured text) so that Sphinx can interpret it and turn it into nice fancy HTML. But the command line Will keep looking into this to see if there is a solution that works for both. Ultimately whatever the |
|
passing a I will add that change in a separate pull request, and then we can merge this PR if/when the formatter class is changed so that both sphinx and the CLI |
There was a problem hiding this comment.
Great! I don't think the --help stuff has to be blocking this PR. I think it's totally reasonable to merge this, and make a new ticket to address the --help output formatting.
Also for reference, here's the original PR that created those changes #395
edit: although I wouldn't consider my review sufficient approval to merge; you may want a PL to take a look.
Codecov Report
@@ Coverage Diff @@
## master #460 +/- ##
==========================================
+ Coverage 85.35% 85.42% +0.07%
==========================================
Files 41 41
Lines 1864 1873 +9
==========================================
+ Hits 1591 1600 +9
Misses 273 273
Continue to review full report at Codecov.
|
|
Looking into this more, in This But the To resolve this, I wrote a function called |
d2e1360 to
7c926f5
Compare
7c926f5 to
76391fd
Compare
|
Rebasing onto master |
This will address one of the items brought up in issue #443
The documentation has a paragraph with stray commas everywhere, this fixes the problem