Skip to content

Commit

Permalink
docs: Add RTD local_settings file, to add custom templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpgeorge committed Dec 21, 2014
1 parent 9b561a7 commit 7b80d90
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/readthedocs/settings/local_settings.py
Original file line number Diff line number Diff line change
@@ -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
)

0 comments on commit 7b80d90

Please sign in to comment.