-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Silence some docbuilding warnings #33735
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
comment:6
This branch removes many of these warnings. For reasons I don't understand, there is still one instance of New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:8
The soupsieve warning will go away with #33738 |
Dependencies: #33738 |
comment:10
I am not sure I support removing deprecated modules from the doc. I think they should be removed at the same time (with the doc saying they are deprecated). |
comment:11
Replying to @tscrim:
I haven't made any changes to the items in the third bullet point. I removed the items in the second, but they all look like this: sage.symbolic.getitem page. |
comment:13
Yes, I think so |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:17
Here is a new trimmed down version. |
comment:18
Replying to @jhpalmieri:
Indeed, I agree it should be fixed. However, I propose doing it by adding a proper docstring with a title that says it is deprecated. |
comment:19
Replying to @tscrim:
Are you talking about deprecated modules like That is, I prefer my approach. If you want to create docstrings for those files, I think it's a waste of time, but don't let that stop you. |
comment:20
Replying to @jhpalmieri:
I was thinking of the former case. Files with truely no content should be deleted altogether, but I am guessing you mean no docstring content. All I am thinking is having a title of something like:
Nothing else is needed beyond this (other than possibly adding a ref to the deprecating ticket).
These docstrings last a bit longer on the the Sage doc since they only get updated between major versions. Thus, it is possible it lasts longer than the files within beta versions of Sage. Unfortunately I don't have my computer with me for the next few days. I won't be able to push something until Sunday. |
comment:21
Replying to @tscrim:
Good, that makes sense.
The pages I'm currently removing from the reference manual come from Python files that look like, for example (
(That's the entire file.)
That could be done on this ticket or on a future ticket. Could the deprecation function somehow take care of this automatically, when you're deprecating a module or a package? Anyway, as of now:
We could change the reference manual diff --git a/src/doc/en/reference/finance/index.rst b/src/doc/en/reference/finance/index.rst
index 28bddb84cd..d47df818e2 100644
--- a/src/doc/en/reference/finance/index.rst
+++ b/src/doc/en/reference/finance/index.rst
@@ -1,6 +1,8 @@
Quantitative Finance
======================
+This module is deprecated.
+
.. toctree::
:maxdepth: 2
diff --git a/src/doc/en/reference/misc/index.rst b/src/doc/en/reference/misc/index.rst
index 801af043f4..e1ac8e97e6 100644
--- a/src/doc/en/reference/misc/index.rst
+++ b/src/doc/en/reference/misc/index.rst
@@ -71,6 +71,8 @@ Database Access
Media
~~~~~
+These modules are deprecated.
+
.. toctree::
:maxdepth: 1
|
comment:22
Replying to @jhpalmieri:
My mistake when working on the pynac integration ticket. I'll add the missing titles. |
comment:23
Do we need the missing titles restored, or is it better to just remove the pages from the reference manual? There is no actual content in the file from the point of view of documentation. |
comment:24
I don't really have an opinion on this, just currently these files violate our style guide |
comment:25
Replying to @mkoeppe:
IMO, we want the files there with the title in the documentation (and a deprecation message) because we should be documenting all of our files and changes. Even though it is deprecated, I don’t think it is good for a project to have “hidden” files. This should be done on this ticket IMO as adding it back on.a future ticket would effectively be reverting this one. |
comment:26
We already omit some Python files from the reference manual. For example we routinely omit files like I don't object to the files matching our style guidelines and having a title, but we don't need to keep them in the reference manual, and their presence there serves no purpose that I can see. Anyone who is interested enough to know what's going on with them will be able to understand the deprecation message. That is, they are documented, just not in the reference manual. |
comment:27
I would argue that those files (other than |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/jhpalmieri/silence-docbuild-warnings to u/mkoeppe/silence-docbuild-warnings |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Branch pushed to git repo; I updated commit sha1. New commits:
|
Changed author from John Palmieri to John Palmieri, Matthias Koeppe |
comment:33
Thank you Matthias. Are there any other issues to address? I am ready to set a positive review. |
Reviewer: Travis Scrimshaw |
comment:34
I am happy to move ahead and deal with any other issues, as they arise, on future tickets. |
comment:35
Then positive review. |
comment:36
Thanks! |
Changed branch from u/mkoeppe/silence-docbuild-warnings to |
We remove some documents from the reference manual. The corresponding Python files were deprecated in previous tickets, and as part of the deprecation, most of the content and all of the documentation was removed. See sage.symbolic.getitem for a typical example. These pages now result in a useless page in the reference manual and a message
Warning: Missing title for sage.symbolic.getitem
when creating the documentation. This happens for the pagessage.libs.pynac.pynac
,sage.symbolic.getitem
, andsage.symbolic.constants_c
(from Merge pynac sources as src/sage/symbolic/ginac #32386)sage.finance.time_series
(from Move sage.finance.time_series to sage.stats, deprecate sage.finance #32427)For a future ticket: we need to remember to remove pages from the reference manual when currently deprecated modules/packages are actually removed, in particular
sage.media
,sage.finance
, andsage.structure.graphics_file
. These currently produce warning messages during docbuilding, but there is actual content in the documentation, so we keep them in place.Other warnings which could be investigated:
and
and
and
This was introduced intentionally in #21042, I think, but should we silence the warning?
Depends on #33738
Component: documentation
Author: John Palmieri, Matthias Koeppe
Branch/Commit:
bcad832
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/33735
The text was updated successfully, but these errors were encountered: