Browse Source

doc: fix 404s for syntax highlighting js

Updated Makefile to remove special casing for those files, and
moved the files to doc/api_assets.

Fixes: https://github.com/iojs/iojs.github.io/issues/51
PR-URL: https://github.com/iojs/io.js/pull/409
Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com>
v1.8.0-commit
Phil Hughes 10 years ago
committed by Chris Dickinson
parent
commit
e7891034c2
  1. 6
      Makefile
  2. 0
      doc/api_assets/sh_javascript.min.js
  3. 1106
      doc/api_assets/sh_main.js
  4. 4
      doc/template.html

6
Makefile

@ -188,11 +188,7 @@ apidoc_dirs = out/doc out/doc/api/ out/doc/api/assets
apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*))) apiassets = $(subst api_assets,api/assets,$(addprefix out/,$(wildcard doc/api_assets/*)))
website_files = \ doc: $(apidoc_dirs) $(apiassets) $(apidocs) tools/doc/ $(NODE_EXE)
out/doc/sh_main.js \
out/doc/sh_javascript.min.js
doc: $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) tools/doc/ $(NODE_EXE)
$(apidoc_dirs): $(apidoc_dirs):
mkdir -p $@ mkdir -p $@

0
doc/sh_javascript.min.js → doc/api_assets/sh_javascript.min.js

1106
doc/sh_main.js → doc/api_assets/sh_main.js

File diff suppressed because it is too large

4
doc/template.html

@ -45,8 +45,8 @@
<div id="footer"> <div id="footer">
</div> </div>
<script src="../sh_main.js"></script> <script src="assets/sh_main.js"></script>
<script src="../sh_javascript.min.js"></script> <script src="assets/sh_javascript.min.js"></script>
<script>highlight(undefined, undefined, 'pre');</script> <script>highlight(undefined, undefined, 'pre');</script>
</body> </body>
</html> </html>

Loading…
Cancel
Save