Skip to content

Commit

Permalink
update: update index page
Browse files Browse the repository at this point in the history
  • Loading branch information
shenyulu committed Dec 4, 2024
1 parent 0742ed8 commit 485563e
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 31 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ repos:
rev: 24.8.0
hooks:
- id: black
types: [python]
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ sphinx-gallery == 0.17.1
sphinx-autoapi == 3.3.2
sphinx-copybutton == 0.5.2
sphinx-book-theme == 1.1.3
sphinx_design == 0.6.1
1 change: 1 addition & 0 deletions docs/source/api_index/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Interpolation
easyclimate.interp.point2mesh
easyclimate.interp.mesh2mesh
easyclimate.interp.interp1d_vertical_model2pressure
easyclimate.interp.interp1d_vertical_pressure2altitude

Plot
----------------------------------------
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
# copy button
"sphinx_copybutton",
"sphinx.ext.githubpages",
"sphinx_design",
]

templates_path = ["_templates"]
Expand Down
95 changes: 64 additions & 31 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
.. easyclimate documentation master file, created by
sphinx-quickstart on Mon Mar 20 14:33:30 2023.
.. Easy climate
.. Easy Climate
.. =======================================
.. .. image:: _static/easyclimate-logo.svg
.. Easy climate is a Python library for processing spatial data (bathymetry, geophysics surveys, etc)
.. Easy Climate is a Python library for processing spatial data (bathymetry, geophysics surveys, etc)
.. and interpolating it on regular grids (i.e., gridding).
.. Our core interpolation methods are inspired by machine-learning.
Expand Down Expand Up @@ -34,41 +34,80 @@
<strong>Easy Climate is just here to help you!</strong>
</p>

Installation🛒
------------------------

You can do a direct install via `pip` by using:
You can directly install it via `pip` by using 🛒

.. code-block:: bash
$ pip install easyclimate
Online experience💻
------------------------
Just click on the link below and wait for the online environment to be configured before using the Easyclimate package on Jupyter notebook online.
.. image:: https://mybinder.org/badge_logo.svg
:target: https://mybinder.org/v2/gh/shenyulu/easyclimate/main?labpath=docs%2Fexample
----

How to cite📣
-----------------------
.. grid:: 1 2 1 2
:margin: 5 5 0 0
:padding: 0 0 0 0
:gutter: 4

If you are using **Easy Climate** and would like to cite it in academic publication, we would certainly appreciate it. We recommend the following citations.
We provide a `Zenodo citation and DOI <https://zenodo.org/doi/10.5281/zenodo.10279567>`__ for this purpose:
.. grid-item-card:: :octicon:`info` Try Online🤗
:text-align: center
:class-title: sd-fs-5
:class-card: sd-p-3

An example BibTeX entry:
New to Easy Climate? Try!

.. code:: BibTeX
.. button-link:: https://mybinder.org/v2/gh/shenyulu/easyclimate/main?labpath=docs%2Fexample
:click-parent:
:color: primary
:outline:
:expand:

@misc{easyclimate_v2024_11_0,
author = {Yulu Shen},
title = {easyclimate: v2024.11.0},
month = dec,
year = 2024,
doi = {10.5281/zenodo.10279567},
url = {https://doi.org/10.5281/zenodo.10279567}
}
Binder Online Engine :octicon:`rocket`

.. grid-item-card:: :octicon:`comment-discussion` Need help?
:text-align: center
:class-title: sd-fs-5
:class-card: sd-p-3

Ask on our community channels.

.. button-link:: https://github.com/shenyulu/easyclimate/discussions
:click-parent:
:color: primary
:outline:
:expand:

Join the conversation :octicon:`link-external`

.. grid-item-card:: :octicon:`file-badge` Reference documentation
:text-align: center
:class-title: sd-fs-5
:class-card: sd-p-3

A list of modules and functions.

.. button-ref:: api
:ref-type: ref
:color: primary
:outline:
:expand:

.. grid-item-card:: :octicon:`bookmark` Using Easy Climate for research?
:text-align: center
:class-title: sd-fs-5
:class-card: sd-p-3

Citations help support our work!

.. button-ref:: citenote
:ref-type: ref
:color: primary
:outline:
:expand:

Cite our repository

----

.. toctree::
:maxdepth: 1
Expand Down Expand Up @@ -116,6 +155,7 @@ An example BibTeX entry:

./api_index/index.rst
changes.md
./static_docs/cite

.. toctree::
:maxdepth: 1
Expand All @@ -126,13 +166,6 @@ An example BibTeX entry:
Source code on GitHub <https://github.com/shenyulu/easyclimate>


Indices and tables🧭
------------------------------

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

.. caution::
🚨 This package is still undergoing rapid development. 🚨

Expand Down
27 changes: 27 additions & 0 deletions docs/source/static_docs/cite.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
.. _citenote:

Citing Easy Climate
========================

This is research software **made by scientists**. Citations help us justify the effort
that goes into building and maintaining this project📣.

If you used Easy Climate in your research, please consider citing our repository:

Shenyulu. (2024). shenyulu/easyclimate. (Version 2024.12.0) [Software]. Zenodo. https://doi.org/10.5281/zenodo.10279567

This is an open-access repository and can be freely downloaded from
https://doi.org/10.5281/zenodo.10279567

Here is a Bibtex entry to make things easier if you're using Latex:

.. code:: bibtex
@misc{easyclimate_v2024_12_0,
author = {Yulu Shen},
title = {easyclimate: v2024.12.0},
month = dec,
year = 2024,
doi = {10.5281/zenodo.10279567},
url = {https://doi.org/10.5281/zenodo.10279567}
}

0 comments on commit 485563e

Please sign in to comment.