Skip to content

Commit 46192e3

Browse files
authored
Merge pull request #140 from kayjan/enhance-docstr
Enhance docstr
2 parents d6b4c5f + 40c881b commit 46192e3

36 files changed

+94
-62
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
*pytest_cache/
44
*__pycache__*
55

6-
tests/*png
7-
tests/*dot
86
dist/
97
*/build/
108
*.DS_Store
9+
assets/docstr

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.14.8] - 2023-12-25
8+
### Changed
9+
- Tree Modifier: Enhance documentation examples.
10+
- Workflow To Do App: Change import and export logic.
11+
- Misc: Organize assets folder based on whether it originated from README, docstrings, or sphinx documentation.
12+
- Misc: Rename functions in `plot.py` utils file for coverage report.
13+
### Fixed
14+
- Misc: Fixed doctests and automate doctest checks.
15+
716
## [0.14.7] - 2023-12-22
817
### Changed
918
- Tree Helper: `get_tree_diff` enhanced to compare tree attributes by taking in `attr_list` parameter, and indicates difference with `(~)`.

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ root.show()
183183
# └── c
184184

185185
graph = tree_to_dot(root, node_colour="gold")
186-
graph.write_png("assets/demo_tree.png")
186+
graph.write_png("assets/docs/demo_tree.png")
187187
```
188188

189-
![Sample Tree Output](https://github.com/kayjan/bigtree/raw/master/assets/demo_tree.png)
189+
![Sample Tree Output](https://github.com/kayjan/bigtree/raw/master/assets/docs/demo_tree.png)
190190

191191
{emphasize-lines="8-10"}
192192
```python
@@ -897,22 +897,22 @@ tree_to_dataframe(
897897
# 4 /a/c c a 60
898898

899899
graph = tree_to_dot(root, node_colour="gold")
900-
graph.write_png("assets/demo.png")
900+
graph.write_png("assets/docs/demo_dot.png")
901901

902902
pillow_image = tree_to_pillow(root)
903-
pillow_image.save("assets/demo_pillow.png")
903+
pillow_image.save("assets/docs/demo_pillow.png")
904904

905905
mermaid_md = tree_to_mermaid(root)
906906
print(mermaid_md)
907907
```
908908

909-
- demo.png
909+
- demo_dot.png
910910

911-
![Sample Dot Image Output](https://github.com/kayjan/bigtree/raw/master/assets/demo.png)
911+
![Sample Dot Image Output](https://github.com/kayjan/bigtree/raw/master/assets/docs/demo_dot.png)
912912

913913
- demo_pillow.png
914914

915-
![Sample Pillow Image Output](https://github.com/kayjan/bigtree/raw/master/assets/demo_pillow.png)
915+
![Sample Pillow Image Output](https://github.com/kayjan/bigtree/raw/master/assets/docs/demo_pillow.png)
916916

917917
- Mermaid flowchart
918918
```mermaid
@@ -954,10 +954,10 @@ g = BinaryNode(7, parent=c)
954954
h = BinaryNode(8, parent=d)
955955

956956
graph = tree_to_dot(a, node_colour="gold")
957-
graph.write_png("assets/demo_binarytree.png")
957+
graph.write_png("assets/docs/demo_binarytree.png")
958958
```
959959

960-
![Sample DAG Output](https://github.com/kayjan/bigtree/raw/master/assets/demo_binarytree.png)
960+
![Sample DAG Output](https://github.com/kayjan/bigtree/raw/master/assets/docs/demo_binarytree.png)
961961

962962
2. **From *list***
963963

@@ -1058,10 +1058,10 @@ h = DAGNode("h")
10581058
g = DAGNode("g", parents=[c], children=[h])
10591059

10601060
graph = dag_to_dot(a, node_colour="gold")
1061-
graph.write_png("assets/demo_dag.png")
1061+
graph.write_png("assets/docs/demo_dag.png")
10621062
```
10631063

1064-
![Sample DAG Output](https://github.com/kayjan/bigtree/raw/master/assets/demo_dag.png)
1064+
![Sample DAG Output](https://github.com/kayjan/bigtree/raw/master/assets/docs/demo_dag.png)
10651065

10661066
2. **From *list***
10671067

assets/binarytree.png

-19.6 KB
Binary file not shown.

assets/construct_binarytree.png

19.4 KB
Loading

assets/demo.png

-11.8 KB
Binary file not shown.

assets/demo_binarytree.png

-17.1 KB
Binary file not shown.

assets/demo_dag.png

-18.9 KB
Binary file not shown.

assets/demo_tree.png

-10 KB
Binary file not shown.

assets/docs/demo_binarytree.png

17 KB
Loading

0 commit comments

Comments
 (0)