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

More user-friendly docs (Addressing Issue #1175) #1190

Closed
wants to merge 5 commits into from

Conversation

richardjgowers
Copy link
Member

Docs split into User guide, then API reference

Fixes #1175

Changes made in this Pull Request:

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

@richardjgowers
Copy link
Member Author

So Issue #1175 seemed to get warmly received, so I've started an implementation of it.

I tried to come up with topics that covers everything to a moderate level, if anyone can think of more topics or a better way to order topics, then this is the PR for that!

@orbeckst orbeckst changed the title Addressing Issue #1175 More user-friendly docs (Addressing Issue #1175) Jan 28, 2017
@orbeckst
Copy link
Member

That's a good structure. Now we just need some content... Should we essentially merge this as an incomplete PR and then raise Issues/PRs for things that are still incomplete? Or make PRs against this branch? In any case, I think it would be good to have sub-issues to encourage splitting the load.

@jbarnoud
Copy link
Contributor

I would advocate against merging the PR as it, even to be filled latter on. This would break the develop branch, which we try to avoid as much as possible.

@richardjgowers
Copy link
Member Author

We can PR onto this branch, then merge this when everything is done I guess

::

for segment in u.segments:
segment.atoms.guess_bonds()
Copy link
Member

Choose a reason for hiding this comment

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

identation seems wrong

Copy link
Member

Choose a reason for hiding this comment

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

no it's correct on that line. 4 spaces it aligns as it should.

@@ -0,0 +1,7 @@
.. -*- coding: utf-8 -*-

.. All the advanced options in Reader usage and creation
Copy link
Member

Choose a reason for hiding this comment

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

Also MemoryReader

>>> vel = ag.velocities
NoDataError: Timestep does not contain velocities

These properties return a **copy** of the data for the AtomGroup at the
Copy link
Member

Choose a reason for hiding this comment

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

Do really return a copy of the arrays? That seems wasteful and slow in terms of system memory. I thought it was a reference that is returned.

Copy link
Member

Choose a reason for hiding this comment

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

I think we use fancy slicing on ts._pos so yes, it will be a copy.

@jbarnoud
Copy link
Contributor

jbarnoud commented Mar 28, 2017 via email

@richardjgowers
Copy link
Member Author

richardjgowers commented Mar 28, 2017 via email

@orbeckst orbeckst modified the milestones: 0.16.0, 0.16.x Apr 7, 2017
@orbeckst
Copy link
Member

@richardjgowers is this PR something we want to get into 0.16.x or should we re-target to 0.17.0?

@richardjgowers
Copy link
Member Author

@orbeckst ideally it gets merged as soon as its finished. This isn't code breaking/making so I don't think we're bound by version numbers.



API Reference
=============
Copy link
Member

Choose a reason for hiding this comment

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

With the sidebar navigation in #1126 I am pretty sure that we need a single toctree. I would suggest to keep the top-toctree pretty light, essentially

  1. Overview
  2. User guide
  3. API Reference
  4. References

where User guide is what you called "MDAnalysis Basics"

Copy link
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

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

Let's rebase after #1126 has been merged and see if the docs are acceptable. Then we can add it to 0.16.1; otherwise we keep working on it and put it into the next release.

Docs split into User guide, then API reference: outlining
the general structure of the docs.
- bonds angles and torsions section of docs
- Added rst docs for bonds angles torsions
- Updated topologyobjects docstrings
- Update advanced_reader.rst
- Update advanced_universe.rst
@orbeckst
Copy link
Member

I am currently rebasing to develop and cleaning up the history. I will force-push to this branch.

@orbeckst orbeckst force-pushed the issue-1175-doc_restructure branch from 85ee177 to c5d6d6c Compare May 25, 2017 00:35
@orbeckst orbeckst modified the milestones: 0.17.0, 0.16.x Jun 16, 2017
@orbeckst
Copy link
Member

I moved it to 0.17.0 – I don't think that anyone has currently got the bandwidth to make this happen for 0.16.2.

@orbeckst orbeckst modified the milestones: 1.0, 0.17.0 Sep 12, 2017
@orbeckst
Copy link
Member

I moved it to 1.0.

Obviously, any improvements to the docs are more than welcome at any time, but this should not hold up a 0.17.

@orbeckst
Copy link
Member

Will the completion of the UserGuide by @lilyminium make this PR obsolete?

I think we still want to clean up the user docs and make them more API centric and have the UserGuide as the explanatory document – opinions?

@lilyminium
Copy link
Member

@orbeckst As part of GSOD I was hoping to clean up the API docs as well, yes. I'm keeping an ongoing list of more significant doc issues in #2401

@richardjgowers
Copy link
Member Author

I think this is obsolete thanks to @lilyminium

@RMeli RMeli deleted the issue-1175-doc_restructure branch December 23, 2023 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restructure documentation for user-friendliness
5 participants