Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
synrg committed Mar 23, 2024
2 parents b10bdf7 + eb9d611 commit 2635e6b
Show file tree
Hide file tree
Showing 13 changed files with 186 additions and 182 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ build:
- pip install poetry
post_install:
- poetry config virtualenvs.create false
- poetry install --with docs
- poetry install --with docs --no-root

python:
install:
- requirements: docs/requirements.txt

sphinx:
configuration: docs/conf.py
Expand Down
Binary file added docs/Pictures/eristalis_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/_static/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Static assets should go here.
- TODO: migrate Pictures directory here?
24 changes: 21 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
project = "Dronefly"
copyright = "2020-2023, Ben Armstrong and Michael Pirrello"
author = "Ben Armstrong, Michael Pirrello"
programming_language = "py"


# -- General configuration ---------------------------------------------------
Expand All @@ -37,10 +38,13 @@
"sphinx.ext.viewcode",
"sphinx.ext.doctest",
"sphinx.ext.imgconverter",
"sphinx_rtd_theme",
# "sphinxcontrib_trio",
"sphinxcontrib_trio",
]

autosectionlabel_prefix_document = True

intersphinx_mapping = {"redbot": ("https://docs.discord.red/en/stable", None)}

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand All @@ -55,7 +59,21 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
html_logo = "Pictures/eristalis_1.png"
html_theme = "sphinx_material"
html_theme_options = {
"base_url": "http://bashtage.github.io/sphinx-material/",
"repo_url": "https://github.com/dronefly-garden/dronefly/",
"repo_name": "Dronefly cogs for Naturalists",
"html_minify": True,
"css_minify": True,
"nav_title": "Dronefly Project",
"localtoc_label_text": "Contents",
"globaltoc_depth": 2,
}
html_sidebars = {
"**": ["logo-text.html", "globaltoc.html", "localtoc.html", "searchbox.html"]
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
16 changes: 8 additions & 8 deletions docs/dronefly.rst → docs/dronefly_bot.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
.. Dronefly
.. Dronefly Bot
========
Dronefly
========

Overview
--------
========

.. image:: https://img.shields.io/badge/Red--DiscordBot-cogs-red.svg
:target: https://github.com/Cog-Creators/Red-DiscordBot/tree/V3/develop
Expand All @@ -30,8 +27,9 @@ https://discord.gg/pUbZFDbDdD if:
- you already use Dronefly and need support
- you want to be involved with Dronefly development

=======================
Dronefly cog repository
-----------------------
=======================

Dronefly bot is based on `Red Discord
Bot <https://github.com/Cog-Creators/Red-DiscordBot>`__ but it is also the
Expand All @@ -46,13 +44,15 @@ download anything from this site to do that.
If you do want to run your own bot with the cogs from Dronefly repository on
it, see the Installation instructions below.

==================================
User Guide - iNaturalist (inatcog)
----------------------------------
==================================

TODO: migrate Guide for Participant material here.

==================
Server Owner Guide
------------------
==================

TODO: migrate `Server owner guide
<https://github.com/dronefly-garden/dronefly/wiki/Server-owner-guide>`__ here.
186 changes: 24 additions & 162 deletions docs/guide_for_participants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ This guide has a number of sections aimed at introducing our new
and existing users to Discord itself, the iNaturalist Discord Server,
and its bots and channels.

If you already know the :ref:`Discord Basics` and how to use Discord, you may
wish to skip ahead to :ref:`Set Up Your Roles` and then the sections introducing you
to :ref:`Participating` in the various channels on the server.
If you already know the :ref:`guide_for_participants:Discord Basics` and how to use Discord, you may
wish to skip ahead to :ref:`guide_for_participants:Set Up Your Roles` and then the sections introducing you
to :ref:`guide_for_participants:Participating` in the various channels on the server.

Once you're comfortable with all that, :ref:`Using the Discord Bots` addresses using
Once you're comfortable with all that, :ref:`guide_for_participants:Using the Discord Bots` addresses using
Dronefly and Dumbo, and is the largest and most technical section of the Guide.

Finally, :ref:`Appendices` covers miscellaneous topics.
Finally, :ref:`guide_for_participants:Appendices` covers miscellaneous topics.

==============
Discord Basics
Expand Down Expand Up @@ -87,7 +87,7 @@ allows you to take a variety of actions, including:
Invite People - Inviting friends and other naturalist professionals to join us (if you
use this, create from #introductions)

Notification Settings - Adjusting your notification settings (see :ref:`Appendix A - Notification Settings`)
Notification Settings - Adjusting your notification settings (see :ref:`guide_for_participants:Appendix A - Notification Settings`)

Privacy Settings - Allowing or prohibiting direct messages from other users

Expand Down Expand Up @@ -218,7 +218,7 @@ to post questions: https://forum.inaturalist.org/
(Please use #bot-commands for status checks.)

Participating - #id-help and #work-party (under iNat Stuff and Teams)
-----------------------------------------------------------------
---------------------------------------------------------------------

Use the #id-help channel for:

Expand Down Expand Up @@ -271,27 +271,34 @@ Using the Discord Bots
Access to the Discord bots is one of the great benefits of being on the
server. Bots are primarily for obtaining information.

There are several bots, most of which are instances of `Red Discord
There are several bots, all of which are instances of `Red Discord
Bot <https://github.com/Cog-Creators/Red-DiscordBot>`__, each with a
different function. You can access the functions of the bots using the
prefix specific to the bot:

`Dronefly <https://github.com/dronefly-garden/dronefly/>`__ (``,``) - Accesses
iNaturalist and other naturalist-related web platforms.

Dumbo (``-``) - For general purpose admin & info functions, not strictly
nature-related (e.g. Twitter and Wikipedia).
Dumbo (``-``) - For general purpose info & entertainment functions, not strictly
nature-related (e.g. Trivia, Weather, Wikipedia).

Pickerel (``$``) - Plays audio (e.g. music) from SoundCloud, Spotify, and
YouTube in voice channels.

`Rythm <https://rythm.fm/>`_ (``!``) - Plays audio (e.g. music) from SoundCloud, Twitch, YouTube
and more in voice channels.
Polistes (``;``) - Server management bot. Mostly handles behind-the-scenes
server operations. A few member-facing features are also provided through
this bot, such as the role assignment menus and buttons.

Two other bots are present for development and testing purposes. For the
most part, you can ignore these unless you're involved as a Dronefly bot
developer or tester.

SeedWasp (``w,``) is the beta version of Dronefly. Some functions that
will be available in the next version of Dronefly, such as slash-commands,
are provided by this bot.

(CuckooBee (``/`` or ``c.``) is the development version of Dronefly, so if
you’re not interested in bot development, you won’t need it. If you
indicate that you’re interested in helping with bot testing, you may
occasionally receive an invite to participate in testing features.)
CuckooBee (``c.``) is the development version of Dronefly. Occasionally,
a tester may be asked to try new things on this bot instead of on Dronefly.

|image14|

Expand Down Expand Up @@ -428,7 +435,7 @@ Search subcommands
``users`` - Search iNat users.

Arrow reactions allow paging through pages of results. See
:ref:`Appendix C - Search Result Icons` for icons.
:ref:`guide_for_participants:Appendix C - Search Result Icons` for icons.

|image69|

Expand Down Expand Up @@ -1154,151 +1161,6 @@ Note: Please use these *Commands* in #vc-music channel, and listen in |image43|

- Set the volume, 1% - 150%.

Rythm commands
-----------------

Access help using ``!help``.

Syntax: ``!play <query>``

Note: Please use these *Commands* in #vc-music channel, and listen in |image43|

``!aliases``

- List command aliases.

``!clear``

- Clears the queue.

``!disconnect``

- Disconnect the bot from the voice channel it is in.

``!donate``

- Info about donating to support Rythm!

``!forward``

- Forwards by a certain amount in the current track.

``!info``

- Info about Rythm!

``!invite``

- Links!

``!join``

- Summons the bot to your voice channel.

``!leavecleanup``

- Removes absent user's songs from the Queue.

``!loop``

- Loop the currently playing song.

``!loopqueue``

- Loops the whole queue.

``!lyrics``

- Gets the lyrics of the current playing song

``!move``

- Moves a certain song to the first position in the queue or to a chosen position

``!np``

- Shows what song the bot is currently playing.

``!pause``

- Pauses the currently playing track.

``!ping``

- Checks the bot's response time to Discord.

``!play``

- Plays a song with the given name or url.

``!playskip``

- Adds a song to the top of the queue then skips to it.

``!playtop``

- Like the play command, but queues from the top.

``!queue``

- View the queue. To view different pages, type the command with the specified page number after it (`queue 2`).

``!remove``

- Removes a certain entry from the queue.

``!removedupes``

- Removes duplicate songs from the queue.

``!replay``

- Reset the progress of the current song

``!resume``

- Resume paused music.

``!rewind``

- Rewinds by a certain amount in the current track.

``!search``

- Searches YouTube for results of a URL.

``!seek``

- Seeks to a certain point in the current track.

``!settings``

- Change Rythm's settings.

``!shuffle``

- Shuffles the queue.

``!skip``

- Skips the currently playing song.

``!skipto``

- Skips to a certain position in the queue.

``!soundcloud``

- Searches Soundcloud for a song

``!stats``

- Shows the stats of the bot.

``!volume``

- Check or change the current volume.

==========
Appendices
==========
Expand Down
12 changes: 5 additions & 7 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,29 @@ Welcome to Dronefly's documentation!

.. toctree::
:maxdepth: 2
:caption: Dronefly:
:caption: Dronefly Bot

dronefly
dronefly_bot

.. toctree::
:maxdepth: 2
:caption: iNaturalist Discord Server:
:caption: iNaturalist Discord Server

guide_for_participants

.. toctree::
:maxdepth: 2
:caption: Developer's Reference:
:caption: Developer's Reference

development_plan

.. toctree::
:maxdepth: 2
:caption: Dronefly cogs API:
:caption: Dronefly cogs API

source/modules.rst

Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
Loading

0 comments on commit 2635e6b

Please sign in to comment.