-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make sphinx build again #25
Conversation
c1a48d6
to
adea19b
Compare
Since I broke it when I moved from setup.cfg to `pyproject.toml`
OK, it builds again on RTD, but it does not look good: https://tessilator--25.org.readthedocs.build/en/25/ |
I can't find what's missing here. Maybe it's just because this is build on the PR. I suggest merging it and if the RTD looks bad after that, we can go an fix it in a new PR. |
Thanks for sorting this PR.
I'll merge.
I think that I had some kind of style file that went with it. Can't be 100%
sure, but I think it was called alabaster.
https://alabaster.readthedocs.io/en/latest/index.html
Looks like there's a .css style file that we need to place into a "_static"
directory within docs.
But like you say, we can marge, and then tackle that one in a bit.
…On Fri, May 24, 2024 at 4:57 PM Hans Moritz Günther < ***@***.***> wrote:
I can't find what's missing here. Maybe it's just because this is build on
the PR. I suggest merging it and if the RTD looks bad after that, we can go
an fix it in a new PR.
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOLW36PYOHIR2LOCUF7NSATZD5INDAVCNFSM6AAAAABIHVKBWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRZG42DAOBXGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
********************************************************
****Alexander Slater Binks: age guesser of young stars****
********************************************************
Eberhard Karls Universität Tübingen
Institut für Astronomie und Astrophysik Tübingen (IAAT)
Office A120
Sand 1, 72076,
Tübingen,
Baden-Württemburg,
Germany
Off: 01575 4798951
|
Looks correct here: https://tessilator.readthedocs.io/en/latest/ |
It does look better now!
Yeah, it's just that since I conda upgraded to 3.11 earlier today I also
had to reinstall a bunch of packages with pip.
If I run "make html" (as per usual) in the docs directory I get the
following:
**************************************************************************************************************************
**************************************************************************************************************************
**************************************************************************************************************************
Running Sphinx v7.3.7
Imported sphinx!
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
File
"/home/abinks/anaconda3/lib/python3.11/site-packages/sphinx/config.py",
line 509, in eval_config_file
exec(code, namespace) # NoQA: S102
^^^^^^^^^^^^^^^^^^^^^
File "/home/abinks/tessilator/code/docs/conf.py", line 45, in <module>
import_module(pyproject["project"]["name"])
File "/home/abinks/anaconda3/lib/python3.11/importlib/__init__.py", line
126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in
_find_and_load_unlocked
ModuleNotFoundError: No module named 'tessilator'
make: *** [Makefile:20: html] Error 2
**************************************************************************************************************************
**************************************************************************************************************************
**************************************************************************************************************************
Do I need to do something to add something to conf.py to point to the
tessilator directory? Sorry I know we've
done this before, but I need to get it back up and running (for obvious
reasons).
Would you be able to have a chat soon about it?
…On Fri, May 24, 2024 at 6:16 PM Hans Moritz Günther < ***@***.***> wrote:
Looks correct here: https://tessilator.readthedocs.io/en/latest/
So it's probably just because they insert the "preview banner" that
interacts with the style in some funny way.
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOLW36LU2VDUOI2C73FHQQDZD5RW5AVCNFSM6AAAAABIHVKBWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRZHEZDGNBUGU>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
********************************************************
****Alexander Slater Binks: age guesser of young stars****
********************************************************
Eberhard Karls Universität Tübingen
Institut für Astronomie und Astrophysik Tübingen (IAAT)
Office A120
Sand 1, 72076,
Tübingen,
Baden-Württemburg,
Germany
Off: 01575 4798951
|
Did you "pip install -e ".[docs]"? Because if you don't, it won't find it (sphinx looks for the installed version not the raw code in the same directory).On May 24, 2024 12:36 PM, Alex Binks ***@***.***> wrote:
It does look better now!
Yeah, it's just that since I conda upgraded to 3.11 earlier today I also
had to reinstall a bunch of packages with pip.
If I run "make html" (as per usual) in the docs directory I get the
following:
**************************************************************************************************************************
**************************************************************************************************************************
**************************************************************************************************************************
Running Sphinx v7.3.7
Imported sphinx!
Configuration error:
There is a programmable error in your configuration file:
Traceback (most recent call last):
File
"/home/abinks/anaconda3/lib/python3.11/site-packages/sphinx/config.py",
line 509, in eval_config_file
exec(code, namespace) # NoQA: S102
^^^^^^^^^^^^^^^^^^^^^
File "/home/abinks/tessilator/code/docs/conf.py", line 45, in <module>
import_module(pyproject["project"]["name"])
File "/home/abinks/anaconda3/lib/python3.11/importlib/__init__.py", line
126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1140, in
_find_and_load_unlocked
ModuleNotFoundError: No module named 'tessilator'
make: *** [Makefile:20: html] Error 2
**************************************************************************************************************************
**************************************************************************************************************************
**************************************************************************************************************************
Do I need to do something to add something to conf.py to point to the
tessilator directory? Sorry I know we've
done this before, but I need to get it back up and running (for obvious
reasons).
Would you be able to have a chat soon about it?
…On Fri, May 24, 2024 at 6:16 PM Hans Moritz Günther < ***@***.***> wrote:
Looks correct here: https://tessilator.readthedocs.io/en/latest/
So it's probably just because they insert the "preview banner" that
interacts with the style in some funny way.
—
Reply to this email directly, view it on GitHub
<#25 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOLW36LU2VDUOI2C73FHQQDZD5RW5AVCNFSM6AAAAABIHVKBWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRZHEZDGNBUGU>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
********************************************************
****Alexander Slater Binks: age guesser of young stars****
********************************************************
Eberhard Karls Universität Tübingen
Institut für Astronomie und Astrophysik Tübingen (IAAT)
Office A120
Sand 1, 72076,
Tübingen,
Baden-Württemburg,
Germany
Off: 01575 4798951
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Since I broke it when I moved from setup.cfg to
pyproject.toml