From 74ad0b40f1fd4617825f7e82ec071284bd538624 Mon Sep 17 00:00:00 2001 From: mmcky Date: Wed, 27 Nov 2024 15:19:38 +1100 Subject: [PATCH] update pages proof-read --- docs/source/contributing.rst | 17 +++++++++++------ docs/source/setup.rst | 4 ++-- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/docs/source/contributing.rst b/docs/source/contributing.rst index bf8b15ed..a158a0d8 100644 --- a/docs/source/contributing.rst +++ b/docs/source/contributing.rst @@ -9,11 +9,15 @@ Set up a Conda development environment One of the advantages of the `Anaconda Python environment `_ is that it is cheap to set up (and discard) Python environments for development versions of packages and populate them with your -favorite scientific tools. For example, if you're working on QuantEcon.py you might find it useful to set up an +favorite scientific tools. + +For example, if you're working on QuantEcon.py you might find it useful to set up an environment (containing NumPy, SciPy, etc.) that uses your development version rather than the default ones. This facilitates contributing to QuantEcon.py without worrying about corrupting the Python environment on which your other work depends. +You can learn more about `managing environments here `_ + Write tests ----------- @@ -23,19 +27,20 @@ Write documentation ------------------- We try to maintain a simple and consistent format for inline documentation, known in the Python world as docstrings. -The format we use is known as `numpydoc `_. + +The format we use is known as `numpydoc `_. + It was developed by the numpy and scipy teams and is used in many popular packages. Adhering to this standard helps us * Provide a sense of consistency throughout the library - * Give users instant access to necessary information at the interpreter prompt (either via the built-in Python function help(object_name) or the Jupyter object_name?) - * Easily generate a reference manual using sphinx's autodoc and apidoc -Instructions to compile a local version of the documentation can be found `here `_. -This can be useful if you would like to check how your docstrings render in html prior to submitting a pull request. +It is always useful to build the docs locally before setting up a pull request, and lets you check how your docstrings render in html prior to submitting a pull request. + +However once you open a PR a preview of the docs is provided as one of the GitHub Actions. Further questions ----------------- diff --git a/docs/source/setup.rst b/docs/source/setup.rst index 8b840075..316f2b06 100644 --- a/docs/source/setup.rst +++ b/docs/source/setup.rst @@ -63,9 +63,9 @@ Once you have downloaded the source files then the package can be installed by r .. code:: bash cd QuantEcon.py - pip install ./ + pip install . -(To learn the basics about setting up Git see `this link `_). +(To learn the basics about setting up Git see `this link `_). Examples and Sample Code ------------------------