Add Sphinx extension for extracting prompt contents (#6671)

This commit is contained in:
Jakub Kuczys
2026-03-04 22:12:17 +01:00
committed by GitHub
parent bdc66c3f56
commit b7c11c016e
4 changed files with 163 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ To install without additional config backend support:
.. prompt:: bash
:prompts: (redenv) $
:modifiers: red-install-guide-install-normal
python -m pip install -U pip wheel
python -m pip install -U Red-DiscordBot
@@ -16,6 +17,7 @@ Or, to install with PostgreSQL support:
.. prompt:: bash
:prompts: (redenv) $
:modifiers: red-install-guide-install-postgres
python -m pip install -U pip wheel
python -m pip install -U "Red-DiscordBot[postgres]"
@@ -29,6 +31,7 @@ After installation, set up your instance with the following command:
.. prompt:: bash
:prompts: (redenv) $
:modifiers: red-install-guide-setup
redbot-setup
@@ -40,6 +43,7 @@ Once done setting up the instance, run the following command to run Red:
.. prompt:: bash
:prompts: (redenv) $
:modifiers: red-install-guide-run
redbot <your instance name>

View File

@@ -133,6 +133,7 @@ Run **one** of the following set of commands, depending on what extras you want
.. prompt:: batch
:prompts: (redenv) C:\\>
:modifiers: red-install-guide-install-normal
python -m pip install -U pip wheel
python -m pip install -U Red-DiscordBot
@@ -141,6 +142,7 @@ Run **one** of the following set of commands, depending on what extras you want
.. prompt:: batch
:prompts: (redenv) C:\\>
:modifiers: red-install-guide-install-postgres
python -m pip install -U pip wheel
python -m pip install -U Red-DiscordBot[postgres]
@@ -153,6 +155,7 @@ After installation, set up your instance with the following command:
.. prompt:: batch
:prompts: (redenv) C:\\>
:modifiers: red-install-guide-setup
redbot-setup
@@ -164,6 +167,7 @@ Once done setting up the instance, run the following command to run Red:
.. prompt:: batch
:prompts: (redenv) C:\\>
:modifiers: red-install-guide-run
redbot <your instance name>