-
Notifications
You must be signed in to change notification settings - Fork 123
Doc streamline #875
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
Doc streamline #875
Conversation
- In docs/api/cmd.rst, the `cmd2.Cmd` class was defined as `cmd2.cmd2.Cmd`, which required the extraneous `cmd2` every time we referenced it. This extra `cmd2` is no longer required. - always refer to a bare cmd2 using ``cmd2`` per our documentation conventions
# Conflicts: # docs/features/settings.rst
# Conflicts: # docs/features/settings.rst
…into doc_streamline # Conflicts: # docs/features/settings.rst
Codecov Report
@@ Coverage Diff @@
## master #875 +/- ##
==========================================
+ Coverage 97.37% 97.39% +0.01%
==========================================
Files 14 14
Lines 3580 3602 +22
==========================================
+ Hits 3486 3508 +22
Misses 94 94
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work making the documentation more internally consistent and clearer.
@@ -1,9 +1,11 @@ | |||
cmd2.Cmd | |||
======== | |||
|
|||
.. autoclass:: cmd2.cmd2.Cmd | |||
.. autoclass:: cmd2.Cmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not having to type cmd2.cmd2
everywhere is so much nicer. Thanks!
Python built-in print function. | ||
|
||
2. Reference the full dotted path to the method, but only display the method | ||
name:: | ||
|
||
The :meth:`~cmd2.cmd2.Cmd.poutput` method is similar to the Python built-in print function. | ||
The :meth:`~cmd2.Cmd.poutput` method is similar to the Python built-in print function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just curious, what does starting with a ~
do when using :meth:
? Sometimes I see the tilde and others I don't.
@@ -149,7 +149,7 @@ single or double quotes):: | |||
(Cmd) | |||
|
|||
Automating cmd2 apps from other CLI/CLU tools | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason you are extending past the text above? (applies to next file below too)
I'm going to merge this since it looks good. |
It used to be that to reference code in the documentation you had to do something like:
which just looks ugly. I fixed that so you can do:
Progress for #765