-
Notifications
You must be signed in to change notification settings - Fork 7
Expansion of docs for making a new database #157
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
12 commits
Select commit
Hold shift + click to select a range
dae06a8
more info about the felis scripts
kelle 3e07bd6
fix pointer to template docs
kelle 0a54085
lint from copilot
kelle e7bd0e3
Update docs/pages/make_new_db/getting_started_new_database.rst
kelle 7252a2f
Update docs/pages/make_new_db/getting_started_new_database.rst
kelle fa2b3ab
Update docs/pages/make_new_db/getting_started_new_database.rst
kelle 70ee14c
Update docs/pages/make_new_db/getting_started_new_database.rst
kelle af780d9
fix TOC
kelle 8a53eaf
Merge branch 'newdb-docs' of github.com:kelle/astrodb-utils into newd…
kelle 95408f3
nitpicks
kelle 688549e
add bit about LICENSE file
kelle c81bfc7
fix link to converting spectra
kelle 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 |
---|---|---|
@@ -1,19 +1,29 @@ | ||
Ingesting and Modifying Data | ||
==================================== | ||
============================ | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 2 | ||
:titlesonly: | ||
|
||
ingesting_publications | ||
spectra/* | ||
ingest_scripts | ||
spectra | ||
|
||
|
||
|
||
.. note:: | ||
If you want to add or modify the tables or columns (rather than just add/modify database contents), see :doc:`/pages/make_new_db/modifying_schema`. | ||
|
||
|
||
API documentation | ||
API Documentation | ||
----------------- | ||
|
||
:py:mod:`astrodb_utils.sources.ingest_source` | ||
Function to ingest source data | ||
|
||
:py:mod:`astrodb_utils.sources.ingest_names` | ||
Function to ingest alternative name data | ||
|
||
:py:mod:`astrodb_utils.utils.ingest_instrument` | ||
Function to ingest instrument data |
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 |
---|---|---|
@@ -1,15 +1,35 @@ | ||
Making a New Database | ||
====================================== | ||
===================== | ||
|
||
.. toctree:: | ||
the_template_schema | ||
modifying_schema | ||
:titlesonly: | ||
:maxdepth: 2 | ||
|
||
../template_schema/template_schema | ||
modifying_schema | ||
|
||
|
||
Overview | ||
-------- | ||
|
||
1. Make a new Github repository using the `astrodb-template-db <https://github.com/astrodbtoolkit/astrodb-template-db>`_ template repository. | ||
2. :doc:`Modify the schema <modifying_schema>` to suit your use case. | ||
3. Ingest data using ``astrodb_utils`` functions. | ||
#. Make a new GitHub repository using the `astrodb-template-db <https://github.com/astrodbtoolkit/astrodb-template-db>`_ template repository. | ||
|
||
#. Update the ``README.md`` file with your database name and description. | ||
|
||
* Please retain the credit line to the AstroDB Toolkit. | ||
|
||
#. Update the ``LICENSE`` file with your license of choice. | ||
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. does our license require that they use any specific license? 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. Opened a new issue for this topic. |
||
|
||
#. :doc:`Modify the schema <modifying_schema>` in ``schema/schema.yaml`` to suit your use case. | ||
|
||
* We highly recommend using an AI coding assistant (like GitHub Copilot) when modifying this file. | ||
|
||
#. Generate a new entity relationship diagram (ERD) and documentation pages for your schema. | ||
|
||
* To make a new ERD, run ``scripts/build_schema_docs.py``. This generates a PNG file in the ``docs/figures/`` directory. | ||
|
||
* To make new documentation pages, run ``scripts/build_schema_docs.py``. This generates a new set of Markdown files in the ``docs/schema/`` directory. | ||
|
||
#. Ingest data by modifying the JSON files by hand (in the ``data/`` directory) or by using ``astrodb_utils`` functions. | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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
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.