Add command switch tabs for Bash, CMD and Powershell with sphinx-tabs (#3714)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Enable Sphinx extension sphinx-tabs * Add command tabs for all export commands * Add command tabs for all venv commands Fix trim spaces
authored by Grey Li · committed by GitHub · parent c5a5d9b · Browse files · 14 files·+498 added−126 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
14 files+498 added−126 removed
- other:+498 added−126 removed
Provenance
- Commit
1035efc- Tree
a5098bd- Author
Grey Li <withlihui@gmail.com>- Committer
GitHub <noreply@github.com>- Parent
c5a5d9b
14 files changed+498 added−126 removed
modified:docs/patterns/appfactories.rst+46 added-6 removed
85 unmodified lines86 87 Using Applications88 ------------------89 90-To run such an application, you can use the :command:`flask` command::90+To run such an application, you can use the :command:`flask` command:91 92- $ export FLASK_APP=myapp93- $ flask run92+.. tabs::93 94+ .. group-tab:: Bash95+96+ .. code-block:: text97+98+ $ export FLASK_APP=myapp99+ $ flask run100+101+ .. group-tab:: CMD102+103+ .. code-block:: text104+105+ > set FLASK_APP=myapp106+ > flask run107+108+ .. group-tab:: Powershell109+110+ .. code-block:: text111+112+ > $env:FLASK_APP = "myapp"113+ > flask run114+115 Flask will automatically detect the factory (``create_app`` or ``make_app``)96-in ``myapp``. You can also pass arguments to the factory like this::116+in ``myapp``. You can also pass arguments to the factory like this:117 98- $ export FLASK_APP="myapp:create_app('dev')"99- $ flask run118+.. tabs::119 120+ .. group-tab:: Bash121+122+ .. code-block:: text123+124+ $ export FLASK_APP="myapp:create_app('dev')"125+ $ flask run126+127+ .. group-tab:: CMD128+129+ .. code-block:: text130+131+ > set FLASK_APP="myapp:create_app('dev')"132+ > flask run133+134+ .. group-tab:: Powershell135+136+ .. code-block:: text137+138+ > $env:FLASK_APP = "myapp:create_app('dev')"139+ > flask run140+141 Then the ``create_app`` factory in ``myapp`` is called with the string142 ``'dev'`` as the argument. See :doc:`/cli` for more detail.143 144 Factory Improvements11 unmodified linesmodified:docs/patterns/packages.rst+40 added-4 removed
55 unmodified lines56 ],57 )58 59 In order to run the application you need to export an environment variable60-that tells Flask where to find the application instance::60+that tells Flask where to find the application instance:61 62- $ export FLASK_APP=yourapplication62+.. tabs::63 64+ .. group-tab:: Bash65+66+ .. code-block:: text67+68+ $ export FLASK_APP=yourapplication69+70+ .. group-tab:: CMD71+72+ .. code-block:: text73+74+ > set FLASK_APP=yourapplication75+76+ .. group-tab:: Powershell77+78+ .. code-block:: text79+80+ > $env:FLASK_APP = "yourapplication"81+82 If you are outside of the project directory make sure to provide the exact83 path to your application directory. Similarly you can turn on the66-development features like this::84+development features like this:85 68- $ export FLASK_ENV=development86+.. tabs::87 88+ .. group-tab:: Bash89+90+ .. code-block:: text91+92+ $ export FLASK_ENV=development93+94+ .. group-tab:: CMD95+96+ .. code-block:: text97+98+ > set FLASK_ENV=development99+100+ .. group-tab:: Powershell101+102+ .. code-block:: text103+104+ > $env:FLASK_ENV = "development"105+106 In order to install and run the application you need to issue the following107 commands::108 109 $ pip install -e .66 unmodified linesmodified:docs/tutorial/deploy.rst+21 added-3 removed
46 unmodified lines47 48 Since this is a different machine, you need to run ``init-db`` again to49 create the database in the instance folder.50 51-.. code-block:: none51+.. tabs::52 53- $ export FLASK_APP=flaskr54- $ flask init-db53+ .. group-tab:: Bash54 55+ .. code-block:: text56+57+ $ export FLASK_APP=flaskr58+ $ flask init-db59+60+ .. group-tab:: CMD61+62+ .. code-block:: text63+64+ > set FLASK_APP=flaskr65+ > flask init-db66+67+ .. group-tab:: Powershell68+69+ .. code-block:: text70+71+ > $env:FLASK_APP = "flaskr"72+ > flask init-db73+74 When Flask detects that it's installed (not in editable mode), it uses75 a different directory for the instance folder. You can find it at76 ``venv/var/flaskr-instance`` instead.77 62 unmodified linesmodified:docs/tutorial/factory.rst+17 added-15 removed
133 unmodified lines134 exception, and restarts the server whenever you make changes to the135 code. You can leave it running and just reload the browser page as you136 follow the tutorial.137 138-For Linux and Mac:138+.. tabs::139 140-.. code-block:: none140+ .. group-tab:: Bash141 142- $ export FLASK_APP=flaskr143- $ export FLASK_ENV=development144- $ flask run142+ .. code-block:: text143 146-For Windows cmd, use ``set`` instead of ``export``:144+ $ export FLASK_APP=flaskr145+ $ export FLASK_ENV=development146+ $ flask run147 148-.. code-block:: none148+ .. group-tab:: CMD149 150- > set FLASK_APP=flaskr151- > set FLASK_ENV=development152- > flask run150+ .. code-block:: text151 154-For Windows PowerShell, use ``$env:`` instead of ``export``:152+ > set FLASK_APP=flaskr153+ > set FLASK_ENV=development154+ > flask run155 156-.. code-block:: none156+ .. group-tab:: Powershell157 158- > $env:FLASK_APP = "flaskr"159- > $env:FLASK_ENV = "development"160- > flask run158+ .. code-block:: text159 160+ > $env:FLASK_APP = "flaskr"161+ > $env:FLASK_ENV = "development"162+ > flask run163+164 You'll see output similar to this:165 166 .. code-block:: none167 13 unmodified linesmodified:docs/cli.rst+153 added-36 removed
16 unmodified lines17 The ``flask`` command is installed by Flask, not your application; it must be18 told where to find your application in order to use it. The ``FLASK_APP``19 environment variable is used to specify how to load the application.20 21-Unix Bash (Linux, Mac, etc.)::21+.. tabs::22 23- $ export FLASK_APP=hello24- $ flask run23+ .. group-tab:: Bash24 26-Windows CMD::25+ .. code-block:: text26 28- > set FLASK_APP=hello29- > flask run27+ $ export FLASK_APP=hello28+ $ flask run29 31-Windows PowerShell::30+ .. group-tab:: CMD31 33- > $env:FLASK_APP = "hello"34- > flask run32+ .. code-block:: text33 34+ > set FLASK_APP=hello35+ > flask run36+37+ .. group-tab:: Powershell38+39+ .. code-block:: text40+41+ > $env:FLASK_APP = "hello"42+ > flask run43+44 While ``FLASK_APP`` supports a variety of options for specifying your45 application, most use cases should be simple. Here are the typical values:46 47 (nothing)87 unmodified lines135 If the env is set to ``development``, the ``flask`` command will enable136 debug mode and ``flask run`` will enable the interactive debugger and137 reloader.138 131-::139+.. tabs::140 133- $ FLASK_ENV=development flask run134- * Serving Flask app "hello"135- * Environment: development136- * Debug mode: on137- * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)138- * Restarting with inotify reloader139- * Debugger is active!140- * Debugger PIN: 223-456-919141+ .. group-tab:: Bash142 143+ .. code-block:: text144 145+ $ export FLASK_ENV=development146+ $ flask run147+ * Serving Flask app "hello"148+ * Environment: development149+ * Debug mode: on150+ * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)151+ * Restarting with inotify reloader152+ * Debugger is active!153+ * Debugger PIN: 223-456-919154+155+ .. group-tab:: CMD156+157+ .. code-block:: text158+159+ > set FLASK_ENV=development160+ > flask run161+ * Serving Flask app "hello"162+ * Environment: development163+ * Debug mode: on164+ * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)165+ * Restarting with inotify reloader166+ * Debugger is active!167+ * Debugger PIN: 223-456-919168+169+ .. group-tab:: Powershell170+171+ .. code-block:: text172+173+ > $env:FLASK_ENV = "development"174+ > flask run175+ * Serving Flask app "hello"176+ * Environment: development177+ * Debug mode: on178+ * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)179+ * Restarting with inotify reloader180+ * Debugger is active!181+ * Debugger PIN: 223-456-919182+183+184 Watch Extra Files with the Reloader185 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~186 187 When using development mode, the reloader will trigger whenever your1 unmodified line189 additional files with the ``--extra-files`` option, or the190 ``FLASK_RUN_EXTRA_FILES`` environment variable. Multiple paths are191 separated with ``:``, or ``;`` on Windows.192 152-.. code-block:: none193+.. tabs::194 154- $ flask run --extra-files file1:dirA/file2:dirB/155- # or156- $ export FLASK_RUN_EXTRA_FILES=file1:dirA/file2:dirB/157- $ flask run158- * Running on http://127.0.0.1:8000/159- * Detected change in '/path/to/file1', reloading195+ .. group-tab:: Bash196 197+ .. code-block:: text198 199+ $ flask run --extra-files file1:dirA/file2:dirB/200+ # or201+ $ export FLASK_RUN_EXTRA_FILES=file1:dirA/file2:dirB/202+ $ flask run203+ * Running on http://127.0.0.1:8000/204+ * Detected change in '/path/to/file1', reloading205+206+ .. group-tab:: CMD207+208+ .. code-block:: text209+210+ > flask run --extra-files file1:dirA/file2:dirB/211+ # or212+ > set FLASK_RUN_EXTRA_FILES=file1:dirA/file2:dirB/213+ > flask run214+ * Running on http://127.0.0.1:8000/215+ * Detected change in '/path/to/file1', reloading216+217+ .. group-tab:: Powershell218+219+ .. code-block:: text220+221+ > flask run --extra-files file1:dirA/file2:dirB/222+ # or223+ > $env:FLASK_RUN_EXTRA_FILES = "file1:dirA/file2:dirB/"224+ > flask run225+ * Running on http://127.0.0.1:8000/226+ * Detected change in '/path/to/file1', reloading227+228+229 Debug Mode230 ----------231 232 Debug mode will be enabled when :envvar:`FLASK_ENV` is ``development``,39 unmodified lines272 environment variables. The variables use the pattern273 ``FLASK_COMMAND_OPTION``. For example, to set the port for the run274 command, instead of ``flask run --port 8000``:275 209-.. code-block:: bash276+.. tabs::277 211- $ export FLASK_RUN_PORT=8000212- $ flask run213- * Running on http://127.0.0.1:8000/278+ .. group-tab:: Bash279 280+ .. code-block:: text281+282+ $ export FLASK_RUN_PORT=8000283+ $ flask run284+ * Running on http://127.0.0.1:8000/285+286+ .. group-tab:: CMD287+288+ .. code-block:: text289+290+ > set FLASK_RUN_PORT=8000291+ > flask run292+ * Running on http://127.0.0.1:8000/293+294+ .. group-tab:: Powershell295+296+ .. code-block:: text297+298+ > $env:FLASK_RUN_PORT = 8000299+ > flask run300+ * Running on http://127.0.0.1:8000/301+302 These can be added to the ``.flaskenv`` file just like ``FLASK_APP`` to303 control default command options.304 305 14 unmodified lines320 a project runner that loads them already. Keep in mind that the321 environment variables must be set before the app loads or it won't322 configure as expected.323 237-.. code-block:: bash324+.. tabs::325 239- $ export FLASK_SKIP_DOTENV=1240- $ flask run326+ .. group-tab:: Bash327 328+ .. code-block:: text329 330+ $ export FLASK_SKIP_DOTENV=1331+ $ flask run332+333+ .. group-tab:: CMD334+335+ .. code-block:: text336+337+ > set FLASK_SKIP_DOTENV=1338+ > flask run339+340+ .. group-tab:: Powershell341+342+ .. code-block:: text343+344+ > $env:FLASK_SKIP_DOTENV = 1345+ > flask run346+347+348 Environment Variables From virtualenv349 -------------------------------------350 351 If you do not want to install dotenv support, you can still set environment352 variables by adding them to the end of the virtualenv's :file:`activate`353 script. Activating the virtualenv will set the variables.354 250-Unix Bash, :file:`venv/bin/activate`::355+.. tabs::356 252- $ export FLASK_APP=hello357+ .. group-tab:: Bash358 254-Windows CMD, :file:`venv\\Scripts\\activate.bat`::359+ Unix Bash, :file:`venv/bin/activate`::360 256- > set FLASK_APP=hello361+ $ export FLASK_APP=hello362 363+ .. group-tab:: CMD364+365+ Windows CMD, :file:`venv\\Scripts\\activate.bat`::366+367+ > set FLASK_APP=hello368+369+ .. group-tab:: Powershell370+371+ Windows Powershell, :file:`venv\\Scripts\\activate.ps1`::372+373+ > $env:FLASK_APP = "hello"374+375 It is preferred to use dotenv support over this, since :file:`.flaskenv` can be376 committed to the repository so that it works automatically wherever the project377 is checked out.378 276 unmodified linesmodified:docs/conf.py+1 added
16 unmodified lines17 "sphinx.ext.intersphinx",18 "sphinxcontrib.log_cabinet",19 "pallets_sphinx_themes",20 "sphinx_issues",21+ "sphinx_tabs.tabs",22 ]23 intersphinx_mapping = {24 "python": ("https://docs.python.org/3/", None),25 "werkzeug": ("https://werkzeug.palletsprojects.com/", None),70 unmodified linesmodified:docs/config.rst+74 added-21 removed
63 unmodified lines64 Added :envvar:`FLASK_ENV` to control the environment separately65 from debug mode. The development environment enables debug mode.66 67 To switch Flask to the development environment and enable debug mode,68-set :envvar:`FLASK_ENV`::68+set :envvar:`FLASK_ENV`:69 70- $ export FLASK_ENV=development71- $ flask run70+.. tabs::71 73-(On Windows, use ``set`` instead of ``export``.)72+ .. group-tab:: Bash73 74+ .. code-block:: text75+76+ $ export FLASK_ENV=development77+ $ flask run78+79+ .. group-tab:: CMD80+81+ .. code-block:: text82+83+ > set FLASK_ENV=development84+ > flask run85+86+ .. group-tab:: Powershell87+88+ .. code-block:: text89+90+ > $env:FLASK_ENV = "development"91+ > flask run92+93 Using the environment variables as described above is recommended. While94 it is possible to set :data:`ENV` and :data:`DEBUG` in your config or95 code, this is strongly discouraged. They can't be read early by the96 ``flask`` command, and some systems or extensions may have already329 unmodified lines426 427 This first loads the configuration from the428 `yourapplication.default_settings` module and then overrides the values429 with the contents of the file the :envvar:`YOURAPPLICATION_SETTINGS`412-environment variable points to. This environment variable can be set on413-Linux or OS X with the export command in the shell before starting the414-server::430+environment variable points to. This environment variable can be set431+in the shell before starting the server:432 416- $ export YOURAPPLICATION_SETTINGS=/path/to/settings.cfg417- $ python run-app.py418- * Running on http://127.0.0.1:5000/419- * Restarting with reloader...433+.. tabs::434 421-On Windows systems use the `set` builtin instead::435+ .. group-tab:: Bash436 423- > set YOURAPPLICATION_SETTINGS=\path\to\settings.cfg437+ .. code-block:: text438 439+ $ export YOURAPPLICATION_SETTINGS=/path/to/settings.cfg440+ $ flask run441+ * Running on http://127.0.0.1:5000/442+443+ .. group-tab:: CMD444+445+ .. code-block:: text446+447+ > set YOURAPPLICATION_SETTINGS=\path\to\settings.cfg448+ > flask run449+ * Running on http://127.0.0.1:5000/450+451+ .. group-tab:: Powershell452+453+ .. code-block:: text454+455+ > $env:YOURAPPLICATION_SETTINGS = "\path\to\settings.cfg"456+ > flask run457+ * Running on http://127.0.0.1:5000/458+459 The configuration files themselves are actual Python files. Only values460 in uppercase are actually stored in the config object later on. So make461 sure to use uppercase letters for your config keys.462 35 unmodified lines498 In addition to pointing to configuration files using environment variables, you499 may find it useful (or necessary) to control your configuration values directly500 from the environment.501 468-Environment variables can be set on Linux or OS X with the export command in469-the shell before starting the server::502+Environment variables can be set in the shell before starting the server:503 471- $ export SECRET_KEY='5f352379324c22463451387a0aec5d2f'472- $ export MAIL_ENABLED=false473- $ python run-app.py474- * Running on http://127.0.0.1:5000/504+.. tabs::505 476-On Windows systems use the ``set`` builtin instead::506+ .. group-tab:: Bash507 478- > set SECRET_KEY='5f352379324c22463451387a0aec5d2f'508+ .. code-block:: text509 510+ $ export SECRET_KEY="5f352379324c22463451387a0aec5d2f"511+ $ export MAIL_ENABLED=false512+ $ flask run513+ * Running on http://127.0.0.1:5000/514+515+ .. group-tab:: CMD516+517+ .. code-block:: text518+519+ > set SECRET_KEY="5f352379324c22463451387a0aec5d2f"520+ > set MAIL_ENABLED=false521+ > flask run522+ * Running on http://127.0.0.1:5000/523+524+ .. group-tab:: Powershell525+526+ .. code-block:: text527+528+ > $env:SECRET_KEY = "5f352379324c22463451387a0aec5d2f"529+ > $env:MAIL_ENABLED = "false"530+ > flask run531+ * Running on http://127.0.0.1:5000/532+533 While this approach is straightforward to use, it is important to remember that534 environment variables are strings -- they are not automatically deserialized535 into Python types.536 227 unmodified linesmodified:docs/debugging.rst+42 added-6 removed
42 unmodified lines43 ``FLASK_ENV`` environment variable set to ``development``. This puts44 Flask in debug mode, which changes how it handles some errors, and45 enables the debugger and reloader.46 47-.. code-block:: text47+.. tabs::48 49- $ export FLASK_ENV=development50- $ flask run49+ .. group-tab:: Bash50 51+ .. code-block:: text52+53+ $ export FLASK_ENV=development54+ $ flask run55+56+ .. group-tab:: CMD57+58+ .. code-block:: text59+60+ > set FLASK_ENV=development61+ > flask run62+63+ .. group-tab:: Powershell64+65+ .. code-block:: text66+67+ > $env:FLASK_ENV = "development"68+ > flask run69+70 ``FLASK_ENV`` can only be set as an environment variable. When running71 from Python code, passing ``debug=True`` enables debug mode, which is72 mostly equivalent. Debug mode can be controled separately from73 ``FLASK_ENV`` with the ``FLASK_DEBUG`` environment variable as well.22 unmodified lines96 which can interfere.97 98 When running from the command line:99 82-.. code-block:: text100+.. tabs::101 84- $ export FLASK_ENV=development85- $ flask run --no-debugger --no-reload102+ .. group-tab:: Bash103 104+ .. code-block:: text105+106+ $ export FLASK_ENV=development107+ $ flask run --no-debugger --no-reload108+109+ .. group-tab:: CMD110+111+ .. code-block:: text112+113+ > set FLASK_ENV=development114+ > flask run --no-debugger --no-reload115+116+ .. group-tab:: Powershell117+118+ .. code-block:: text119+120+ > $env:FLASK_ENV = "development"121+ > flask run --no-debugger --no-reload122+123 When running from Python:124 125 .. code-block:: python126 7 unmodified linesmodified:docs/installation.rst+22 added-12 removed
73 unmodified lines74 ~~~~~~~~~~~~~~~~~~~~~75 76 Create a project folder and a :file:`venv` folder within:77 78-.. code-block:: sh78+.. tabs::79 80- $ mkdir myproject81- $ cd myproject82- $ python3 -m venv venv80+ .. group-tab:: macOS/Linux81 84-On Windows:82+ .. code-block:: text83 86-.. code-block:: bat84+ $ mkdir myproject85+ $ cd myproject86+ $ python3 -m venv venv87 88- $ py -3 -m venv venv88+ .. group-tab:: Windows89 90+ .. code-block:: text91 92+ > mkdir myproject93+ > cd myproject94+ > py -3 -m venv venv95+96+97 .. _install-activate-env:98 99 Activate the environment100 ~~~~~~~~~~~~~~~~~~~~~~~~101 102 Before you work on your project, activate the corresponding environment:103 98-.. code-block:: sh104+.. tabs::105 100- $ . venv/bin/activate106+ .. group-tab:: macOS/Linux107 102-On Windows:108+ .. code-block:: text109 104-.. code-block:: bat110+ $ . venv/bin/activate111 106- > venv\Scripts\activate112+ .. group-tab:: Windows113 114+ .. code-block:: text115+116+ > venv\Scripts\activate117+118 Your shell prompt will change to show the name of the activated119 environment.120 121 12 unmodified linesmodified:docs/quickstart.rst+41 added-12 removed
42 unmodified lines43 :command:`python -m flask`. Before you can do that you need44 to tell your terminal the application to work with by exporting the45 ``FLASK_APP`` environment variable:46 47-.. code-block:: text47+.. tabs::48 49- $ export FLASK_APP=hello.py50- $ flask run51- * Running on http://127.0.0.1:5000/49+ .. group-tab:: Bash50 53-If you are on Windows, the environment variable syntax depends on command line54-interpreter. On Command Prompt::51+ .. code-block:: text52 56- C:\path\to\app>set FLASK_APP=hello.py53+ $ export FLASK_APP=hello.py54+ $ flask run55+ * Running on http://127.0.0.1:5000/56 58-And on PowerShell::57+ .. group-tab:: CMD58 60- PS C:\path\to\app> $env:FLASK_APP = "hello.py"59+ .. code-block:: text60 61+ > set FLASK_APP=hello.py62+ > flask run63+ * Running on http://127.0.0.1:5000/64+65+ .. group-tab:: Powershell66+67+ .. code-block:: text68+69+ > $env:FLASK_APP = "hello.py"70+ > flask run71+ * Running on http://127.0.0.1:5000/72+73 This launches a very simple builtin server, which is good enough for74 testing but probably not what you want to use in production. For75 deployment options see :doc:`deploying/index`.76 68 unmodified lines145 146 To enable all development features, set the ``FLASK_ENV`` environment147 variable to ``development`` before calling ``flask run``.148 138-.. code-block:: text149+.. tabs::150 140- $ export FLASK_ENV=development141- $ flask run151+ .. group-tab:: Bash152 153+ .. code-block:: text154+155+ $ export FLASK_ENV=development156+ $ flask run157+158+ .. group-tab:: CMD159+160+ .. code-block:: text161+162+ > set FLASK_ENV=development163+ > flask run164+165+ .. group-tab:: Powershell166+167+ .. code-block:: text168+169+ > $env:FLASK_ENV = "development"170+ > flask run171+172 See also:173 174 - :doc:`/server` and :doc:`/cli` for information about running in175 development mode.757 unmodified linesmodified:docs/server.rst+24 added-4 removed
21 unmodified lines22 development server. It requires setting the ``FLASK_APP`` environment23 variable to point to your application, and ``FLASK_ENV=development`` to24 fully enable development mode.25 26-.. code-block:: text26+.. tabs::27 28- $ export FLASK_APP=hello29- $ export FLASK_ENV=development30- $ flask run28+ .. group-tab:: Bash29 30+ .. code-block:: text31+32+ $ export FLASK_APP=hello33+ $ export FLASK_ENV=development34+ $ flask run35+36+ .. group-tab:: CMD37+38+ .. code-block:: text39+40+ > set FLASK_APP=hello41+ > set FLASK_ENV=development42+ > flask run43+44+ .. group-tab:: Powershell45+46+ .. code-block:: text47+48+ > $env:FLASK_APP = "hello"49+ > $env:FLASK_ENV = "development"50+ > flask run51+52 This enables the development environment, including the interactive53 debugger and reloader, and then starts the server on54 http://localhost:5000/. Use ``flask run --help`` to see the available55 options, and :doc:`/cli` for detailed instructions about configuring54 unmodified linesmodified:requirements/docs.in+1 added
1 unmodified line2 packaging3 Sphinx4 sphinx-issues5 sphinxcontrib-log-cabinet6+sphinx-tabsmodified:requirements/docs.txt+5 added-1 removed
6 unmodified lines7 alabaster==0.7.12 # via sphinx8 babel==2.8.0 # via sphinx9 certifi==2020.4.5.1 # via requests10 chardet==3.0.4 # via requests11+colorama==0.4.3 # via sphinx12 docutils==0.16 # via sphinx13 idna==2.9 # via requests14 imagesize==1.2.0 # via sphinx15+importlib-metadata==1.7.0 # via pallets-sphinx-themes16 jinja2==2.11.2 # via sphinx17 markupsafe==1.1.1 # via jinja218 packaging==20.4 # via -r requirements/docs.in, pallets-sphinx-themes, sphinx19 pallets-sphinx-themes==1.2.3 # via -r requirements/docs.in3 unmodified lines23 requests==2.23.0 # via sphinx24 six==1.15.0 # via packaging25 snowballstemmer==2.0.0 # via sphinx26 sphinx-issues==1.2.0 # via -r requirements/docs.in27+sphinx-tabs==1.1.13 # via -r requirements/docs.in25-sphinx==3.2.1 # via -r requirements/docs.in, pallets-sphinx-themes, sphinx-issues, sphinxcontrib-log-cabinet28+sphinx==3.2.1 # via -r requirements/docs.in, pallets-sphinx-themes, sphinx-issues, sphinx-tabs, sphinxcontrib-log-cabinet29 sphinxcontrib-applehelp==1.0.2 # via sphinx30 sphinxcontrib-devhelp==1.0.2 # via sphinx31 sphinxcontrib-htmlhelp==1.0.3 # via sphinx32 sphinxcontrib-jsmath==1.0.1 # via sphinx33 sphinxcontrib-log-cabinet==1.0.1 # via -r requirements/docs.in34 sphinxcontrib-qthelp==1.0.3 # via sphinx35 sphinxcontrib-serializinghtml==1.1.4 # via sphinx36 urllib3==1.25.9 # via requests37+zipp==3.1.0 # via importlib-metadata38 39 # The following packages are considered to be unsafe in a requirements file:40 # setuptoolsmodified:CONTRIBUTING.rst+11 added-6 removed
94 unmodified lines95 git remote add fork https://github.com/{username}/flask96 97 - Create a virtualenv.98 99- .. code-block:: text99+ .. tabs::100 101- $ python3 -m venv env102- $ . env/bin/activate101+ .. group-tab:: macOS/Linux102 104- On Windows, activating is different.103+ .. code-block:: text104 106- .. code-block:: text105+ $ python3 -m venv env106+ $ . env/bin/activate107 108- > env\Scripts\activate108+ .. group-tab:: Windows109 110+ .. code-block:: text111+112+ > py -3 -m venv env113+ > env\Scripts\activate114+115 - Install Flask in editable mode with development dependencies.116 117 .. code-block:: text118 102 unmodified lines