-
Notifications
You must be signed in to change notification settings - Fork 0
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
Formatting within the using_commands documentation does not appear correct #323
Comments
In GitLab by [Gitlab user @tristanvb] on Mar 27, 2018, 12:02 Please check if this is not a duplicate of an existing issue. Note that the upstream issue I filed when discovering this is here |
In GitLab by [Gitlab user @jennis] on Mar 27, 2018, 13:55 It does not seem to be a duplicate of any existing issues. However, it is similar to #8. Please let me know if you disagree. |
In GitLab by [Gitlab user @tristanvb] on Mar 28, 2018, 04:25 I should also point out another related issue, the same problem happens in man page generation |
In GitLab by [Gitlab user @tristanvb] on Mar 28, 2018, 04:26
This is a different issue from #8, which is mostly regarding streamlining of our own build process. |
In GitLab by [Gitlab user @jennis] on Jun 21, 2018, 17:08 changed the description |
In GitLab by [Gitlab user @jennis] on Jun 21, 2018, 17:09 changed the description |
In GitLab by [Gitlab user @jennis] on Jun 21, 2018, 17:10 changed the description |
In GitLab by [Gitlab user @jennis] on Jun 21, 2018, 17:12 changed the description |
In GitLab by [Gitlab user @jennis] on Jun 21, 2018, 17:16 changed title from Formatting within the {-invoking-} documentation does not appear correct to Formatting within the {+usign_commands+} documentation does not appear correct |
In GitLab by [Gitlab user @danielsilverstone-ct] on Sep 13, 2018, 16:41 changed title from Formatting within the usi{-gn-}_commands documentation does not appear correct to Formatting within the usi{+ng+}_commands documentation does not appear correct |
In GitLab by [Gitlab user @knownexus] on Oct 2, 2018, 10:36 I have replied to the isue that [Gitlab user @tristanvb] raised and have made a pull request for my fix |
In GitLab by [Gitlab user @LaurenceUrhegyi] on Oct 24, 2018, 16:50 removed milestone |
In GitLab by [Gitlab user @cs-shadow] on Feb 21, 2020, 22:25 It is worth noting that (1) and (2) are now fixed. (1) because we don't have any such options that have different names than the CLI options. (2) because the upstream issue is now fixed and we now see our lists correctly. |
In GitLab by [Gitlab user @cs-shadow] on Feb 21, 2020, 23:31 Reg. (3) - titles are not generated correctly - this is actually a limitation of Sphinx where sections are not allowed within docstrings. See https://sphinx-dev.narkive.com/7rqrxjgL/headings-in-docstrings for some related discussion. We can make the word The underline for FORMAT at least appears on a new line now so it doesn't look as bad as in the original bug report. But, I don't think there's an easy way to make both the CLI help text and the generated html look good at the moment. |
In GitLab by [Gitlab user @cs-shadow] on Feb 22, 2020, 18:23 mentioned in commit e624b2d791ee16e0a0a14c643904c3c0a4bad50c |
In GitLab by [Gitlab user @cs-shadow] on Feb 22, 2020, 18:25 mentioned in merge request !1824 |
In GitLab by [Gitlab user @cs-shadow] on Mar 4, 2020, 15:51 mentioned in commit 8edf482 |
In GitLab by [Gitlab user @cs-shadow] on Mar 4, 2020, 16:51 closed via merge request !1824 |
In GitLab by [Gitlab user @cs-shadow] on Mar 4, 2020, 16:51 mentioned in commit 71179f8 |
See original issue on GitLab
In GitLab by [Gitlab user @jennis] on Mar 27, 2018, 11:20
Overview
Here is the documentation for using BuildStream commands: https://buildstream.gitlab.io/buildstream/using_commands.html
This page is created using the sphinx-click plugin which automatically generates documentation. However, command option lists are not displaying on the webpage in the way one would expect.
Important remark
Note that fixing (most of) this will require an upstream patch.
Problems
Command options that take option arguments are not sensibly named, e.g. The
bst build --track
option shows:Because of the way it is defined here: https://gitlab.com/BuildStream/buildstream/blob/master/buildstream/_frontend/cli.py#L173
Preferably, this should show:
--track <element>
And there are many instances of this throughout the using_commands documentation.
Lists within
[[Gitlab user @click]](https://gitlab.com/click).pass_obj()
are not being converted properly when using the \b flag.One example is for the
bst fetch
command: https://gitlab.com/BuildStream/buildstream/blob/master/buildstream/_frontend/cli.py#L242Which generates the following documentation:
Notice how the list has not been generated correctly.
Titles are not being generated correctly
One example is for the
bst show
command documentation: https://gitlab.com/BuildStream/buildstream/blob/master/buildstream/_frontend/cli.py#L411Which has rendered like so:
The text was updated successfully, but these errors were encountered: