Skip to content

Commit 4823d68

Browse files
committed
Make a link to librairies list to install when watchin readme on github
1 parent 2425998 commit 4823d68

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

readme.adoc

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
= Doc as test with pytest
2+
:url-repo: https://github.com/sfauvel/doc_as_test_pytest
23

34
This project provides tools to implements https://sfauvel.github.io/documentationtesting/[Doc as test] with Python and https://docs.pytest.org/[pytest].
45

@@ -17,11 +18,20 @@ Example:
1718

1819
=== Without docker
1920

20-
To execute examples in this project you need to install Python and the libraries below:
21+
ifndef::env-github[]
22+
To execute examples in this project you need to install Python
23+
and the libraries below:
2124

2225
----
2326
include::docker/python_libs.txt[]
2427
----
28+
endif::[]
29+
ifdef::env-github[]
30+
To execute examples in this project you need to install Python
31+
and the libraries listed in
32+
link:{url-repo}/blob/main/docker/python_libs.txt[python_libs.txt].
33+
endif::[]
34+
2535

2636
They can install them with `pip install` command.
2737

0 commit comments

Comments
 (0)