Add command switch tabs for Bash, CMD and Powershell with sphinx-tabs (#3714)
* Enable Sphinx extension sphinx-tabs * Add command tabs for all export commands * Add command tabs for all venv commands Fix trim spaces
This commit is contained in:
parent
c5a5d9b30b
commit
1035efc7d6
14 changed files with 498 additions and 126 deletions
|
|
@ -23,11 +23,31 @@ development server. It requires setting the ``FLASK_APP`` environment
|
|||
variable to point to your application, and ``FLASK_ENV=development`` to
|
||||
fully enable development mode.
|
||||
|
||||
.. code-block:: text
|
||||
.. tabs::
|
||||
|
||||
$ export FLASK_APP=hello
|
||||
$ export FLASK_ENV=development
|
||||
$ flask run
|
||||
.. group-tab:: Bash
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
$ export FLASK_APP=hello
|
||||
$ export FLASK_ENV=development
|
||||
$ flask run
|
||||
|
||||
.. group-tab:: CMD
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
> set FLASK_APP=hello
|
||||
> set FLASK_ENV=development
|
||||
> flask run
|
||||
|
||||
.. group-tab:: Powershell
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
> $env:FLASK_APP = "hello"
|
||||
> $env:FLASK_ENV = "development"
|
||||
> flask run
|
||||
|
||||
This enables the development environment, including the interactive
|
||||
debugger and reloader, and then starts the server on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue