You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add locrepr(::Document, ::Page) method: This has higher
level info and thus has an easier time getting paths right.
* Improve locrepr for pages
* Add locrepr(::DCtx)
* Print line ranges in a few more errors
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
* Page category is removed from the search index and now everything is in section category. ([#2762], [#2413])
16
16
* Changed the docstring block accordions from a custom implementation to HTML details+summary tag. ([#2772], [#2773])
17
17
* Improved the search tokenizer and custom trimmer to improve search results. ([#1457], [#2114], [#2744])
18
+
* Improved several warning/error messages to (more accurately) report the location (filename, line range) in which the warning/error originated. ([#2803])
18
19
19
20
### Fixed
20
21
@@ -2178,6 +2179,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
@@ -353,7 +353,7 @@ function Selectors.runner(::Type{Expanders.MetaBlocks}, node, page, doc)
353
353
@docerror(
354
354
doc, :meta_block,
355
355
"""
356
-
failed to evaluate `$(strip(str))` in `@meta` block in $(Documenter.locrepr(page.source, lines))
356
+
failed to evaluate `$(strip(str))` in `@meta` block in $(Documenter.locrepr(doc, page, lines))
357
357
```$(x.info)
358
358
$(x.code)
359
359
```
@@ -431,7 +431,7 @@ function Selectors.runner(::Type{Expanders.DocsBlocks}, node, page, doc)
431
431
@docerror(
432
432
doc, :docs_block,
433
433
"""
434
-
unable to get the binding for '$(strip(str))' in `@docs` block in $(Documenter.locrepr(page.source, lines)) from expression '$(repr(ex))' in module $(curmod)
434
+
unable to get the binding for '$(strip(str))' in `@docs` block in $(Documenter.locrepr(doc, page, lines)) from expression '$(repr(ex))' in module $(curmod)
435
435
```$(x.info)
436
436
$(x.code)
437
437
```
@@ -446,7 +446,7 @@ function Selectors.runner(::Type{Expanders.DocsBlocks}, node, page, doc)
446
446
@docerror(
447
447
doc, :docs_block,
448
448
"""
449
-
undefined binding '$(binding)' in `@docs` block in $(Documenter.locrepr(page.source, lines))
449
+
undefined binding '$(binding)' in `@docs` block in $(Documenter.locrepr(doc, page, lines))
450
450
```$(x.info)
451
451
$(x.code)
452
452
```
@@ -463,7 +463,7 @@ function Selectors.runner(::Type{Expanders.DocsBlocks}, node, page, doc)
463
463
@docerror(
464
464
doc, :docs_block,
465
465
"""
466
-
duplicate docs found for '$(strip(str))' in `@docs` block in $(Documenter.locrepr(page.source, lines))
466
+
duplicate docs found for '$(strip(str))' in `@docs` block in $(Documenter.locrepr(doc, page, lines))
467
467
```$(x.info)
468
468
$(x.code)
469
469
``` $(DocSystem.public_unexported_msg(apistatus))
@@ -486,7 +486,7 @@ function Selectors.runner(::Type{Expanders.DocsBlocks}, node, page, doc)
486
486
@docerror(
487
487
doc, :docs_block,
488
488
"""
489
-
no docs found for '$(strip(str))' in `@docs` block in $(Documenter.locrepr(page.source, lines))
489
+
no docs found for '$(strip(str))' in `@docs` block in $(Documenter.locrepr(doc, page, lines))
490
490
```$(x.info)
491
491
$(x.code)
492
492
```
@@ -534,7 +534,7 @@ function Selectors.runner(::Type{Expanders.AutoDocsBlocks}, node, page, doc)
534
534
elseif ex.args[1] in (:Modules, :Order, :Pages, :Public, :Private)
0 commit comments