@@ -19,6 +19,9 @@ DEST = website
19
19
# Clone the en/Makefile everywhere.
20
20
SPHINX_DEPENDENCIES = $(foreach lang, $(LANGS ) , $(lang ) /Makefile)
21
21
22
+ # Get path to theme directory to build static assets.
23
+ THEME_DIR = $(shell python -c 'import os, cakephpsphinx; print os.path.abspath(os.path.dirname(cakephpsphinx.__file__) )')
24
+
22
25
# Copy-paste the English Makefile everywhere it's needed (if non existing).
23
26
% /Makefile : en/Makefile
24
27
cp -n $< $@
@@ -96,23 +99,23 @@ clean-website:
96
99
build/html/% /_static :
97
100
mkdir -p build/html/$* /_static
98
101
99
- CSS_FILES = themes/cakephp/static/css/fonts.css \
100
- themes/cakephp/static/css/bootstrap.min.css \
101
- themes/cakephp/static/css/font-awesome.min.css \
102
- themes/cakephp/static/css/style.css \
103
- themes/cakephp/static/css/default.css \
104
- themes/cakephp/static/css/pygments.css \
105
- themes/cakephp/static/css/responsive.css
102
+ CSS_FILES = $( THEME_DIR ) / themes/cakephp/static/css/fonts.css \
103
+ $( THEME_DIR ) / themes/cakephp/static/css/bootstrap.min.css \
104
+ $( THEME_DIR ) / themes/cakephp/static/css/font-awesome.min.css \
105
+ $( THEME_DIR ) / themes/cakephp/static/css/style.css \
106
+ $( THEME_DIR ) / themes/cakephp/static/css/default.css \
107
+ $( THEME_DIR ) / themes/cakephp/static/css/pygments.css \
108
+ $( THEME_DIR ) / themes/cakephp/static/css/responsive.css
106
109
107
110
build/html/% /_static/css/app.css : build/html/% /_static $(CSS_FILES )
108
111
# echo all dependencies ($$^) into the output ($$@)
109
112
cat $(CSS_FILES ) > $@
110
113
111
- JS_FILES = themes/cakephp/static/jquery.js \
112
- themes/cakephp/static/vendor.js \
113
- themes/cakephp/static/app.js \
114
- themes/cakephp/static/search.js \
115
- themes/cakephp/static/typeahead.js
114
+ JS_FILES = $( THEME_DIR ) / themes/cakephp/static/jquery.js \
115
+ $( THEME_DIR ) / themes/cakephp/static/vendor.js \
116
+ $( THEME_DIR ) / themes/cakephp/static/app.js \
117
+ $( THEME_DIR ) / themes/cakephp/static/search.js \
118
+ $( THEME_DIR ) / themes/cakephp/static/typeahead.js
116
119
117
120
build/html/% /_static/app.js : build/html/% /_static $(JS_FILES )
118
121
# echo all dependencies ($JS_FILES) into the output ($$@)
0 commit comments