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

📚 docs documentation overhaul #86

Merged

Conversation

JPchico
Copy link
Collaborator

@JPchico JPchico commented Nov 17, 2023

(WIP) Improvements to the documentation before the release.

Jonathan Chico added 3 commits September 22, 2023 11:31
Changing the theme of the documentation to make it more similar to the qe theme.

Adding a tutorial for the minimization calculation.

General improvements to the documentation.
@JPchico JPchico added the docs handling the documentation label Nov 17, 2023
@JPchico JPchico self-assigned this Nov 17, 2023
@JPchico
Copy link
Collaborator Author

JPchico commented Nov 17, 2023

Hi @chrisjsewell and @sphuber I have finally had some time to work on the documentation. It is a work in progress and I plan to be making more changes and additions in the coming days.

I drew quite heavily from the QE plugin structure and formatting as I think it is the most complete right now.

Let me know if you think that the structure makes sense and I'll keep updating regularly.

Copy link

codecov bot commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (77f4594) 85.30% compared to head (c44a673) 85.30%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop      #86   +/-   ##
========================================
  Coverage    85.30%   85.30%           
========================================
  Files           19       19           
  Lines         1599     1599           
========================================
  Hits          1364     1364           
  Misses         235      235           
Flag Coverage Δ
pytests 85.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sphuber
Copy link
Member

sphuber commented Nov 20, 2023

Thanks a lot @JPchico . Unfortunately, since the docs build fails (maybe just warnings) I cannot see the rendered version easily. Could you try addressing the failure. It would be much easier to review by looking at the built docs.

@chrisjsewell
Copy link
Member

Could you try addressing the failure.

Yeh looks like you need to fix some of the toctree

pickling environment... /home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/index.md:25: WARNING: toctree contains reference to nonexisting document 'reference/api/index'
done
checking consistency... /home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/developers/intro.md: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/reference/api/auto/aiida_lammps/calculations/index.rst: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/reference/api/auto/aiida_lammps/data/index.rst: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/reference/api/auto/aiida_lammps/parsers/index.rst: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/reference/api/auto/aiida_lammps/utils/index.rst: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/reference/api/auto/aiida_lammps/validation/index.rst: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/reference/api/auto/aiida_lammps/workflows/index.rst: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/users/example_md.md: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/users/example_minimize.md: WARNING: document isn't included in any toctree
/home/docs/checkouts/readthedocs.org/user_builds/aiida-lammps/checkouts/86/docs/source/users/get_started.md: WARNING: document isn't included in any toctree

Jonathan Chico and others added 2 commits November 20, 2023 13:55
Adding a tutorial for the md and an example.

Moving information to the topics related to the data.
@JPchico JPchico changed the title 77 books docs documentation overhaul 📚 docs documentation overhaul Nov 20, 2023
Jonathan Chico and others added 2 commits November 20, 2023 15:02
@JPchico
Copy link
Collaborator Author

JPchico commented Nov 20, 2023

Hi! sorry, I did not notice that the building was failing in the CI since it was working locally. I think it should be fixed now.

Adding the information related to the calculations topics.
@JPchico
Copy link
Collaborator Author

JPchico commented Nov 22, 2023

@sphuber and @chrisjsewell I have fixed the issues with the build and I have added a bit more of information. There is still more work needed but I think that it is getting there.

I also changed some of the examples to use the requests library to download the files needed, like the data.rhodo for the raw calculation.

Copy link
Member

@sphuber sphuber left a comment

Choose a reason for hiding this comment

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

Thanks a lot @JPchico great work! I have a few minor comments but overall it reads really well and think it is a great improvement. Fine for me to merge after you addresss the few points left in the code

docs/source/_static/logo.pptx Outdated Show resolved Hide resolved
docs/source/index.md Outdated Show resolved Hide resolved
docs/source/index.md Show resolved Hide resolved
docs/source/topics/data/potential.md Outdated Show resolved Hide resolved
docs/source/tutorials/first_raw.md Outdated Show resolved Hide resolved
docs/source/tutorials/include/scripts/run_raw_basic.py Outdated Show resolved Hide resolved
examples/launch_lammps_raw_script.py Outdated Show resolved Hide resolved
@JPchico JPchico marked this pull request as ready for review November 24, 2023 08:37
@JPchico
Copy link
Collaborator Author

JPchico commented Nov 24, 2023

@sphuber and @chrisjsewell I have made the suggested changes and added a bit more on the workflows and calculations topics. I think that this is a quite good stage for the documentation right now.
If you agree I will merge and close the issue.

After that I will deal with two small things that I realized while dealing with this (will open issues on those now) and I think that then we can make the release. I have never made a PyPI release, but for what I see it should automatically done when the release is done in the github side. Is that correct?

@JPchico JPchico requested a review from sphuber November 24, 2023 08:51
@JPchico JPchico merged commit 12a4c95 into aiidaplugins:develop Nov 25, 2023
10 checks passed
@sphuber
Copy link
Member

sphuber commented Nov 25, 2023

Yep, the cd.yml workflow should take care of that. All you have to do is make a commit that bumps the version number (and update the CHANGELOG.md), tag it and then push the tag. The pushed tag will trigger the workflow and if all tests/pre-commit pass, it will build and push to PyPI.

@JPchico JPchico mentioned this pull request Nov 25, 2023
@sphuber
Copy link
Member

sphuber commented Nov 25, 2023

I would also propose that after that is done, we simply merge develop into master and just use master as the main development branch and get rid of develop. We have been using this approach in all other aiidateam and aiidaplugins repos and it works perfectly fine. We really don't have the need for a two branch approach.

@JPchico JPchico deleted the 77-books-docs-documentation-overhaul branch November 28, 2023 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs handling the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants