ThreeSixtyGiving / standard

The 360Giving data standard for UK philanthropic giving
http://www.threesixtygiving.org
Other
10 stars 15 forks source link

Fix errors from conf.py for Read The Docs builds #371

Closed mrshll1001 closed 10 months ago

mrshll1001 commented 10 months ago

Some of our recent readthedocs builds have been failing, and this became evident after changes from #370 were merged and didn't appear on the live docs site.

Error log for the build is here.

It appears to stem from some things inside conf.py, where a theme variable is only set when not inside the RTD environment.

I'm not sure on the details, but glancing at the pre-existing code and this guidance, it may be that the way to detect this may have changed?

This bugfix basically removes the conditional logic and imports the theme regardless of environment. The docs for the branch appear to build ok, but I'm not sure whether this change represents good practice for a conf.py file.

Please amend as needed, or merge in if this is OK.