Sync Docs across backtrader_contrib and backtrader main repositories
ref:
- http://www.brokenlyre.com/blog/2018/08/05/sphinx-submodules/
- https://brendanhasz.github.io/2019/01/05/sphinx.html
Other thoughts
- combine
sphinx sys.path.insert
withpython -c "import backtrader; print(backtrader.__file__)"
- hints: https://groups.google.com/g/sphinx-users/c/lO4CeNJQWjg?pli=1
backtrader-docs has
# If extensions (or modules to document with autodoc) are in another directory,
# 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.
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath(os.path.join('..', '..', 'backtrader')))
eventually replace the backtrader
by a more generic python -c "import backtrader; print(backtrader.__file__)"
and do same for backtrader_contrib
so that each repository can be responsible for its documentation.
Edited by farch investment