Skip to content

Commit

Permalink
Add link to doc_as_test.rust
Browse files Browse the repository at this point in the history
  • Loading branch information
sfauvel committed Apr 19, 2024
1 parent 2b34730 commit 1ac8e20
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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], ...


|====
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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") + ", ..."
);

}
Expand Down
8 changes: 8 additions & 0 deletions documentationtestingdoc/src/test/java/doc/Links.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
1 change: 1 addition & 0 deletions documentationtestingdoc/src/test/java/doc/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -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")
));
Expand Down

0 comments on commit 1ac8e20

Please sign in to comment.