-
Notifications
You must be signed in to change notification settings - Fork 7
Improvements to developer documentation #161
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
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
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,20 @@ | ||
Documentation | ||
============= | ||
|
||
Build the Docs | ||
-------------- | ||
The documentation is built using files in the `astrodb-template-db` submodule. | ||
Be sure to update the submodule before building the docs. | ||
.. code-block:: bash | ||
|
||
git submodule update --init --recursive | ||
|
||
|
||
To build the docs, use `sphinx-autobuild <https://pypi.org/project/sphinx-autobuild/>`_. | ||
|
||
.. code-block:: bash | ||
|
||
pip install -e ".[docs]" | ||
sphinx-autobuild docs docs/_build/html | ||
|
||
The docs will then be available locally at <http://127.0.0.1:8000>. |
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,18 @@ | ||
Ingest functions | ||
================ | ||
|
||
Ingest function design guidelines | ||
--------------------------------- | ||
* ingest one thing. E.g., one parameter, or one spectrum. | ||
* use `raise_error = True/False`. | ||
* use :py:mod:`exit_function<astrodb_utils.utils.exit_function>` to help | ||
* If `True`, raise an error if the ingest fails. | ||
* If `False`, return `None` and log warning if the ingest fails and log warning. | ||
|
||
- use helper functions to get constrained values from the database such as regime, instrument, etc. | ||
- * :py:mod:`astrodb_utils.utils.get_constrained_value` | ||
|
||
Need to decide | ||
-------------- | ||
- ways to accept input. E.g, parameter= parameter, value=value, OR paramet dict = {parameter: value}. See https://github.com/astrodbtoolkit/astrodb_utils/issues/13 | ||
|
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 |
---|---|---|
|
@@ -47,6 +47,7 @@ docs = [ | |
"pydata-sphinx-theme", | ||
"pandoc", | ||
"sphinx_mdinclude", | ||
"doc8" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just for my edification — how's doc8 used? |
||
] | ||
all = ["astrodb_utils[test, docs]"] | ||
|
||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice and concise.