From 2c7c2c14fb5f4f732065561600ebda6ea2d24911 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Mon, 18 Oct 2021 13:48:30 +0530 Subject: [PATCH 1/3] Added readthedocs condig file --- .readthedocs.yaml | 29 +++++++++++++++++++++++++++++ pydatastructs/trees/binary_trees.py | 8 ++++---- 2 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 .readthedocs.yaml diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 000000000..d19e1e565 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,29 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-20.04 + tools: + python: "3.8" + # You can also specify other tool versions: + # nodejs: "16" + # rust: "1.55" + # golang: "1.17" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/conf.py + +# Optionally build your docs in additional formats such as PDF +# formats: +# - pdf + +# Optionally declare the Python requirements required to build your docs +python: + install: + - requirements: docs/requirements.txt \ No newline at end of file diff --git a/pydatastructs/trees/binary_trees.py b/pydatastructs/trees/binary_trees.py index 198d5ad51..14d01403e 100644 --- a/pydatastructs/trees/binary_trees.py +++ b/pydatastructs/trees/binary_trees.py @@ -420,8 +420,8 @@ def rank(self, x): its index in the sorted list of nodes of the tree. - Parameter - ========= + Parameters + ========== x: key The key of the node whose rank is to be found out. @@ -441,8 +441,8 @@ def _simple_path(self, key, root): """ Utility funtion to find the simple path between root and node. - Parameter - ========= + Parameters + ========== key: Node.key Key of the node to be searched From 2ff7dbe742b6122afbbbc486c77a3836dc4088e5 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Mon, 18 Oct 2021 13:50:20 +0530 Subject: [PATCH 2/3] removed comments --- .readthedocs.yaml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index d19e1e565..076c9aa79 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,29 +1,13 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -# Required version: 2 -# Set the version of Python and other tools you might need build: os: ubuntu-20.04 tools: python: "3.8" - # You can also specify other tool versions: - # nodejs: "16" - # rust: "1.55" - # golang: "1.17" -# Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py -# Optionally build your docs in additional formats such as PDF -# formats: -# - pdf - -# Optionally declare the Python requirements required to build your docs python: install: - requirements: docs/requirements.txt \ No newline at end of file From 910e08cc95ac84b471cd396620fad69b1339faa2 Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Mon, 18 Oct 2021 13:54:25 +0530 Subject: [PATCH 3/3] install --- .readthedocs.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 076c9aa79..e61d7876d 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,4 +10,6 @@ sphinx: python: install: - - requirements: docs/requirements.txt \ No newline at end of file + - requirements: docs/requirements.txt + - method: pip + path: . \ No newline at end of file