From a1bb3de494f4a4b66056c743432d94f20afadbe5 Mon Sep 17 00:00:00 2001 From: Sandrro Date: Fri, 20 Sep 2024 14:07:57 +0300 Subject: [PATCH 1/2] fixed docs compilation --- docs/source/conf.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7fba588..41c0839 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -8,8 +8,11 @@ import os import sys -folder = os.getcwd().split("\\docs")[0] -sys.path.append(folder) +#folder = os.getcwd().split("\\docs")[0] +#print(folder) +project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) +print(project_root) +sys.path.insert(0, project_root) project = 'sloyka' From 0f76538e21c08d0f6a7eb7d8210cca6e87da3aba Mon Sep 17 00:00:00 2001 From: Sandrro Date: Fri, 20 Sep 2024 14:09:49 +0300 Subject: [PATCH 2/2] cleanup --- docs/source/conf.py | 3 --- docs/source/modules/OtherGeoObjects.rst | 8 +------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 41c0839..e9d7cde 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -8,10 +8,7 @@ import os import sys -#folder = os.getcwd().split("\\docs")[0] -#print(folder) project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..")) -print(project_root) sys.path.insert(0, project_root) diff --git a/docs/source/modules/OtherGeoObjects.rst b/docs/source/modules/OtherGeoObjects.rst index 0745130..72e77ee 100644 --- a/docs/source/modules/OtherGeoObjects.rst +++ b/docs/source/modules/OtherGeoObjects.rst @@ -7,10 +7,4 @@ OtherGeoObjects .. autoclass:: sloyka.src.geocoder.city_objects_extractor.OtherGeoObjects :members: :undoc-members: - :no-index: - -#.. automethod:: sloyka.src.geocoder.city_objects_extractor.OtherGeoObjects.get_and_process_osm_data -#.. automethod:: sloyka.src.geocoder.city_objects_extractor.OtherGeoObjects.run_osm_dfs -#.. automethod:: sloyka.src.geocoder.city_objects_extractor.OtherGeoObjects.calculate_centroid -#.. automethod:: sloyka.src.geocoder.city_objects_extractor.OtherGeoObjects.extract_geo_obj -#.. automethod:: sloyka.src.geocoder.city_objects_extractor.OtherGeoObjects.restoration_of_normal_form \ No newline at end of file + :no-index: \ No newline at end of file