docs: Add RTD local_settings file, to add custom templates.
This commit is contained in:
parent
9b561a7c0d
commit
7b80d908bf
9
docs/readthedocs/settings/local_settings.py
Normal file
9
docs/readthedocs/settings/local_settings.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
# Directory that the project lives in, aka ../..
|
||||||
|
SITE_ROOT = '/'.join(os.path.dirname(__file__).split('/')[0:-2])
|
||||||
|
|
||||||
|
TEMPLATE_DIRS = (
|
||||||
|
"%s/templates/" % SITE_ROOT, # Your custom template directory, before the RTD one to override it.
|
||||||
|
"%s/readthedocs/templates/" % SITE_ROOT, # Default RTD template dir
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user