Skip to content

Commit

Permalink
Merge pull request #256 from astronomy-commons/issue/254/landing-page
Browse files Browse the repository at this point in the history
Polish landing page
  • Loading branch information
camposandro authored Apr 1, 2024
2 parents c94b06b + 32a687b commit ef40c80
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 49 deletions.
3 changes: 2 additions & 1 deletion docs/gettingstarted.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ we encourage you to open an issue on the
.. toctree::

Installing LSDB <gettingstarted/installation>
Quickstart Guide <gettingstarted/quickstart>
Quickstart Guide <gettingstarted/quickstart>
Contribution Guide <gettingstarted/contributing>
38 changes: 38 additions & 0 deletions docs/gettingstarted/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
Contribution Guide
==================

Dev Guide - Getting Started
---------------------------

Before installing any dependencies or writing code, it's a great idea to create a
virtual environment. LINCC-Frameworks engineers primarily use `conda` to manage virtual
environments. If you have conda installed locally, you can run the following to
create and activate a new environment.

.. code-block:: console
>> conda create -n <env_name> python=3.10
>> conda activate <env_name>
Once you have created a new environment, you can install this project for local
development using the following commands:

.. code-block:: console
>> pip install -e .'[dev]'
>> pre-commit install
>> conda install pandoc
Notes:

1) The single quotes around ``'[dev]'`` may not be required for your operating system.
2) ``pre-commit install`` will initialize pre-commit for this local repository, so
that a set of tests will be run prior to completing a local commit. For more
information, see the Python Project Template documentation on
`pre-commit <https://lincc-ppt.readthedocs.io/en/latest/practices/precommit.html>`_.
3) Installing ``pandoc`` allows you to verify that automatic rendering of Jupyter notebooks
into documentation for ReadTheDocs works as expected. For more information, see
the Python Project Template documentation on
`Sphinx and Python Notebooks <https://lincc-ppt.readthedocs.io/en/latest/practices/sphinx.html#python-notebooks>`_.
2 changes: 1 addition & 1 deletion docs/gettingstarted/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ To install the package and a minimum number of dependencies you can run:
python -m pip install pytest # to validate package installation
In alternative, you can execute the `setup_dev` script which installs all the additional requirements
to setup a development environment. Read more about contributing to LSDB in our :doc:`Quickstart Guide <quickstart>`.
to setup a development environment. Read more about contributing to LSDB in our :doc:`Contribution Guide <contributing>`.

.. code-block:: bash
Expand Down
59 changes: 12 additions & 47 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,24 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to lsdb's documentation!
LSDB - Large Survey DataBase
========================================================================================

User Guide
----------
LSDB is a framework that facilitates and enables fast spatial analysis for extremely large astronomical catalogs
(i.e. querying and crossmatching O(1B) sources). It aims to address large-scale data processing challenges, in
particular those brought up by `LSST <https://www.lsst.org/about>`_.

You can install LSDB with `conda` or `pip`:
Built on top of Dask to efficiently scale and parallelize operations across multiple workers, it leverages
the `HiPSCat <https://hipscat.readthedocs.io/en/latest/>`_ data format for surveys in a partitioned HEALPix
(Hierarchical Equal Area isoLatitude Pixelization) structure.

.. code-block:: bash
In this website you will find:

>> # Conda installation
>> conda install -c conda-forge lsdb
>> # Pip installation
>> python3 -mpip install lsdb
See `notebooks <notebooks.html>`_ for examples.

Dev Guide - Getting Started
---------------------------

Before installing any dependencies or writing code, it's a great idea to create a
virtual environment. LINCC-Frameworks engineers primarily use `conda` to manage virtual
environments. If you have conda installed locally, you can run the following to
create and activate a new environment.

.. code-block:: console
>> conda create -n <env_name> python=3.10
>> conda activate <env_name>
Once you have created a new environment, you can install this project for local
development using the following commands:

.. code-block:: console
>> pip install -e .'[dev]'
>> pre-commit install
>> conda install pandoc
Notes:

1) The single quotes around ``'[dev]'`` may not be required for your operating system.
2) ``pre-commit install`` will initialize pre-commit for this local repository, so
that a set of tests will be run prior to completing a local commit. For more
information, see the Python Project Template documentation on
`pre-commit <https://lincc-ppt.readthedocs.io/en/latest/practices/precommit.html>`_.
3) Installing ``pandoc`` allows you to verify that automatic rendering of Jupyter notebooks
into documentation for ReadTheDocs works as expected. For more information, see
the Python Project Template documentation on
`Sphinx and Python Notebooks <https://lincc-ppt.readthedocs.io/en/latest/practices/sphinx.html#python-notebooks>`_.
- :doc:`Getting Started <gettingstarted>` guides on how to install and run an example workflow
- :doc:`Tutorials <tutorials>`, and :doc:`Notebooks <notebooks>` with more advanced usage examples
- The detailed :doc:`API Reference <autoapi/index>` documentation

Learn more about contributing to this repository in our :doc:`Contribution Guide <gettingstarted/contributing>`.

.. toctree::
:hidden:
Expand Down

0 comments on commit ef40c80

Please sign in to comment.