From 1ac8e201a66ef6093961d0b6cdb8e458aafe39f8 Mon Sep 17 00:00:00 2001 From: sfauvel Date: Fri, 19 Apr 2024 23:14:18 +0200 Subject: [PATCH] Add link to doc_as_test.rust --- .../src/test/docs/doc/_ConceptDocTest.index.approved.adoc | 2 +- .../src/test/docs/doc/_Reference.runner.approved.adoc | 1 + .../src/test/java/doc/ConceptDocTest.java | 2 +- documentationtestingdoc/src/test/java/doc/Links.java | 8 ++++++++ documentationtestingdoc/src/test/java/doc/Reference.java | 1 + 5 files changed, 12 insertions(+), 2 deletions(-) diff --git a/documentationtestingdoc/src/test/docs/doc/_ConceptDocTest.index.approved.adoc b/documentationtestingdoc/src/test/docs/doc/_ConceptDocTest.index.approved.adoc index f0f5ba61..cccd9e3b 100644 --- a/documentationtestingdoc/src/test/docs/doc/_ConceptDocTest.index.approved.adoc +++ b/documentationtestingdoc/src/test/docs/doc/_ConceptDocTest.index.approved.adoc @@ -208,7 +208,7 @@ That shows how we can present some information in a documentation that is also a Tools, full discussions and choices -link:{github-pages}/documentationtesting[Java], link:https://github.com/sfauvel/doc_as_test_pytest[Python], ... +link:{github-pages}/documentationtesting[Java], link:https://github.com/sfauvel/doc_as_test_pytest[Python], link:https://docastest.github.io/doc_as_test.rust/[Rust], ... |==== diff --git a/documentationtestingdoc/src/test/docs/doc/_Reference.runner.approved.adoc b/documentationtestingdoc/src/test/docs/doc/_Reference.runner.approved.adoc index 96089fee..8eb0fda0 100644 --- a/documentationtestingdoc/src/test/docs/doc/_Reference.runner.approved.adoc +++ b/documentationtestingdoc/src/test/docs/doc/_Reference.runner.approved.adoc @@ -7,6 +7,7 @@ In this page, you will find links to resources that help you to implement a docu * Documentation of the concept: link:{github-pages}[] * Library for Java: link:{github-pages}/documentationtesting[DocumentationTesting] * Library for Python and pytest: link:https://github.com/sfauvel/doc_as_test_pytest[doc_as_test_pytest] +* Library for Rust: link:https://docastest.github.io/doc_as_test.rust/[doc_as_test.rust] * To get source and examples: link:{github-repo}[] * A plugin for IntelliJ is provided in {github-repo}/approvalsDocPlugin[approvalsDocPlugin] folder diff --git a/documentationtestingdoc/src/test/java/doc/ConceptDocTest.java b/documentationtestingdoc/src/test/java/doc/ConceptDocTest.java index 0420b830..2b3c9427 100644 --- a/documentationtestingdoc/src/test/java/doc/ConceptDocTest.java +++ b/documentationtestingdoc/src/test/java/doc/ConceptDocTest.java @@ -110,7 +110,7 @@ private String referenceCell() { "", "Tools, full discussions and choices", "", - Links.JavaDocAsTest("Java") + ", " + Links.PythonDocAsTest("Python") + ", ..." + Links.JavaDocAsTest("Java") + ", " + Links.PythonDocAsTest("Python") + ", " + Links.RustDocAsTest("Rust") + ", ..." ); } diff --git a/documentationtestingdoc/src/test/java/doc/Links.java b/documentationtestingdoc/src/test/java/doc/Links.java index a0b9e43b..42946c94 100644 --- a/documentationtestingdoc/src/test/java/doc/Links.java +++ b/documentationtestingdoc/src/test/java/doc/Links.java @@ -60,10 +60,18 @@ public static String PythonDocAsTest() { return PythonDocAsTest("doc_as_test_pytest"); } + public static String RustDocAsTest() { + return RustDocAsTest("doc_as_test.rust"); + } + public static String PythonDocAsTest(String text) { return new AsciidocFormatter().linkToPage("https://github.com/sfauvel/doc_as_test_pytest", text); } + public static String RustDocAsTest(String text) { + return new AsciidocFormatter().linkToPage("https://docastest.github.io/doc_as_test.rust/", text); + } + public static String JavaDocAsTest() { return JavaDocAsTest("DocumentationTesting"); } diff --git a/documentationtestingdoc/src/test/java/doc/Reference.java b/documentationtestingdoc/src/test/java/doc/Reference.java index 87a72217..3b3b1ebd 100644 --- a/documentationtestingdoc/src/test/java/doc/Reference.java +++ b/documentationtestingdoc/src/test/java/doc/Reference.java @@ -32,6 +32,7 @@ public void runner() { "Documentation of the concept: link:{github-pages}[]", "Library for Java: " + Links.JavaDocAsTest(), "Library for Python and pytest: " + Links.PythonDocAsTest(), + "Library for Rust: " + Links.RustDocAsTest(), "To get source and examples: link:{github-repo}[]", "A plugin for IntelliJ is provided in {github-repo}/approvalsDocPlugin[approvalsDocPlugin] folder") ));