-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perform some search engine optimization for docs #309
Comments
cref #307 |
It seems the version number is currently not avail on RTD although the package gets installed. |
good catch, I wonder why this happens..
|
I think one way would be to just include from setuptools_scm import get_version
version = get_version(root='..', relative_to=__file__) in |
This is a good solution. Thanks! |
Hold on, do we have setuptools_scm installed on RTD? |
I think it arises from having weldx always imported from the sources root (where the version is undefined; it only gets defined during pip install). |
Ah yes that might be it. Probably because RTD doesn't How about try:
import weldx
except ModuleNotFoundError: # fallback for local use
sys.path.insert(0, os.path.abspath("../"))
import weldx
except Exception as ex:
raise |
looking good #310 |
Currently the documentation is hard to find on engines like google, duckgosearch, bing etc.
One has to enforce the inclusion of the term "weldx" by using quotation marks. Eventually we should somehow highlight this more.
The text was updated successfully, but these errors were encountered: