-
Notifications
You must be signed in to change notification settings - Fork 40
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
Readthedocs #381
Readthedocs #381
Conversation
I see. Would it not work if we keep the script paths relative to the repository directory and call it from both .tox and .readthedocs? changedir = docs
commands =
sh examples_to_rst.sh
# build the docs to see if it builds fine
make html SPHINXOPTS=-W
# make sure the feature names and units are up-to-date
pytest test_feature_units_in_docs.py
This following will run the script without changing the path. commands =
sh examples_to_rst.sh # assuming we are inside the root EFEL folder, not EFEL/docs folder
cd docs
# build the docs to see if it builds fine
make html SPHINXOPTS=-W
# make sure the feature names and units are up-to-date
pytest test_feature_units_in_docs.py
What do you think? |
doing |
I think we can find a solution. |
tox.ini
examples_to_rst.sh
This seems to work. |
Thanks @anilbey ! I implemented your changes and it seems to work now :) |
Good news :) |
.readthedocs.yaml
Outdated
@@ -12,9 +12,7 @@ build: | |||
python: "3.10" | |||
jobs: | |||
pre_build: | |||
- cd docs | |||
- sh examples_to_rst.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it not work if we place the examples_to_rst.sh
into either docs
or examples
and call it sh docs/examples_to_rst.sh
in the .readthedocs.yaml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should work. Let me implement it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Brilliant, thanks a lot @AurelienJaquier
Description
@anilbey it looks like we cannot use
cd
in readthedocs, so I had to copy back the rst converting code to.readthedocs.yml
with updated paths.Checklist: