sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.47k stars 486 forks source link

Ref: add various missing modules to the reference manual #18170

Closed mezzarobba closed 9 years ago

mezzarobba commented 9 years ago

Component: documentation

Author: Marc Mezzarobba

Branch: 8e47f6a

Reviewer: Jeroen Demeyer

Issue created by migration from https://trac.sagemath.org/ticket/18170

mezzarobba commented 9 years ago

Branch: u/mmezzarobba/ref-other

mezzarobba commented 9 years ago

Author: Marc Mezzarobba

mezzarobba commented 9 years ago

Commit: 2ceb598

mezzarobba commented 9 years ago

New commits:

30599c4games.hexad: rst fixes
a3261b8sandpiles.sandpiles: rst fixes
ca7ac34matroids_plot_helpers: rst fixes
087cabcmodform.theta: rst fixes
f736624cunningham_tables: rst fixes
1df5afbmonoids.strings_ops: rst fixes
6858c7fstats.r: rst fixes
558761dRef: remove duplicate entry in r/algebras
2ceb598Ref: add missing modules to various parts of the manual
kcrisman commented 9 years ago
comment:3

Are things like

+.. backends depending on optional packages
+..   sage/numerical/backends/coin_backend
+..   sage/numerical/backends/cplex_backend
+..   sage/numerical/backends/gurobi_backend
+

some Sphinx directive I'm not familiar with? Or are the .. bits there superfluous?

mezzarobba commented 9 years ago
comment:4

Replying to @kcrisman:

Are things like

+.. backends depending on optional packages
+..   sage/numerical/backends/coin_backend
+..   sage/numerical/backends/cplex_backend
+..   sage/numerical/backends/gurobi_backend
+

some Sphinx directive I'm not familiar with? Or are the .. bits there superfluous?

Just comments. For some reason making a single comment block confuses the docbuilder, while it works if I comment each line with .. (which is valid rst syntax as far as I know).

kcrisman commented 9 years ago
comment:5

In that case, why not just include those (and the

+.. optional - cryptominisat

ones) and just make it really clear that they depend on optional packages? We certainly get plenty of questions about MILP and backends, for instance.

mezzarobba commented 9 years ago
comment:6

Unfortunately, the doc building system fails (and complains loudly) if it can't import a module listed in one of the toctree blocks.

kcrisman commented 9 years ago
comment:7

Oh yeah, I forgot about that. Hmm, that is annoying. Perhaps (not necessarily here) one could write a document referring to these which explain anything useful in them, but which is a pure documentation module. (I know there is a thematic tutorial about these already in existence that explains a lot of it.)

fchapoton commented 9 years ago

Changed branch from u/mmezzarobba/ref-other to public/ticket/18170

fchapoton commented 9 years ago
comment:8

just made sure that doc builds


New commits:

61a61cdMerge branch 'u/mmezzarobba/ref-other' into 6.7.b1
c4f829atrac #18170 just making sure doc builds
fchapoton commented 9 years ago

Changed commit from 2ceb598 to c4f829a

jdemeyer commented 9 years ago
comment:9

What's this additional "docstring" in src/sage/sandpiles/sandpile.py?

"""
To calculate linear systems associated with divisors, 4ti2 must be installed.
One way to do this is to run sage -i to install glpk, then 4ti2. See
http://sagemath.org/download-packages.html to get the exact names of these
packages. An alternative is to install 4ti2 separately, then point the
following variable to the correct path.
"""

Shouldn't this be moved to the main docstring?

jdemeyer commented 9 years ago
comment:10

This TOC entry is duplicated:

sage/rings/finite_rings/hom_finite_field
jdemeyer commented 9 years ago
comment:11

Abstract SAT Solver. -> Abstract SAT Solver

jdemeyer commented 9 years ago
comment:12

I would prefer to see

sage/modular/modform/notes

in a separate sub-section of the TOC.

jdemeyer commented 9 years ago
comment:13

PDF docs do not build:

! Undefined control sequence.
l.4316 the model of the curves $X_0(p) = \PP
                                            ^1$ are specified by quotients of
? 
! Emergency stop.
l.4316 the model of the curves $X_0(p) = \PP
                                            ^1$ are specified by quotients of
!  ==> Fatal error occurred, no output PDF file produced!
mezzarobba commented 9 years ago
comment:14

Replying to @fchapoton:

just made sure that doc builds


New commits:

61a61cdMerge branch 'u/mmezzarobba/ref-other' into 6.7.b1
c4f829atrac #18170 just making sure doc builds

Thanks! But actually the fixes to number_field/* were on the branch about reference/rings (#18169). So the problem here is that I apparently put some of the changes to index files depending on these fixes on this ticket's branch instead of the other one, and then made a mistake while testing that the tickets were independent. Anyway, I'm now rebasing both branches—and dropping your commit in the process to avoid conflicts.

mezzarobba commented 9 years ago

New commits:

92b276agames.hexad: rst fixes
80590b7sandpiles.sandpiles: rst fixes
d862438matroids_plot_helpers: rst fixes
776d9bdmodform.theta: rst fixes
ba3aa08cunningham_tables: rst fixes
7dbf569monoids.strings_ops: rst fixes
4e7150bstats.r: rst fixes
905af71Ref: remove duplicate entry in r/algebras
066a114Ref: add missing modules to various parts of the manual
8e47f6a#18170 make pdf docs build + cosmetic fixes
mezzarobba commented 9 years ago

Changed commit from c4f829a to 8e47f6a

mezzarobba commented 9 years ago

Changed branch from public/ticket/18170 to u/mmezzarobba/ref-other

jdemeyer commented 9 years ago
comment:16

positive_review if it builds properly.

vbraun commented 9 years ago
comment:17

Reviewer name missing

jdemeyer commented 9 years ago

Reviewer: Jeroen Demeyer

vbraun commented 9 years ago

Changed branch from u/mmezzarobba/ref-other to 8e47f6a

jhpalmieri commented 7 years ago

Changed commit from 8e47f6a to none

jhpalmieri commented 7 years ago
comment:20

I'm confused about what the lines

   sage/groups/perm_gps/partn_ref
   sage/groups/perm_gps/partn_ref2

in reference/groups/index.rst were supposed to accomplish, because in Sage 8.1.beta4, they lead to useless pages. (See http://doc.sagemath.org/html/en/reference/groups/sage/groups/perm_gps/partn_ref.html, for example.) Can anyone clarify?

(I would open a follow up ticket, but I think a good ticket description ought to say what is intended, and I have no idea in this case.)

jdemeyer commented 7 years ago
comment:21

I guess what was meant is the various modules inside those directories instead of the empty __init__.py module: #23839

mezzarobba commented 7 years ago
comment:22

Replying to @jhpalmieri:

I'm confused about what the lines

   sage/groups/perm_gps/partn_ref
   sage/groups/perm_gps/partn_ref2

in reference/groups/index.rst were supposed to accomplish, because in Sage 8.1.beta4, they lead to useless pages. (See http://doc.sagemath.org/html/en/reference/groups/sage/groups/perm_gps/partn_ref.html, for example.) Can anyone clarify?

I don't remember for sure, sorry, but I guess Jeroen is right. (Most probably, I automated part of the changes and didn't notice the issue.) In any case, the general goal of the branch was to ensure that all sage modules (well, except for a few special cases) were included in the reference manual.