-
Notifications
You must be signed in to change notification settings - Fork 45
[MAINT] test build all test docs in strict mode #340
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| all: | ||
| # Run all doc builds in the tests folder: | ||
| # acts a bit as en end-to-end test | ||
| make -C test_docs html | ||
| make -C roots/test_autodoc/ html | ||
| make -C roots/test_classfolder/ html | ||
| make -C roots/test_duplicate_link/ html | ||
| make -C roots/test_module_class_names/ html | ||
| make -C roots/test_no_matlab_src_dir/ html | ||
| make -C roots/test_numad/ html | ||
| make -C roots/test_package_links/ html | ||
| make -C roots/test_package_prefix/ html | ||
| make -C roots/test_pymat/ html | ||
| make -C roots/test_pymat_common_root/ html | ||
| make -C roots/test_skipping_module_members/ html |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| classdef Domain | ||
| % Describes a set of elements with a common structure | ||
| % | ||
| % Those elements can be compared (`.eqv`), and random elements can be produced (`.sample`). | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this needs to be removed to avoid a warning about a missing ref |
||
| % Those elements can be compared (`.eqv`). | ||
|
|
||
| methods % ABSTRACT | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,9 +221,11 @@ def test_root_auto_link_basic(app, confdict): | |
| see_also_line_1 = content[0][2][1][1][1] # a bit fragile, I know | ||
| see_also_line_2 = content[0][4][1][1][0] # a bit fragile, I know | ||
| assert len(content) == 1 | ||
| assert ( | ||
| method_section.rawsource | ||
| == "BaseClass Methods:\n* :meth:`BaseClass() <BaseClass.BaseClass>` - the constructor, whose description extends\n to the next line\n* :meth:`DoBase() <BaseClass.DoBase>` - another BaseClass method\n" | ||
| assert method_section.rawsource == ( | ||
| "BaseClass Methods:\n" | ||
| "* :meth:`BaseClass() <BaseClass.BaseClass>` - the constructor, whose description extends\n" | ||
| " to the next line\n\n" | ||
| "DoBase - another BaseClass method\n" | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. needed to change this test after modifying BaseClass (see https://github.com/sphinx-contrib/matlabdomain/pull/340/files#r2680058113) but I am a bit surprised that just adding an extra line changes: to |
||
| ) | ||
| assert ( | ||
| see_also_line_1.rawsource | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -330,11 +330,9 @@ def test_root_auto_link_basic(app, confdict): | |
| method_section = content[0][2][1][1][0] # a bit fragile, I know | ||
| assert method_section.rawsource == ( | ||
| "BaseClass Methods:\n" | ||
| "* :meth:`BaseClass() <BaseClass.BaseClass>` " | ||
| "- the constructor, whose description extends\n" | ||
| " to the next line\n" | ||
| "* :meth:`DoBase() <BaseClass.DoBase>` " | ||
| "- another BaseClass method\n" | ||
| "* :meth:`BaseClass() <BaseClass.BaseClass>` - the constructor, whose description extends\n" | ||
| " to the next line\n\n" | ||
| "DoBase - another BaseClass method\n" | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
| ) | ||
|
|
||
| see_also_line_1 = content[0][2][1][1][1] # a bit fragile, I know | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixes a doc build warning