[V3] User documentation #1757

Closed
laggron42 wants to merge 55 commits from userdocs into V3/develop
laggron42 commented 2018-06-01 17:51:42 +02:00 (Migrated from github.com)

Type

  • Bugfix
  • Enhancement
  • New feature

Description of the changes

This PR will add user docs for red usage, such as detailed cog guides and more... We already discussed about that on #1734

This PR is not ready yet, I will commit new docs in the future. I'm opening it now so you can see how it's going, just tell what you think about what I'm doing.

I created a quick ReadTheDocs page so you can directly see the result instead of looking at the source code. https://red-docspr.readthedocs.io/en/latest

### Type - [ ] Bugfix - [ ] Enhancement - [x] New feature ### Description of the changes This PR will add user docs for red usage, such as detailed cog guides and more... We already discussed about that on #1734 **This PR is not ready yet, I will commit new docs in the future.** I'm opening it now so you can see how it's going, just tell what you think about what I'm doing. I created a quick ReadTheDocs page so you can directly see the result instead of looking at the source code. https://red-docspr.readthedocs.io/en/latest
palmtree5 (Migrated from github.com) reviewed 2018-06-01 17:51:42 +02:00
Twentysix26 (Migrated from github.com) reviewed 2018-06-01 17:51:42 +02:00
Kowlin (Migrated from github.com) reviewed 2018-06-01 17:51:42 +02:00
mikeshardmind commented 2018-06-01 18:24:55 +02:00 (Migrated from github.com)

Overall, I think this is actually a really good start. I understand this is a work in progress, and subject to change.

A couple things I noticed:

  • I'd advise against linking to external links and guides in the docs as much as possible as we can't guarantee they stay up to date or accurate. The Digital Ocean one is unlikely to be an issue as their documentation is generally kept up to date and is well written, but linking to a gist in docs is probably not the best idea.

  • I would not be recommending Ubuntu16.04 as the default as the latest LTS release of Ubuntu is 18.04 which also includes python3.6 by default. Recommending any specific distribution over another is not necessarily something we should do as it starts being less a guide and more editorial, but if we are going to, we should be recommending the latest available long term supported version.

  • I'd also advise against calling any linux distro "easy to understand". While they may be from a developer standpoint, this is a guide which targets a lot of users who have never used a CLI before, and while it may be easy for some people, it isn't at first for everyone, and this is likely to come across as off-putting to anyone who doesn't find it easy.

  • There are a few grammatical errors which are quickly noticeable reading through which should be handled before merge, but I understand this is still a work in progress.

Overall, I think this is actually a really good start. I understand this is a work in progress, and subject to change. A couple things I noticed: * I'd advise against linking to external links and guides in the docs as much as possible as we can't guarantee they stay up to date or accurate. The Digital Ocean one is unlikely to be an issue as their documentation is generally kept up to date and is well written, but linking to a gist in docs is probably not the best idea. * I would not be recommending Ubuntu16.04 as the default as the latest LTS release of Ubuntu is 18.04 which also includes python3.6 by default. Recommending any specific distribution over another is not necessarily something we should do as it starts being less a guide and more editorial, but if we are going to, we should be recommending the latest available long term supported version. * I'd also advise against calling any linux distro "easy to understand". While they may be from a developer standpoint, this is a guide which targets a lot of users who have never used a CLI before, and while it may be easy for some people, it isn't at first for everyone, and this is likely to come across as off-putting to anyone who doesn't find it easy. * There are a few grammatical errors which are quickly noticeable reading through which should be handled before merge, but I understand this is still a work in progress.
laggron42 commented 2018-06-01 19:31:53 +02:00 (Migrated from github.com)

I'll comment what you said

  • you're right with the gist, maybe I should include that into a hidden .rst (not in index.rst)

  • Ubuntu 16 is not the latest but the most stable. I got issue and missing tools on 18, downgrading to 16 fixed all my problems. I think it's better to stay on a really stable release than going with the latest one.

  • I defined Ubuntu as an easy-to-understand distro because of the pre-installed tools and maybe because of bad memories with Arch. This is the distro I usually recommand in #support, but I can change this to something else if needed, or just remove the "easy to understand" mention.

  • I'm not native english, so I'll let you find and correct the errors. I'm trying to do my best, I promise D:

And thanks for the review, this is what I need

I'll comment what you said - you're right with the gist, maybe I should include that into a hidden .rst (not in `index.rst`) - Ubuntu 16 is not the latest but the most stable. I got issue and missing tools on 18, downgrading to 16 fixed all my problems. I think it's better to stay on a really stable release than going with the latest one. - I defined Ubuntu as an easy-to-understand distro because of the pre-installed tools *and maybe because of bad memories with Arch*. This is the distro I usually recommand in #support, but I can change this to something else if needed, or just remove the "easy to understand" mention. - I'm not native english, so I'll let you find and correct the errors. I'm trying to do my best, I promise D: And thanks for the review, this is what I need
laggron42 commented 2018-06-02 13:11:52 +02:00 (Migrated from github.com)

@tekulvw Made admin cog docs, as its author, what do you think about it?

Edit: ReadTheDocs didn't build, lemme fix that

@tekulvw Made admin cog docs, as its author, what do you think about it? Edit: ReadTheDocs didn't build, lemme fix that
laggron42 commented 2018-06-02 16:04:07 +02:00 (Migrated from github.com)

ReadTheDocs built successfully

ReadTheDocs built successfully
Tobotimus (Migrated from github.com) reviewed 2018-06-03 02:43:29 +02:00
Tobotimus (Migrated from github.com) left a comment

I know it can be a pain, but for the checks to pass you must resolve all sphinx build warnings, even if the docs still build successfully otherwise.

I know it can be a pain, but for the checks to pass you must resolve all sphinx build warnings, even if the docs still build successfully otherwise.
Tobotimus (Migrated from github.com) commented 2018-06-03 02:25:14 +02:00

This is already added on line 122, so you can remove these lines. If you'd like to build docs for Red into an ignored folder, you can simply do it in the docs sub-directory, and the Makefile is provided for your convenience to build into this folder.

This is already added on line 122, so you can remove these lines. If you'd like to build docs for Red into an ignored folder, you can simply do it in the `docs` sub-directory, and the Makefile is provided for your convenience to build into this folder.
laggron42 (Migrated from github.com) reviewed 2018-06-03 17:44:17 +02:00
laggron42 (Migrated from github.com) commented 2018-06-03 17:44:17 +02:00

so instead of running sphinx, I need to run the makefile, right?

so instead of running `sphinx`, I need to run the makefile, right?
laggron42 commented 2018-06-03 18:33:10 +02:00 (Migrated from github.com)
Added alias docs https://red-docspr.readthedocs.io/en/latest/alias.html
laggron42 commented 2018-06-03 18:35:56 +02:00 (Migrated from github.com)

screen shot 2018-06-03 at 18 27 56

Should the message command locked to... be shown as an admonition? (such as note, tip, warning...)

Admonitions list http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives

![screen shot 2018-06-03 at 18 27 56](https://user-images.githubusercontent.com/23153234/40888784-a77dd73c-675c-11e8-8384-b466e26ba95f.png) Should the message `command locked to...` be shown as an admonition? (such as note, tip, warning...) > Admonitions list http://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html#directives
Tobotimus (Migrated from github.com) reviewed 2018-06-04 14:20:44 +02:00
Tobotimus (Migrated from github.com) commented 2018-06-04 14:20:44 +02:00

You don't have to if you don't want to. You can do sphinx-build . _build/html -bhtml instead of make html.

You don't have to if you don't want to. You can do `sphinx-build . _build/html -bhtml` instead of `make html`.
Tobotimus (Migrated from github.com) reviewed 2018-06-04 14:22:45 +02:00
Tobotimus (Migrated from github.com) commented 2018-06-04 14:22:44 +02:00

Also note that tox tests builds the docs using sphinx-build with the -W flag, which treats warnings as errors - hence why the travis build fails if there are any build warnings.

Also note that tox tests builds the docs using `sphinx-build` with the `-W` flag, which treats warnings as errors - hence why the travis build fails if there are any build warnings.
laggron42 (Migrated from github.com) reviewed 2018-06-04 15:25:35 +02:00
laggron42 (Migrated from github.com) commented 2018-06-04 15:25:35 +02:00

I know that Travis is constantly failing because of missing references, I'll add them when they will exist, at least I won't forgot to add them.

However, this doesn't explain why the build shouldn't be in the gitignore file...

I know that Travis is constantly failing because of missing references, I'll add them when they will exist, at least I won't forgot to add them. However, this doesn't explain why the build shouldn't be in the gitignore file...
tekulvw (Migrated from github.com) reviewed 2018-06-06 22:50:17 +02:00
tekulvw commented 2018-06-06 22:52:49 +02:00 (Migrated from github.com)

We appreciate what you're doing here Laggron and I realize that English is not your first language but in order for us to even consider changes to end user facing documentation, the spelling and grammar must be correct. If you're not going to work on that yourself then you need to find others to help you. If you don't, this PR is likely going to sit here for a very long time.

We appreciate what you're doing here Laggron and I realize that English is not your first language but in order for us to even consider changes to end user facing documentation, the spelling and grammar must be correct. If you're not going to work on that yourself then you need to find others to help you. If you don't, this PR is likely going to sit here for a very long time.
laggron42 commented 2018-06-07 08:17:19 +02:00 (Migrated from github.com)

Don't worry, the work is in progress. I'll try to find all of these errors (I was going to finish every guide, then check for errors, but I'll search for them now). Thanks for the review!

Don't worry, the work is in progress. I'll try to find all of these errors (I was going to finish every guide, then check for errors, but I'll search for them now). Thanks for the review!
laggron42 commented 2018-06-19 17:54:33 +02:00 (Migrated from github.com)

Travis is not passing for weird reasons. At least tox pass locally
screen shot 2018-06-19 at 16 15 51

Travis is not passing for weird reasons. At least tox pass locally ![screen shot 2018-06-19 at 16 15 51](https://user-images.githubusercontent.com/23153234/41608884-d1955290-73e9-11e8-8ab5-d48d17780b40.png)
Zephyrkul commented 2018-08-27 05:43:14 +02:00 (Migrated from github.com)

If I may note here - a user-focused RST guide for the CustomCommands cog is included in #2051 since that PR introduces a major feature change that I couldn't document in docstrings alone. You can see that guide here (clicky).

I'd recommend you leave any docs on that cog out of this PR and instead contribute feedback regarding that cog's docs to PR #2051. That way they won't conflict and the docs will include the new feature.

Should my PR be denied the RST from there should still be useful for this PR, after stripping out the docs on the new feature.

If I may note here - a user-focused RST guide for the CustomCommands cog is included in #2051 since that PR introduces a major feature change that I couldn't document in docstrings alone. You can see that guide [here (clicky)](https://github.com/zephyrkul/Red-DiscordBot/blob/patch-1/docs/cog_customcom.rst). I'd recommend you leave any docs on that cog out of this PR and instead contribute feedback regarding that cog's docs to PR #2051. That way they won't conflict and the docs will include the new feature. Should my PR be denied the RST from there should still be useful for this PR, after stripping out the docs on the new feature.
laggron42 commented 2018-08-28 16:49:07 +02:00 (Migrated from github.com)

The first RC is coming soon, and this have to be finished quickly. For those who want to help me, here is how I write cog guides.

.. _cog:
========
cog name
========

.. _cog-usage:
-----
Usage
-----

.. Here you should describe how the cog works
   If the cog is complex, the usage of screenshots and flowcharts is recommanded

.. _cog-commands:
--------
Commands
--------

.. In this category, you will explain how each command work in details.

.. _cog-command-command1:
^^^^^^^^
command1
^^^^^^^^

**Syntax**

.. code-block:: none

    .. here you will place syntax (or synopsis on unix) of the command, just paste what the help command provides
    [p]command1 <positional argument> [optional argument...]

**Description**

.. Here you will give a detailled description of the command.

**Arguments**

.. Explain all arguments of the command.

*    ``<posotional argument``: Some description...

*    ``[optional argument...]``: More description...

.. for group commands, do the following

.. _cog-command-command2:
^^^^^^^^
command2
^^^^^^^^

.. Fill the same description as in the above example

.. _cog-command-command2-yoursubcommand:
"""""""""""""""""""""""
command2 yoursubcommand
"""""""""""""""""""""""

.. Fill the same description as in the above example

If you want to attach images (which is recommanded), place them in the .ressources dir, and access them with .. image:: ../.ressources/your-file.png

You should check audio.rst as an example.

The first RC is coming soon, and this have to be finished quickly. For those who want to help me, here is how I write cog guides. ```rst .. _cog: ======== cog name ======== .. _cog-usage: ----- Usage ----- .. Here you should describe how the cog works If the cog is complex, the usage of screenshots and flowcharts is recommanded .. _cog-commands: -------- Commands -------- .. In this category, you will explain how each command work in details. .. _cog-command-command1: ^^^^^^^^ command1 ^^^^^^^^ **Syntax** .. code-block:: none .. here you will place syntax (or synopsis on unix) of the command, just paste what the help command provides [p]command1 <positional argument> [optional argument...] **Description** .. Here you will give a detailled description of the command. **Arguments** .. Explain all arguments of the command. * ``<posotional argument``: Some description... * ``[optional argument...]``: More description... .. for group commands, do the following .. _cog-command-command2: ^^^^^^^^ command2 ^^^^^^^^ .. Fill the same description as in the above example .. _cog-command-command2-yoursubcommand: """"""""""""""""""""""" command2 yoursubcommand """"""""""""""""""""""" .. Fill the same description as in the above example ``` If you want to attach images (which is recommanded), place them in the `.ressources` dir, and access them with `.. image:: ../.ressources/your-file.png` You should check `audio.rst` as an example.
laggron42 commented 2019-05-09 14:19:45 +02:00 (Migrated from github.com)

Due to the amount of things to do, I'm gonna split this PR as suggested before on Discord. I'm gonna open one pull request right now for the "Getting started" part, and open one PR for each cog guide if you're ok with that.

Due to the amount of things to do, I'm gonna split this PR as suggested before on Discord. I'm gonna open one pull request right now for the "Getting started" part, and open one PR for each cog guide if you're ok with that.

Pull request closed

Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!1757
No description provided.