Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Make it so that the config module is reachable, as _config. This is used e.g. in the docs. This also fixes an image path in docs/source/contributing.md.

leotrs2c94a5c7925f
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 323a9c092..7e44f2461 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -26,20 +26,20 @@ steps:
3. Make sure you can reproduce the issue, i.e. that you have some code that
illustrates the bug **every time** (or at least most of the time) it is
executed.
-
+
4. Make sure to clarify what behavior you expected, and how the actual behavior
differs from your expectation.
5. Make sure to gather information about your environment, such as your
operating system, python version, and any stack traces that the code may
have generated (if applicable).
-
+
4. Please open an issue only after you have gathered this information. When
submitting an issue, make sure to follow the template (this is the default
text you are shown when first opening the 'New Issue' page). A community
member will (hopefully) respond and start a conversation to address the
issue.
-
+
7. Please give the community a reasonable amount of time before asking again,
or insisting on your issue. Keep in mind that everyone is a volunteer. If
you wait for a reasonable amount of time and you receive no response, feel
@@ -84,7 +84,7 @@ confusing. Here is a short guide on how to do it.
```sh
git checkout -b <branch-name> upstream/master
```
-
+
If you are starting a new branch, execute
```sh
git checkout -b <new_branch-name>
@@ -125,7 +125,7 @@ confusing. Here is a short guide on how to do it.
instead of `3b1b/manim` as the `base repository` and your fork and branch as
`head repository` - see the picture below.
- ![pull-requests-example-manim-community](./readme-assets/pull-requests.PNG)
+ ![pull-requests-example-manim-community](./_static/pull-requests.PNG)
Once again, please make sure to follow the template (this is the default
text you are shown when first opening the 'New Pull Request' page)
@@ -180,7 +180,7 @@ yet-to-be-implemented changes, please mark your PR as a draft.
[these general guidelines](https://conventionalcomments.org/). Similarly,
when crafting commit messages, it is highly recommended that you adhere to
[these guidelines](https://www.conventionalcommits.org/en/v1.0.0/).
-
+
6. If you find stale or inactive issues that seem to be irrelevant, please post
a comment saying 'This issue should be closed', and a community developer
will take a look.
diff --git a/docs/source/reference.rst b/docs/source/reference.rst
index 8c252b422..a329230de 100644
--- a/docs/source/reference.rst
+++ b/docs/source/reference.rst
@@ -64,7 +64,7 @@ List of Modules
.. autosummary::
:toctree: reference
- config
+ _config
constants
container
diff --git a/manim/__init__.py b/manim/__init__.py
index 2cd335ebb..ea5e67915 100644
--- a/manim/__init__.py
+++ b/manim/__init__.py
@@ -1,7 +1,13 @@
#!/usr/bin/env python
-# Importing config should be the first thing since other modules use it
+
+# Importing the config module should be the first thing we do, since other
+# modules depend on the global config dict for initialization. Note that the
+# global config dict is called 'config', just like the module itself. That's
+# why we import the module first with a different name, and then the dict.
+from . import config as _config
from .config import config
+
from .constants import *
from .animation.animation import *