Documentation refresh - Atlanta workshop (rebased)#4345
Conversation
Remove some todos and dead methods
Enrich the Macaulay2 debugging docs (ov_debugging.m2) with a detailed, step-by-step example session: load a demo file, show available symbols (listUserSymbols), display function source (code), trigger the debugger and inspect locals (listLocalSymbols), and demonstrate debugger commands (step, break, end) and the errorDepth setting. Also documents non-interactive error handling using try and trap and includes illustrative REPL output to make debugging workflows clearer for users.
Replace Kisun Lee's contact email in NumericalCertification.m2 package metadata from kil004@ucsd.edu to kisunl@clemson.edu to reflect the author's updated contact information.
Add TO entries for the debugging commands 'continue' and 'trap' in M2/Macaulay2/packages/Macaulay2Doc/ov_debugging.m2 so they appear in the module's exported TO list.
Add a trailing space after "deeper." in M2/Macaulay2/packages/Macaulay2Doc/ov_debugging.m2 to ensure correct spacing when the documentation strings are concatenated/printed. This is a minor whitespace-only formatting fix to improve output readability.
| Example | ||
| R = ZZ/101[s,t]; | ||
| C = res ideal(t); | ||
| isVirtual(ideal(s,t), C, Strategy=>"Determinantal") |
There was a problem hiding this comment.
Since this is a single graded resolution, it seems not in the spirit of Mike Loper's paper. I believe this node doesn't have an example because this option already has an example about 20 lines above, so I suggest just merging this node into the node above.
If it's easier for you, I can do this in a separate PR later or can push directly to your branch if you prefer.
| PARA{}, "Here are some examples illustrating some uses of this | ||
| package.", | ||
| EXAMPLE { | ||
| "R = matrix(QQ, {{1,0},{0,1}})", |
There was a problem hiding this comment.
Making this slightly more interesting:
| "R = matrix(QQ, {{1,0},{0,1}})", | |
| "R = matrix(QQ, {{1,0},{-2,1}})", |
| --document { Key => {(gin,Ideal)}, } | ||
| --document { Key => {(gin,QuotientRing)}, } |
There was a problem hiding this comment.
Not a big deal but feel free to just remove these lines.
| SUBSECTION "Combinatorial properties of the Kunz cone", | ||
| UL{ | ||
| TO coneEquations, | ||
| TO coneEquations, |
There was a problem hiding this comment.
Not sure what happened with the indentation here (and about 30 lines below) but would be good to avoid this. Again, not a huge deal in a 4000-line PR.
| Headline => "Methods for virtual resolutions on products of projective spaces", | ||
| Authors =>{ | ||
| {Name => "Ayah Almousa", Email => "aka66@cornell.edu", HomePage => "http://pi.math.cornell.edu/~aalmousa "}, | ||
| {Name => "Ayah Almousa", Email => "aalmousa@uky.edu", HomePage => "http://pi.math.cornell.edu/~aalmousa "}, |
There was a problem hiding this comment.
Did you want to update your website too?
| newPackage ("Tutorials", | ||
| Version => version#"VERSION", | ||
| Headline => "tutorials and teaching materials for Macaulay2", | ||
| HomePage => "https://macaulay2.com/", | ||
| Authors => { -* see the contributors listed on the main page *- }, |
There was a problem hiding this comment.
It would be good to:
- add a date or version to indicate last update
- list at least one person as maintainer and reference for who should be contacted for updates.
There was a problem hiding this comment.
Was this file meant to be committed? The wiki might be more appropriate for it, or at least in the packages/Macaulay2Doc/ subdirectory rather than here.
| This fork may still be used to stage documentation-refresh work through | ||
| `aalmousa/M2` issues and project items, but upstream contributions land through | ||
| `Macaulay2/M2:development`. |
There was a problem hiding this comment.
I understand this PR is still a draft, just leaving a comment here so we don't forget to remove this when it's ready.
| Subnodes => { | ||
| "T-spread managing", | ||
| TO "tLastMon", | ||
| Key => {TSpreadIdeals}, |
There was a problem hiding this comment.
It would be good to fix the indentation as you edit. Perhaps at some point we will have a proper linter to fix this problem.
There was a problem hiding this comment.
The helpers isVectScalar and convertScalarVect should not be exported, so this documentation likely will be removed once I update the package.
| quotient(Ideal, RingElement) := Ideal => opts -> (I, f) -> quotient(I, ideal f, opts) | ||
| Ideal : Ideal := Ideal => (I, J) -> quotient(I, J) | ||
| Ideal : Number := | ||
| Ideal : Number := Ideal => opts -> (I, f) -> quotient(I, ideal f, opts) |
There was a problem hiding this comment.
This is going to break as Ideal : Number can't accept options. The other change above is also unnecessary, so I suggest reverting changes to this file.
There was a problem hiding this comment.
I suspect this will conflict with @joel-dodge's pending PR.
There was a problem hiding this comment.
Ty for calling this out. It's fine with me for this monster to be merged before mine and I'll deal with resolving conflicts in my PR.
There was a problem hiding this comment.
It would probably be easy to revert the changes to this one file and leave it to you to fix it in your PR, but up to you. If you're okay with waiting, it would be good to mark yours as draft so it doesn't get accidentally merged.
There was a problem hiding this comment.
excellent ty i am going to push a PR targeting this branch to do this.
| TT "SubringLimit => n", " -- an option for ", TO "kernel", " which | ||
| causes the computation of the kernel of a ring map to stop after ", TT "n", " | ||
| elements have been discovered." | ||
| Key => {(kernel,Matrix), |
There was a problem hiding this comment.
Not sure what happened here but this indentation seems strange. It would be preferable to translate to SimpleDoc form if every line of this node is being edited.
There was a problem hiding this comment.
👍 ack this makes sense. i will switch to simple doc format.
| (wedgeProduct, ZZ, ZZ, Module) | ||
| wedgeProduct |
There was a problem hiding this comment.
FYI: the order of the keys determines which one is the "PrimaryKey", which in turn results in the choice of url, e.g. in this case it'll be .../_wedge__Product_lp__Z__Z_cm__Z__Z_cm__Module_rp.html. I tend to put the main method above to simplify this link.
There was a problem hiding this comment.
excellent. will update to switch the order.
There was a problem hiding this comment.
I presume the changes here will conflict with pending documentation changes from the debugging team.
mahrud
left a comment
There was a problem hiding this comment.
I left some comments to hopefully help with the final push before this PR is ready. Let me know if you have trouble with getting the builds to succeed, I can take a look.
|
Oh, also, AI disclosure, if applicable, would be appreciated :) |
This draft PR supersedes #4341 without rewriting the shared
aalmousa:doc-updatesbranch.Changes from the original cleanup pass:
developmentdoc-updates-rebasedmap(GaloisField,GaloisField)soStyledocumentation checks no longer fail during package installationPlease use this PR for review instead of #4341 while the shared branch remains in place.