Skip to content

Commit 7b80d90

Browse files
committed
docs: Add RTD local_settings file, to add custom templates.
1 parent 9b561a7 commit 7b80d90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import os
2+
3+
# Directory that the project lives in, aka ../..
4+
SITE_ROOT = '/'.join(os.path.dirname(__file__).split('/')[0:-2])
5+
6+
TEMPLATE_DIRS = (
7+
"%s/templates/" % SITE_ROOT, # Your custom template directory, before the RTD one to override it.
8+
"%s/readthedocs/templates/" % SITE_ROOT, # Default RTD template dir
9+
)

0 commit comments

Comments
 (0)