Skip to content

Commit 8826ddb

Browse files
authored
Merge pull request #183 from kayjan/mkdocs-add-termynal
Added: mkdocs integration with termynal
2 parents c77c882 + 0e680a2 commit 8826ddb

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

docs/install.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,25 @@ There are two ways to install `bigtree`, with pip (recommended) or conda.
1010

1111
To install `bigtree`, run the following line in command prompt:
1212

13+
<!-- termynal -->
1314
```console
1415
$ pip install bigtree
16+
---> 100%
17+
Installed
1518
```
1619

1720
If tree needs to use pandas methods, it requires additional dependencies.
1821
Run the following line in command prompt:
1922

23+
<!-- termynal -->
2024
```console
2125
$ pip install 'bigtree[pandas]'
2226
```
2327

2428
If tree needs to be exported to image, it requires additional dependencies.
2529
Run the following lines in command prompt:
2630

31+
<!-- termynal -->
2732
```console
2833
$ pip install 'bigtree[image]'
2934
$ brew install gprof2dot # for MacOS
@@ -32,6 +37,7 @@ $ conda install graphviz # for Windows
3237

3338
Alternatively, install all optional dependencies with the following line in command prompt:
3439

40+
<!-- termynal -->
3541
```console
3642
$ pip install 'bigtree[all]'
3743
```
@@ -40,6 +46,7 @@ $ pip install 'bigtree[all]'
4046

4147
To install `bigtree` with conda, run the following line in command prompt:
4248

49+
<!-- termynal -->
4350
```console
4451
$ conda install -c conda-forge bigtree
4552
```

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ mkdocstrings[python]==0.24.0
77
pandas
88
Pillow
99
pydot
10+
termynal==0.11.1

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,10 @@ plugins:
113113
merge_init_into_class: true
114114
docstring_section_style: table
115115
signature_crossrefs: true
116+
- termynal:
117+
prompt_literal_start:
118+
- "$"
119+
- ">"
116120

117121
extra:
118122
social:

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ dependencies = [
9696
"mkdocs-material[imaging]==9.5.5",
9797
"mdx_truly_sane_lists",
9898
"mkdocstrings[python]",
99+
"termynal",
99100
"black",
100101
"IPython",
101102
"pandas",

0 commit comments

Comments
 (0)