Skip to content

Commit

Permalink
Merge pull request #2278 from THUzxj/master
Browse files Browse the repository at this point in the history
Fix some format problems in document
  • Loading branch information
cyberw committed Dec 21, 2022
2 parents 3698b41 + d430bd7 commit 11b0ba0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/configuration.rst
@@ -1,11 +1,12 @@
.. _configuration:

=============
Configuration
=============


Command Line Options
--------------------
====================

Locust is configured mainly through command line arguments.

Expand All @@ -21,7 +22,7 @@ Locust is configured mainly through command line arguments.
.. _environment-variables:

Environment Variables
---------------------
=====================

Options can also be set through through environment variables. They are typically the same as the command line argument but capitalized and prefixed with ``LOCUST_``:

Expand All @@ -41,7 +42,7 @@ On Windows:
.. _configuration-file:

Configuration File
------------------
==================

Options can also be set in a configuration file in the `config file <https://github.com/bw2/ConfigArgParse#config-file-syntax>`_
format.
Expand Down Expand Up @@ -77,7 +78,7 @@ Example:
~/locust.conf -> ./locust.conf -> (file specified using --conf) -> env vars -> cmd args
All available configuration options
-----------------------------------
===================================

Here's a table of all the available configuration options, and their corresponding Environment and config file keys:

Expand Down Expand Up @@ -164,12 +165,12 @@ The Web UI will display:
|
Custom arguments
----------------
================

See :ref:`custom-arguments`

Customization of statistics settings
------------------------------------
====================================

Default configuration for Locust statistics is set in constants of stats.py file.
It can be tuned to specific requirements by overriding these values.
Expand Down
7 changes: 7 additions & 0 deletions docs/index.rst
Expand Up @@ -16,6 +16,7 @@ Getting started

.. toctree ::
:maxdepth: 2
:caption: Getting started
what-is-locust
installation
Expand All @@ -27,6 +28,7 @@ Writing Locust tests

.. toctree ::
:maxdepth: 2
:caption: Writing Locust tests
writing-a-locustfile
Expand All @@ -36,6 +38,7 @@ Running your Locust tests

.. toctree ::
:maxdepth: 1
:caption: Running your Locust tests
configuration
running-distributed
Expand All @@ -50,6 +53,7 @@ Other functionalities

.. toctree ::
:maxdepth: 2
:caption: Other functionalities
custom-load-shape
retrieving-stats
Expand All @@ -65,6 +69,7 @@ Further reading / knowledgebase

.. toctree ::
:maxdepth: 1
:caption: Further reading / knowledgebase
developing-locust
further-reading
Expand All @@ -74,6 +79,7 @@ API
---
.. toctree ::
:maxdepth: 4
:caption: API
api
Expand All @@ -84,5 +90,6 @@ Changelog

.. toctree ::
:maxdepth: 2
:caption: Changelog
changelog

0 comments on commit 11b0ba0

Please sign in to comment.