-
Notifications
You must be signed in to change notification settings - Fork 3
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
Preparing a new release #163
Conversation
WalkthroughThe recent updates enhance the documentation and deployment processes for the Element Embeddings package. Key additions include automated workflows for documentation deployment using GitHub Actions, improved installation instructions, and enhanced clarity in the README and other documentation files. These changes aim to streamline user experience and accessibility while ensuring that the latest features and updates are effectively communicated. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GitHub
participant MkDocs
participant Repo
User->>GitHub: Push changes to main
GitHub->>Repo: Trigger workflow
Repo->>MkDocs: Build documentation
MkDocs->>Repo: Deploy documentation to site
Repo->>GitHub: Push updated docs to develop
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #163 +/- ##
=======================================
Coverage 90.75% 90.75%
=======================================
Files 12 12
Lines 1266 1266
=======================================
Hits 1149 1149
Misses 117 117 ☔ View full report in Codecov by Sentry. |
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (3)
docs/.overrides/main.html (1)
8-8
: Remove unnecessary blank lines.There are multiple unnecessary blank lines that can be removed to improve readability.
{% endblock %} - {% block content %}
.github/workflows/latest_docs.yml (1)
1-1
: Ensure correct naming conventions.The workflow name should be more descriptive and consistent with naming conventions.
-name: Build/Publish Develop Docs +name: Build and Publish Documentationdocs/contribution.md (1)
18-18
: Add missing article "the".Consider adding the article "the" before "docstring table" for better readability.
- 2. Edit docstring table in [core.py](https://github.com/WMD-group/ElementEmbeddings/tree/main/src/elementembeddings/core.py). + 2. Edit the docstring table in [core.py](https://github.com/WMD-group/ElementEmbeddings/tree/main/src/elementembeddings/core.py).Tools
LanguageTool
[uncategorized] ~18-~18: You might be missing the article “the” here.
Context: .../data/element_representations). 2. Edit docstring table in [core.py](https://github.com/W...(AI_EN_LECTOR_MISSING_DETERMINER_THE)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (15)
- .github/workflows/latest_docs.yml (1 hunks)
- .github/workflows/stable_docs.yml (1 hunks)
- README.md (3 hunks)
- docs/.overrides/main.html (1 hunks)
- docs/contribution.md (1 hunks)
- docs/index.md (1 hunks)
- docs/python_api/utils/io.md (1 hunks)
- docs/python_api/utils/math.md (1 hunks)
- docs/python_api/utils/species.md (1 hunks)
- mkdocs.yml (2 hunks)
- requirements-dev.txt (1 hunks)
- setup.py (3 hunks)
- src/elementembeddings/core.py (1 hunks)
- src/elementembeddings/utils/init.py (1 hunks)
- src/elementembeddings/utils/config.py (1 hunks)
Files skipped from review due to trivial changes (7)
- docs/python_api/utils/io.md
- docs/python_api/utils/math.md
- docs/python_api/utils/species.md
- requirements-dev.txt
- src/elementembeddings/core.py
- src/elementembeddings/utils/init.py
- src/elementembeddings/utils/config.py
Additional context used
yamllint
mkdocs.yml
[warning] 20-20: wrong indentation: expected 12 but found 8
(indentation)
[error] 23-23: trailing spaces
(trailing-spaces)
[warning] 24-24: wrong indentation: expected 10 but found 6
(indentation)
LanguageTool
docs/contribution.md
[uncategorized] ~18-~18: You might be missing the article “the” here.
Context: .../data/element_representations). 2. Edit docstring table in [core.py](https://github.com/W...(AI_EN_LECTOR_MISSING_DETERMINER_THE)
Additional comments not posted (20)
docs/.overrides/main.html (1)
13-17
: Conditional block for notebook download looks good.The conditional block for checking
page.nb_url
and rendering a download link is correctly implemented.docs/index.md (1)
19-20
: Documentation enhancements forelementembeddings.utils
look good.The additions of
:docstring:
and:members:
directives enhance the documentation by providing detailed information about the utilities..github/workflows/latest_docs.yml (3)
2-5
: Trigger onmain
branch looks good.The workflow is correctly set to trigger on pushes to the
main
branch.
6-7
: Permissions settings are appropriate.The permissions settings for
contents: write
are appropriate for this workflow.
10-27
: Workflow steps look good.The steps for checking out the repository, setting up Python, installing dependencies, configuring Git, and deploying the documentation are correctly implemented.
.github/workflows/stable_docs.yml (7)
1-5
: LGTM!The workflow name and release triggers are appropriate.
7-8
: LGTM!The permissions are appropriate for deploying documentation.
10-15
: LGTM!The step correctly checks out the repository with full history.
16-18
: LGTM!The step correctly sets up Python 3.10.
19-22
: LGTM!The step correctly installs the necessary dependencies.
23-26
: LGTM!The step correctly configures Git for the deployment.
27-28
: LGTM!The step correctly builds and deploys the documentation using
mike
.mkdocs.yml (2)
19-22
: LGTM!The changes to the navigation structure improve the organization and accessibility of the documentation.
Also applies to: 27-27
Tools
yamllint
[warning] 20-20: wrong indentation: expected 12 but found 8
(indentation)
48-48
: LGTM!The addition of the default version improves the documentation configuration.
setup.py (3)
8-8
: LGTM!The version increment is appropriate for the new release.
28-28
: LGTM!The addition of the new entry in
package_data
ensures that the necessary data files are included in the package.
63-63
: LGTM!The addition of the new dependency enhances the documentation capabilities.
README.md (3)
14-14
: LGTM!The update to specify that the package provides tools for analyzing both elemental and ionic species embeddings data is clear and accurate.
58-58
: LGTM!The update to the pip installation command to include documentation and development dependencies is clear and improves usability.
175-175
: LGTM!The clarification of the path for updating the README file when adding a new representation scheme ensures accuracy and accessibility.
@@ -16,11 +16,15 @@ nav: | |||
- 'Core module': 'python_api/core.md' | |||
- 'Composition module': 'python_api/composition.md' | |||
- 'Plotter module': 'python_api/plotter.md' | |||
- 'Utility module': | |||
- 'io': python_api/utils/io.md |
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.
Fix indentation and trailing spaces.
There are issues with indentation and trailing spaces in the nav
section.
- - 'io': python_api/utils/io.md
+ - 'io': python_api/utils/io.md
- - name: Setup Docs Deploy
+ - name: Setup Docs Deploy
- - 'Ionic Speices (notebook)': tutorial/species.ipynb
+ - 'Ionic Species (notebook)': tutorial/species.ipynb
Also applies to: 23-23, 24-24
Tools
yamllint
[warning] 20-20: wrong indentation: expected 12 but found 8
(indentation)
Preparing a new release
Description
Type of change
How Has This Been Tested?
Test Configuration:
Reviewers
N/A
Checklist:
Summary by CodeRabbit
New Features
io
,math
, andspecies
.Documentation Updates
mkdocs.yml
for better navigation structure and default version setting.Versioning and Dependency Management