-
-
Notifications
You must be signed in to change notification settings - Fork 67
Docs readthrough [WIP] #962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aphearin
merged 10 commits into
astropy:master
from
Christopher-Bradshaw:docs-readthrough
Jan 7, 2020
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
c2b50bc
first look
Christopher-Bradshaw d57974c
first draft at getting started docs
Christopher-Bradshaw 82f2d2f
more docs
Christopher-Bradshaw 96a761c
lots of unused verbose
Christopher-Bradshaw 63db1c8
some other stuff...
Christopher-Bradshaw b74a1ec
more info in CAM docs
Christopher-Bradshaw d2b810b
Remove changes to approx_cell1_size
Christopher-Bradshaw 65bcb33
cleanup comments to self
Christopher-Bradshaw c00a984
Resolved duplicate getting_started label
aphearin f8c7372
Fixed sphinx reference bug
aphearin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
docs/quickstart_and_tutorials/development/getting_started.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| .. _getting_started_developers: | ||
|
|
||
| ************************* | ||
| Contributing to Halotools | ||
| ************************* | ||
|
|
||
| All halotools development happens in the github repository. To contribute, first clone the repo. | ||
| Then install the dependencies listed on the :ref:`step_by_step_install` page. | ||
|
|
||
|
|
||
| Code | ||
| ==== | ||
|
|
||
| Halotools contains a compiled component. To compile all cython (``.pyx``) files inplace run, :: | ||
|
|
||
| python3 setup.py build_ext --inplace | ||
|
|
||
| If you modify a ``.pyx`` file use the same command to recompile it. Subsequent runs will only compile files whose source has changed and so will be much quicker. | ||
|
|
||
| Halotools also has comprehensive unit tests and uses pytest. To run all tests, assuming you are in the base of the repository, first change directory into ``halotools`` and then run ``pytest``. :: | ||
|
|
||
| cd halotools | ||
| pytest | ||
|
|
||
| If you have made a change and only want to run a subset of tests run, :: | ||
|
|
||
| pytest -k tests_matching_this_string_will_run | ||
|
|
||
| Run ``pytest --help`` for a full list of options. | ||
|
|
||
|
|
||
| Docs | ||
| ==== | ||
|
|
||
| First ensure that the halotools package and sphinx are installed. From the base of the repository run, :: | ||
|
|
||
| pip3 install -e . | ||
| pip3 install sphinx==1.3.1 # see docs/conf.py for the sphinx version | ||
|
|
||
| Then build documentation with, :: | ||
|
|
||
| cd docs | ||
| make html | ||
|
|
||
| You can see the built documentation in ``docs/_build/html/``. The easiest way to view it in your browser is to spin up a local server. One way to do this is to run, from the built directory, :: | ||
|
|
||
| python3 -m http.server | ||
|
|
||
| The docs should then be viewable at ``localhost:8000`` (the port will be logged when you start the server). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.