I have developed a package in python, and I have created documentation for it using Sphinx.
The relevant part of the folder structure is shown below:
my_package
setup.py
my_package
my_module.py
docs
index.rst
_build
html
index.html
The package will be hosted at some location in the LAN that's referred to by PYTHONPATH. My end user will be accessing my package with just import my_package. They wouldn't know where the documentation (or the package for that matter) is located. Using help(my_package) is only going to show the user the documentation within the module.
So, I am wondering how to allow my end-user to access the index.html file? I thought of coding in a method that opens the html file from a specified location, but I didn't like the idea of hardcoding in a path. Is there a standard way of doing this?