From c5d58169f8630b4294e42d4a9426be7a88c912c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Fri, 18 Aug 2023 10:26:08 +0200 Subject: [PATCH] better name for md testing warnings --- .github/workflows/ci.yml | 2 +- test/{log.html => cli-warning.html} | 0 test/{log.md => cli-warning.md} | 0 test/conf.py | 2 +- test/log.txt | 12 ++++++------ 5 files changed, 8 insertions(+), 8 deletions(-) rename test/{log.html => cli-warning.html} (100%) rename test/{log.md => cli-warning.md} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f86a1d..c8b0c24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: cd test find . -name '*.html' -exec rm {} \; - sed -i 's~, "log\.md"~~' conf.py + sed -i 's~, "cli-warning\.md"~~' conf.py make html SPHINXOPTS='' 2>&1 | tee log.txt git restore conf.py diff --git a/test/log.html b/test/cli-warning.html similarity index 100% rename from test/log.html rename to test/cli-warning.html diff --git a/test/log.md b/test/cli-warning.md similarity index 100% rename from test/log.md rename to test/cli-warning.md diff --git a/test/conf.py b/test/conf.py index 2be6ab3..193bdfc 100644 --- a/test/conf.py +++ b/test/conf.py @@ -12,6 +12,6 @@ source_suffix = ".md" master_doc = "index" -exclude_patterns = ["_build", "log.md"] +exclude_patterns = ["_build", "cli-warning.md"] html_theme = "default" diff --git a/test/log.txt b/test/log.txt index 12ca82b..cce2df2 100644 --- a/test/log.txt +++ b/test/log.txt @@ -1,9 +1,9 @@ -test/log.md:3: WARNING: Unknown directive type: 'php:namespacee' [myst.directive_unknown] -test/log.md:8: WARNING: [phpdomain] Invalid signature -test/log.md:13: [phpdomain] Target Foo\Aa not found -test/log.md:15: [phpdomain] Target Foo\A::simplifyy not found -test/log.md:20: [phpdomain] Target Foo\Foo\A::simplify not found - did you mean to write A::simplify? -test/log.md:25: [phpdomain] Target Fooo\Foo\A::simplify not found - did you mean to write \Foo\A::simplify? +test/cli-warning.md:3: WARNING: Unknown directive type: 'php:namespacee' [myst.directive_unknown] +test/cli-warning.md:8: WARNING: [phpdomain] Invalid signature +test/cli-warning.md:13: [phpdomain] Target Foo\Aa not found +test/cli-warning.md:15: [phpdomain] Target Foo\A::simplifyy not found +test/cli-warning.md:20: [phpdomain] Target Foo\Foo\A::simplify not found - did you mean to write A::simplify? +test/cli-warning.md:25: [phpdomain] Target Fooo\Foo\A::simplify not found - did you mean to write \Foo\A::simplify? test/ns.md:48: [phpdomain] Target A2::simplify not found test/ns.md:53: [phpdomain] Target Bar2\A::simplify not found test/rst_doc.md:506: [phpdomain] Target OtherLibrary\int|string|ReturnedClass|\LibraryName\SubPackage\SubpackageInterface|null not found