Skip to content

Commit

Permalink
feature: (breaking) added docs, more examples in readme, renamed func…
Browse files Browse the repository at this point in the history
…tions, support action_graph as a function, refactorings (#2)
  • Loading branch information
sradc authored Oct 8, 2023
1 parent fc5ae85 commit 554b819
Show file tree
Hide file tree
Showing 46 changed files with 5,136 additions and 323 deletions.
15 changes: 11 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,27 @@ repos:
rev: v2.3.0
hooks:
- id: check-yaml
exclude: README.md
exclude: README.md|docs/
- id: end-of-file-fixer
exclude: README.md
exclude: README.md|docs/
- id: trailing-whitespace
exclude: README.md
exclude: README.md|docs/

- repo: local
hooks:
- id: format-python
- id: make-format
name: Python - autoflake, isort, black
entry: bash -c 'make format'
language: system
files: \.(py|ipynb)$
pass_filenames: false
# - id: make-docs
# name: Generate docs using Sphinx
# entry: bash -c 'make docs'
# # track docs/ but ignore docs/_sources
# files: ^docs/((?!_sources).)*$
# language: system
# pass_filenames: false
- id: make-readme
name: Generate readme from ipynb...
entry: bash -c 'make readme'
Expand Down
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.PHONY: docs

format:
poetry run autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place . \
&& poetry run black --line-length 90 . \
Expand All @@ -19,6 +21,17 @@ readme:
poetry run python -m nbconvert --to markdown --output README.md README.ipynb \
&& poetry run python scripts/replace_readme_image_links.py

docs:
cd docs_creator \
&& $(MAKE) html \
&& rm -rf ../docs \
&& mkdir ../docs \
&& cp -r build/html/* ../docs \
&& touch ../docs/.nojekyll

serve_docs: docs
cd docs && python -m http.server

# run semantic release, publish to github + pypi
release:
if poetry run semantic-release --strict version; then \
Expand Down
594 changes: 489 additions & 105 deletions README.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 554b819

Please sign in to comment.