Skip to content

Commit

Permalink
doc: nrf: filter redirect warnings
Browse files Browse the repository at this point in the history
It looks like the redirects extension is reporting some invalid
warnings. Filter them while investigation happens.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
Signed-off-by: Andrzej Puzdrowski <[email protected]>
  • Loading branch information
gmarull authored and nvlsianpu committed Oct 29, 2024
1 parent 688ca59 commit 24939b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
/doc/nrf/templates/ @nrfconnect/ncs-doc-leads
/doc/nrf/test_and_optimize/ @nrfconnect/ncs-doc-leads
/doc/nrf/test_and_optimize/optimizing/power_nrf91.rst @nrfconnect/ncs-cia-doc
/doc/nrf/warnings.txt @nrfconnect/ncs-co-doc

/doc/**/*.svg @nrfconnect/ncs-doc-leads
/doc/**/*.png @nrfconnect/ncs-doc-leads
Expand Down
5 changes: 5 additions & 0 deletions doc/nrf/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"notfound.extension",
"ncs_tool_versions",
"page_filter",
"warnings_filter",
]

linkcheck_ignore = [
Expand Down Expand Up @@ -214,6 +215,10 @@
"latest" if version.endswith("99") else version
)

# -- Options for warnings_filter -----------------------------------------------

warnings_filter_config = str(NRF_BASE / "doc" / "nrf" / "warnings.txt")

def setup(app):
app.add_css_file("css/nrf.css")

Expand Down
1 change: 1 addition & 0 deletions doc/nrf/warnings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.*is not a valid destination for a redirect.*

0 comments on commit 24939b9

Please sign in to comment.