Skip to content

Commit

Permalink
updated dependencies for sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
harisankar95 committed Jan 11, 2024
1 parent 98b1470 commit eee18d2
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test-and-publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build, test and publish Python 🐍 distributions 📦 to PyPI

on:
release:
types: [created]
types: [published]

jobs:
build-and-publish:
Expand Down Expand Up @@ -45,8 +45,7 @@ jobs:

- name: Build docs
run: |
pip install sphinx==6.2.1
pip install sphinx_rtd_theme recommonmark nbsphinx sphinx-autodoc-typehints sphinx-copybutton sphinx-prompt sphinx-notfound-page sphinx-version-warning sphinx-autodoc-annotation
pip install sphinx sphinx_rtd_theme recommonmark sphinx-autodoc-typehints sphinx-copybutton sphinx-prompt sphinx-notfound-page sphinx-autodoc-annotation
sphinx-build -b html docs/ ./public
- name: Deploy docs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:
branches:
- main

jobs:
test:
name: Test
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The normal process works like this:
1. You call `find_path` on one of your finder implementations.
1. `init_find` instantiates the `open_list` and resets all values and counters.
1. The main loop starts on the `open_list`. This list gets filled with all nodes that will be processed next (e.g. all current neighbors that are walkable). For this you need to implement `check_neighbors` in your own finder implementation.
1. For example in A*s implementation of `check_neighbors` you first want to get the next node closest from the current starting point from the open list. the `next_node` method in Finder does this by giving you the node with a minimum `f`-value from the open list, it closes it and removes it from the `open_list`.
1. For example in A\*s implementation of `check_neighbors` you first want to get the next node closest from the current starting point from the open list. the `next_node` method in Finder does this by giving you the node with a minimum `f`-value from the open list, it closes it and removes it from the `open_list`.
1. if this node is not the end node we go on and get its neighbors by calling `find_neighbors`. This just calls `grid.neighbors` for most algorithms.
1. If none of the neighbors are the end node we want to process the neighbors to calculate their distances in `process_node`
1. `process_node` calculates the cost `f` from the start to the current node using the `calc_cost` method and the cost after calculating `h` from `apply_heuristic`.
Expand Down
11 changes: 9 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@
"sphinx_copybutton", # for copy button
"sphinx-prompt", # for prompt
"notfound.extension", # for 404 page
"versionwarning.extension", # for version warning
"recommonmark", # for markdown
"nbsphinx", # for notebooks
]

templates_path = ["_templates"]
Expand All @@ -55,6 +53,15 @@
],
}

notfound_context = {
"body": (
"<h1>Page not found.</h1>\n\n"
"<p>Unfortunately, the page <tt>{{ pagename }}</tt> wasn't found.</p>\n\n"
"<p>Try going back to the <a href='https://harisankar95.github.io/pathfinding3D/'>homepage</a>.</p>\n\n"
),
}

# source suffix
source_suffix = [".rst", ".md"]

# The master toctree document.
Expand Down
2 changes: 0 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@
"sphinx<=7.2.6",
"sphinx_rtd_theme",
"recommonmark",
"nbsphinx",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
"sphinx-prompt",
"sphinx-notfound-page",
"sphinx-version-warning",
"sphinx-autodoc-annotation",
]
},
Expand Down

0 comments on commit eee18d2

Please sign in to comment.