geodynamics / aspect

A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
https://aspect.geodynamics.org/
Other
217 stars 232 forks source link

sphinx online documentation #4595

Open tjhei opened 2 years ago

tjhei commented 2 years ago

Meta issue for anything related to the new documentation.

gassmoeller commented 2 years ago

We have a very early version of the documentation online here: https://aspect-doc.readthedocs.io/en/latest/user/index.html

cmills1095 commented 2 years ago
cmills1095 commented 2 years ago

https://aspect-documentation.readthedocs.io/en/latest/user/index.html

tjhei commented 2 years ago

awesome. Would it make sense to get rid of the index page and always show user/ ? I don't like that we don't have the navbar on the left on the front page.

danieldouglas92 commented 2 years ago

I'll take the prescribed_velocity cookbook!

tjhei commented 2 years ago

How are we going to refer to ASPECT: just as "ASPECT" or using <span class="smallcaps">ASPECT</span>?

cmills1095 commented 2 years ago

How are we going to refer to ASPECT: just as "ASPECT" or using <span class="smallcaps">ASPECT</span>?

Do the tags actually change anything? It seemed like it didn’t so I deleted most of them, but it would be simple to use them if thats what y’all want

cmills1095 commented 2 years ago

awesome. Would it make sense to get rid of the index page and always show user/ ? I don't like that we don't have the navbar on the left on the front page.

This (and some other issues I’ve seen brought up) are a function of the pydata theme we’re using. I’m in no way married to that theme and it should be easy to change, here’s the available themes that I’m aware of: https://sphinx-themes.org/

bobmyhill commented 2 years ago

I don't think the index problem is due to the theme. At least, the sample at https://sphinx-themes.org/ behaves differently to the current aspect docs.

The index should normally reside at the left hand side, or in the drop down menu for smartphones.

(Personally, I like the standard readthedocs theme, but pydata is also good.)

alarshi commented 2 years ago

I will work on the Artificial viscosity smoothing cookbook and convection in 2D box.

tjhei commented 2 years ago

The one we are currently using is not great on mobile (or a narrow browser window) because the index should be in a dropdown instead of taking up the whole screen. I don't have a strong preference for a theme, but I think we might want to customize the colors a little bit (like a reddish header or sidebar or something)

tjhei commented 2 years ago

Do the tags actually change anything? It seemed like it didn’t so I deleted most of them, but it would be simple to use them if thats what y’all want

What to people think? Is there a way to define a macro so that we can change one central location, @cmills1095 ?

gassmoeller commented 2 years ago

Regarding the theme: I like what Menno did with the WorldBuilder documentation, should we copy that? https://gwb.readthedocs.io/en/latest/

bobmyhill commented 2 years ago

@tjhei, I think it's the structure of index.md that controls how the index is displayed, not the theme. See, for example, Menno's index.md: https://raw.githubusercontent.com/GeodynamicWorldBuilder/WorldBuilder/main/doc/sphinx/index.md

Vs. the current ASPECT one: https://raw.githubusercontent.com/geodynamics/aspect/main/doc/sphinx/index.md

tjhei commented 2 years ago

Vs. the current ASPECT one:

This is not sphinx/index.md by the way but in a subdirectory /user/.

bobmyhill commented 2 years ago

Ah yes, sorry. Comment updated. Nevertheless, the full TOC would be in the drop down if it were specified in https://raw.githubusercontent.com/geodynamics/aspect/main/doc/sphinx/index.md

cmills1095 commented 2 years ago

It seems important to clarify what is meant by "clean up the formatting," a phrase I've been using quite liberally without explaining. Here's a list (which may be updated if I remember something else) of what I'm doing whenever I "clean up" an .md file representing a section/subsection/cookbook/benchmark:

A file which has been checked in my above mega-checklist comment should have all of the above points fixed/working properly. I am currently working my way through the manual page by page to fix each of these things - though some can and has been addressed en masse with clever scripting :-)

Manual authors, please let me know if you have comments about anything I've said here - particularly about the image locations, and the re-naming of citation tags and section tags. I'm sort of making this up as I go and taking a lot of liberties with your years of labor

bangerth commented 2 years ago

On 5/19/22 18:33, cmills1095 wrote:

Manual authors, please let me know if you have comments about anything I've said here - particularly about the image locations, and the re-naming of citation tags and section tags.

These two are conceptually the right thing to do, but they break the current pdf manual. We should only do that if we decide that we're not going to build the pdf manual any more every night.

cmills1095 commented 2 years ago

On 5/19/22 18:33, cmills1095 wrote: Manual authors, please let me know if you have comments about anything I've said here - particularly about the image locations, and the re-naming of citation tags and section tags. These two are conceptually the right thing to do, but they break the current pdf manual. We should only do that if we decide that we're not going to build the pdf manual any more every night.

The references.bib file I'm editing is in doc/sphinx and separate from the one the pdf manual references. And when I said moving images, I really meant copying them, for now. Though we could just as easily leave the images in their current folder and reference them like ../../../../manual/image.pdf . This shouldn't affect the pdf manual, right?

bangerth commented 2 years ago

Editing a copy is fine. For both the bib file and the pictures, creating copies is conceptually problematic, but I think we intend to get rid of the originals at some point, so that's ok with me.

cmills1095 commented 2 years ago

Issue: Sphinx doesn't support sub-figures, and forums seem to indicate they have no intention of changing that. There is an easy way to make subfigures work by putting them in a list-tables; it looks good, but its not a figure and so won't be numbered as a figure and can't be referenced by a figure number, so probably not acceptable for our purposes. The alternative is to consolidate figures in inkscape, which is tedious but I've done one to make sure it works and its not too difficult. My question is: is there any reason we'd want to leave two subfigures as separate png files? Or can I consolidate and then delete the originals?

bangerth commented 2 years ago

If you ever want to re-use parts of the figure, it's super tedious to get them back out. Can a figure be only a single image file? It can't be anything else than a single file?

cmills1095 commented 2 years ago

If you ever want to re-use parts of the figure, it's super tedious to get them back out. Can a figure be only a single image file? It can't be anything else than a single file?

That seems to be the case, unfortunately

Wang-yijun commented 2 years ago

I'm working on the "Convection in a 3d box" and "Convection in a box with prescribed, variable velocity boundary conditions" cookbooks.

bangerth commented 11 months ago

What's left here?