Skip to content
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

Update documentation for v3.0.0 release #925

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

tomvothecoder
Copy link
Collaborator

@tomvothecoder tomvothecoder commented Jan 28, 2025

Description

This pull request includes several changes to the documentation and dependencies, along with updates to the installation and usage instructions. The most important changes include the addition of a new Sphinx extension, updates to the documentation to reflect the new version, and the removal of outdated references.

Documentation Updates:

Dependency Changes:

  • conda-env/ci.yml and conda-env/dev.yml: Added sphinx-copybutton to the list of dependencies. [1] [2]

Configuration Changes:

  • docs/source/conf.py: Added sphinx_copybutton to the list of Sphinx extensions.
  • docs/source/conf.py: Removed the html_theme_path setting.
  • Makefile: Add docs-versioned command to generate docs using sphinx-multiversion

Installation Instructions:

Removal of Outdated References:

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

If applicable:

  • New and existing unit tests pass with my changes (locally and CI/CD build)
  • I have added tests that prove my fix is effective or that my feature works
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have noted that this is a breaking change for a major release (fix or feature that would cause existing functionality to not work as expected)

@tomvothecoder tomvothecoder marked this pull request as ready for review January 28, 2025 21:44
Copy link
Collaborator Author

@tomvothecoder tomvothecoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @chengzhuzhang, this PR to update documentation is now ready for review. The description lists the summary of changes. Thank you!

Comment on lines +63 to +66
**ARM diags**, and **TC analysis** are implemented in v2 release. v3 introduces a
completely new back-end, replacing CDAT with Xarray and xCDAT. Due to the significant
scale of code changes, this has been incremented as a major release. The user-facing
API for running E3SM Diagnostics remains backward-compatible between v2 and v3.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added new section to Current State describing v3.

Comment on lines 109 to 122
(a) Latest Stable Release
-------------------------

1. Follow :ref:`"Others/Local" <conda_environment_others>` section for installing Conda.

2. Get the yml file to create an environment.

::

wget https://raw.githubusercontent.com/E3SM-Project/e3sm_diags/main/conda-env/prod.yml


3. Change ``prefix`` in that file to be your conda prefix. Typically, this will be ``~/miniconda3/envs/e3sm_diags_env``.
1. Follow :ref:`"Others/Local" <conda_environment_others>` section for installing conda.

4. Remove any cached conda packages. This will ensure that you always get the latest packages
Create a new conda environment with ``e3sm_diags`` installed and activate it:

::

mamba clean --all

5. Use conda to create a new environment with E3SM Diags (``e3sm_diags``) included.
These steps should not be necessary if you installed Mambaforge as suggested
above but may be needed if you have previously installed Miniconda3 instead: ::

conda install -y -n base mamba
conda config --add channels conda-forge
conda config --set channel_priority strict

Create a new conda environment with ``e3sm_diags`` installed and activate it: ::

mamba env create -f conda-env/prod.yml # Tip: Add the flag ``-n <name_of_env>`` to customize the name of the environment
# Tip: Add the flag ``-n <name_of_env>`` to customize the name of the environment
conda create -n e3sm_diags_env e3sm_diags
conda activate e3sm_diags_env

.. _dev-env:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace the "a) Latest Stable Release" section with just creating a fresh conda env with latest stable e3sm_diags.

Comment on lines +49 to +59
### Major refactor with v3 development

v3.0.0 marks a major milestone after nearly two years of work by the core development
team. This release introduces a completely new back-end, replacing CDAT with Xarray and
xCDAT. Due to the significant scale of code changes, this has been incremented as a
major release. The user-facing API for running E3SM Diagnostics remains backward-compatible between v2 and v3.

The modernization improves performance, usability, and maintainability, paving the way
for future enhancements to E3SM development. The refactored codebase is now more robust
and extensively covered by unit tests, setting a solid foundation for ongoing testing and development.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added new section to Current State describing v3.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great write up.

@tomvothecoder tomvothecoder self-assigned this Jan 28, 2025
@tomvothecoder tomvothecoder added the documentation Files in `docs` modified label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Files in `docs` modified
Projects
None yet
2 participants