History

Copyedited Documentation (#2640)

* Copyedited Documentation Changelog / Overview Reviewed tutorials\configurations.rst. Edited simple mistakes such as Manim not being capitalized and commas. Motivation and Explanation: Why and how do your changes improve the library? My motivation was to start getting involved in the open source community. This improves the library as it increases readability and professionalism. Links to added or changed documentation pages Further Information and Comments Closes #1401 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Apply suggestions from code review Co-authored-by: Darylgolden <darylgolden@gmail.com> Co-authored-by: Luca <30503695+tameTNT@users.noreply.github.com>

Bailey Powers committed 4 years ago

Commit 3413ca21 parent b6311091 file · +24 −24Browse files

Showing the changes to docs/source/tutorials (1 of 1 file). Show all

Unified · Split

docs/source/tutorials/configuration.rst+24−24
@@ -8,7 +8,7 @@ can be configured programmatically via `the ManimConfig class`_, at the time · 7 unmodified lines
88 of command invocation via `command-line arguments`_, or at the time the library
99 is first imported via `the config files`_.
1010
11−The most common, simplest and recommended way to set the configure Manim is
11+The most common, simplest, and recommended way to configure Manim is
1212 via the command-line interface (CLI), which is described directly below.
1313
1414 Command-line arguments
@@ -21,7 +21,7 @@ It is used with the following arguments: · 6 unmodified lines
2121 .. program-output:: manim render --help
2222 :ellipsis: 9
2323
24−However, since manim defaults to the :code:`render` command whenever no command
24+However, since Manim defaults to the :code:`render` command whenever no command
2525 is specified, the following form is far more common and can be used instead:
2626
2727 .. code-block:: bash
@@ -34,7 +34,7 @@ An example of using the above form is: · 6 unmodified lines
3434
3535 manim -qm file.py SceneOne
3636
37−This asks manim to search for a Scene class called :code:`SceneOne` inside the
37+This asks Manim to search for a Scene class called :code:`SceneOne` inside the
3838 file ``file.py`` and render it with medium quality (specified by the ``-qm`` flag).
3939
4040 Another frequently used flag is ``-p`` ("preview"), which makes manim
@@ -74,7 +74,7 @@ A list of all CLI flags · 33 unmodified lines
7474 The ManimConfig class
7575 *********************
7676
77−The most direct way of configuring manim is through the global ``config`` object,
77+The most direct way of configuring Manim is through the global ``config`` object,
7878 which is an instance of :class:`.ManimConfig`. Each property of this class is
7979 a config option that can be accessed either with standard attribute syntax or
8080 with dict-like syntax:
@@ -139,22 +139,22 @@ rendered in our documentation with a reference frame. · 58 unmodified lines
139139 The config files
140140 ****************
141141
142−As the last example shows, executing manim from the command-line may involve
143−using many flags at the same time. This may become a nuisance if you must
144−execute the same script many times in a short time period, for example when
145−making small incremental tweaks to your scene script. For this reason, manim
142+As the last example shows, executing Manim from the command line may involve
143+using many flags simultaneously. This may become a nuisance if you must
144+execute the same script many times in a short time period, for example, when
145+making small incremental tweaks to your scene script. For this reason, Manim
146146 can also be configured using a configuration file. A configuration file is a
147147 file ending with the suffix ``.cfg``.
148148
149149 To use a local configuration file when rendering your scene, you must create a
150−file with name ``manim.cfg`` in the same directory as your scene code.
150+file with the name ``manim.cfg`` in the same directory as your scene code.
151151
152−.. warning:: The config file **must** be named ``manim.cfg``. Currently, manim
152+.. warning:: The config file **must** be named ``manim.cfg``. Currently, Manim
153153 does not support config files with any other name.
154154
155155 The config file must start with the section header ``[CLI]``. The
156−configuration options under this header have the same name as the CLI flags,
157−and serve the same purpose. Take for example the following config file.
156+configuration options under this header have the same name as the CLI flags
157+and serve the same purpose. Take, for example, the following config file.
158158
159159 .. code-block:: ini
160160
@@ -188,8 +188,8 @@ is in the same directory as <file.py>, · 27 unmodified lines
188188
189189 Since config files are meant to replace CLI flags, all CLI flags can be set via
190190 a config file. Moreover, any config option can be set via a config file,
191−whether or not it has an associated CLI flag. For a list of all CLI flags and
192−all config options, see the bottom of this document.
191+whether or not it has an associated CLI flag. See the bottom of this document
192+for a list of all CLI flags and config options.
193193
194194 Manim will look for a ``manim.cfg`` config file in the same directory as the
195195 file being rendered, and **not** in the directory of execution. For example,
@@ -215,7 +215,7 @@ As explained in the previous section, a :code:`manim.cfg` config file only · 19 unmodified lines
215215 affects the scene scripts in its same folder. However, the user may also
216216 create a special config file that will apply to all scenes rendered by that
217217 user. This is referred to as the **user-wide** config file, and it will apply
218−regardless of where manim is executed from, and regardless of where the scene
218+regardless of where Manim is executed from, and regardless of where the scene
219219 script is stored.
220220
221221 The user-wide config file lives in a special folder, depending on the operating
@@ -235,14 +235,14 @@ Here, :code:`UserDirectory` is the user's home folder. · 13 unmodified lines
235235 .. warning:: Do not store scene scripts in the same folder as the user-wide
236236 config file. In this case, the behavior is undefined.
237237
238−Whenever you use manim from anywhere in the system, manim will look for a
238+Whenever you use Manim from anywhere in the system, Manim will look for a
239239 user-wide config file and read its configuration.
240240
241241
242242 Cascading config files
243243 ======================
244244
245−What happens if you execute manim and it finds both a folder-wide config file
245+What happens if you execute Manim and it finds both a folder-wide config file
246246 and a user-wide config file? Manim will read both files, but if they are
247247 incompatible, **the folder-wide file takes precedence**.
248248
@@ -280,7 +280,7 @@ executing · 31 unmodified lines
280280
281281 manim -o myscene -c RED <file.py> SceneName
282282
283−There is also a **library-wide** config file that determines manim's default
283+There is also a **library-wide** config file that determines Manim's default
284284 behavior and applies to every user of the library. It has the least
285285 precedence, so any config options in the user-wide and any folder-wide files
286286 will override the library-wide file. This is referred to as the *cascading*
@@ -301,19 +301,19 @@ Order of operations · 14 unmodified lines
301301
302302
303303
304−With so many different ways of configuring manim, it can be difficult to know
305−when each config option is being set. In fact, this will depend on how manim
304+With so many different ways of configuring Manim, it can be difficult to know
305+when each config option is being set. In fact, this will depend on how Manim
306306 is being used.
307307
308−If manim is imported from a module, then the configuration system will follow
308+If Manim is imported from a module, then the configuration system will follow
309309 these steps:
310310
311311 1. The library-wide config file is loaded.
312−2. The user-wide and folder-wide files are loaded, if they exist.
312+2. The user-wide and folder-wide files are loaded if they exist.
313313 3. All files found in the previous two steps are parsed in a single
314314 :class:`ConfigParser` object, called ``parser``. This is where *cascading*
315315 happens.
316−4. :class:`logging.Logger` is instantiated to create manim's global ``logger``
316+4. :class:`logging.Logger` is instantiated to create Manim's global ``logger``
317317 object. It is configured using the "logger" section of the parser,
318318 i.e. ``parser['logger']``.
319319 5. :class:`ManimConfig` is instantiated to create the global ``config`` object.
@@ -321,7 +321,7 @@ these steps: · 1 unmodified line
321321 :meth:`ManimConfig.digest_parser`.
322322 7. Both ``logger`` and ``config`` are exposed to the user.
323323
324−If manim is being invoked from the command-line, all of the previous steps
324+If Manim is being invoked from the command line, all of the previous steps
325325 happen, and are complemented by:
326326
327327 8. The CLI flags are parsed and fed into ``config`` via