nnaisense / evotorch

Advanced evolutionary computation library built directly on top of PyTorch, created at NNAISENSE.
https://evotorch.ai
Apache License 2.0
1.01k stars 63 forks source link

chore: Fix infinite live reloading of the docs #36

Closed Higgcz closed 1 year ago

Higgcz commented 1 year ago

Previously, the docs would reload infinitely because there was a hook that automatically generated markdown files out of Jupyter notebooks.

The problem was that the generated markdown files were stored directly in the docs folder, which triggered mkdocs to rebuild again.

This PR changes the target directory of the generated files and adds a new mkdocs hook (on_files) that adds all the files during the build process. This way the autogenerated files are not triggering the reload.

Waiting for #39

codecov-commenter commented 1 year ago

Codecov Report

Merging #36 (a33174b) into master (ed5a9f5) will not change coverage. The diff coverage is n/a.

:exclamation: Current head a33174b differs from pull request most recent head 4c086a1. Consider uploading reports for the commit 4c086a1 to get more accurate results

@@           Coverage Diff           @@
##           master      #36   +/-   ##
=======================================
  Coverage   52.18%   52.18%           
=======================================
  Files          43       43           
  Lines        6241     6241           
=======================================
  Hits         3257     3257           
  Misses       2984     2984           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Higgcz commented 1 year ago

This is ready for merging, but it needs to be merged after #39