Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8e9ea16
add workflow for sphinx docs
Manuel-Knepper Mar 26, 2026
b52d33d
Fix casing in module name for get_seed_points
Manuel-Knepper Mar 26, 2026
d36a91f
Fix capitalization in intersects_properly documentation
Manuel-Knepper Mar 26, 2026
4f974f7
Update module name to lowercase in documentation
Manuel-Knepper Mar 26, 2026
8926c75
Update module name to lowercase in documentation
Manuel-Knepper Mar 26, 2026
db8434f
Fix module name casing in API documentation
Manuel-Knepper Mar 26, 2026
717251c
Comment out growbikenet import in conf.py
Manuel-Knepper Mar 26, 2026
1767560
Comment out version and release in conf.py
Manuel-Knepper Mar 26, 2026
3ab88ab
Disable sphinxcontrib.bibtex extension
Manuel-Knepper Mar 26, 2026
85b5de6
changes to conf.py, requirements.txt and sphinx.yml
Manuel-Knepper Apr 7, 2026
b06ed16
added growbikenet to requirements.txt
Manuel-Knepper Apr 7, 2026
64635bb
added local dependency to workflow
Manuel-Knepper Apr 7, 2026
b8331c8
removed growbikenet from requirements.txt
Manuel-Knepper Apr 7, 2026
8a9ff23
changes to requirements.txt and sphinx.yml
Manuel-Knepper Apr 7, 2026
506481b
changes to requirements.txt and sphinx.yml
Manuel-Knepper Apr 7, 2026
afa3235
changes to conf.py
Manuel-Knepper Apr 7, 2026
fc921db
changes to conf.py
Manuel-Knepper Apr 7, 2026
7174632
changes to conf.py
Manuel-Knepper Apr 7, 2026
6e74eb4
changes to requirements.txt
Manuel-Knepper Apr 7, 2026
555da9c
changes to requirements.txt
Manuel-Knepper Apr 7, 2026
e8dc826
changes to requirements.txt
Manuel-Knepper Apr 7, 2026
73531f1
changes to requirements.txt
Manuel-Knepper Apr 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Sphinx: Render docs"

on: push

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install project + docs dependencies
run: |
pip install -e .
pip install -r docs/requirements.txt
- name: Build HTML
uses: ammaraskar/sphinx-action@master
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
6 changes: 3 additions & 3 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.. _api_ref:

.. automodule:: GrowBikeNet
.. automodule:: growbikenet
:members:
:undoc-members:

.. currentmodule:: GrowBikeNet
.. currentmodule:: growbikenet

GrowBikeNet API reference
==========================
Expand All @@ -21,4 +21,4 @@ GrowBikeNet does these things with these functions.
functions.intersects_properly
functions.get_seed_points
functions.node_to_edge_attributes
functions
functions
6 changes: 3 additions & 3 deletions docs/api/GrowBikeNet.functions.get_seed_points.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ο»ΏGrowBikeNet.functions.get\_seed\_points
ο»Ώgrowbikenet.functions.get\_seed\_points
=======================================

.. currentmodule:: GrowBikeNet.functions
.. currentmodule:: growbikenet.functions

.. autofunction:: get_seed_points
.. autofunction:: get_seed_points
6 changes: 3 additions & 3 deletions docs/api/GrowBikeNet.functions.intersects_properly.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ο»ΏGrowBikeNet.functions.intersects\_properly
ο»Ώgrowbikenet.functions.intersects\_properly
==========================================

.. currentmodule:: GrowBikeNet.functions
.. currentmodule:: growbikenet.functions

.. autofunction:: intersects_properly
.. autofunction:: intersects_properly
6 changes: 3 additions & 3 deletions docs/api/GrowBikeNet.functions.node_to_edge_attributes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ο»ΏGrowBikeNet.functions.node\_to\_edge\_attributes
ο»Ώgrowbikenet.functions.node\_to\_edge\_attributes
================================================

.. currentmodule:: GrowBikeNet.functions
.. currentmodule:: growbikenet.functions

.. autofunction:: node_to_edge_attributes
.. autofunction:: node_to_edge_attributes
6 changes: 3 additions & 3 deletions docs/api/GrowBikeNet.functions.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ο»ΏGrowBikeNet.functions
ο»Ώgrowbikenet.functions
=====================

.. automodule:: GrowBikeNet.functions
.. automodule:: growbikenet.functions


.. rubric:: Functions
Expand Down Expand Up @@ -30,4 +30,4 @@
MultiLineString
Point
combinations


12 changes: 6 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

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

version = growbikenet.__version__
release = version
Expand Down Expand Up @@ -104,15 +104,15 @@ def find_source():
import os

fn = inspect.getsourcefile(obj)
fn = os.path.relpath(fn, start=os.path.dirname(GrowBikeNet.__file__))
fn = os.path.relpath(fn, start=os.path.dirname(growbikenet.__file__))
source, lineno = inspect.getsourcelines(obj)
return fn, lineno, lineno + len(source) - 1

if domain != "py" or not info["module"]:
return None
try:
filename = "GrowBikeNet/%s#L%d-L%d" % find_source() # noqa: UP031
filename = "growbikenet/%s#L%d-L%d" % find_source() # noqa: UP031
except Exception:
filename = info["module"].replace(".", "/") + ".py"
tag = "main" if "+" in release else ("v" + release)
return f"https://github.com/BikeNetKit/GrowBikeNet/blob/{tag}/{filename}"
return f"https://github.com/BikeNetKit/GrowBikeNet/blob/{tag}/{filename}"
9 changes: 9 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
furo==2021.11.16
sphinx
numpydoc
numpy
pandas
geopandas
networkx
shapely
opencv-python
matplotlib
Loading