Skip to content

Commit

Permalink
#1 Work in progress:
Browse files Browse the repository at this point in the history
- Trying to fix API doc

[ci skip]
  • Loading branch information
FABallemand committed Jul 6, 2024
1 parent 5575dca commit 205d2b2
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ formats: all
# to build the documentation automatically.
python:
install:
- requirements: requirements.txt
- requirements: requirements.txt
# Install our python package before building the docs
- method: pip
path: .
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.

import os
import sys
sys.path.insert(0, os.path.abspath("../../ezgpx"))
# import os
# import sys
# sys.path.insert(0, os.path.abspath("../.."))

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Expand Down
2 changes: 1 addition & 1 deletion docs/source/tutorials/modifying.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ In the following example, one manage to go from 3263 track points to only 1082.
# Save GPX
gpx.to_gpx("file_simplified.gpx")

.. image:: ../../img/simplify_1.png
.. image:: ../../../img/simplify_1.png
:width: 500
:alt: Track plot followed by the simplified track plot
12 changes: 6 additions & 6 deletions docs/source/tutorials/plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ This method relies on the well known Matplotlib Python library to create simple
watermark=True,
file_path="img.png")

.. image:: ../../img/matplotlib_plot_1.jpg
.. image:: ../../../img/matplotlib_plot_1.jpg
:width: 500
:alt: Matplotlib plot

Expand All @@ -62,7 +62,7 @@ This method uses the Google map engine to display the content of the GPX file in
file_path="map.html",
open=False)

.. image:: ../../img/gmap_plot_1.png
.. image:: ../../../img/gmap_plot_1.png
:width: 500
:alt: gmplot plot

Expand Down Expand Up @@ -92,7 +92,7 @@ The interactive HTML page resulting from this method allows you to visualize the
file_path="map.html",
open=True)

.. image:: ../../img/folium_plot_1.png
.. image:: ../../../img/folium_plot_1.png
:width: 500
:alt: Folium plot

Expand All @@ -118,7 +118,7 @@ PaperMap
grid_size = 1000,
file_path = "map.pdf")

.. image:: ../../img/papermap_plot_1.png
.. image:: ../../../img/papermap_plot_1.png
:width: 500
:alt: PaperMap plot

Expand Down Expand Up @@ -156,7 +156,7 @@ This method creates animations of the activity contained in a GPX file.
watermark=True,
file_path="video_1.mp4")

.. image:: ../../img/matplotlib_animation_1.gif
.. image:: ../../../img/matplotlib_animation_1.gif
:width: 500
:alt: Matplotlib animation

Expand Down Expand Up @@ -218,6 +218,6 @@ This is the most advanced plotting method built into ezGPX. It allows to plot th
watermark=False,
file_path="img.png")

.. image:: ../../img/expert_plot_1.jpg
.. image:: ../../../img/expert_plot_1.jpg
:width: 500
:alt: Matplotlib "expert" plot

0 comments on commit 205d2b2

Please sign in to comment.