www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 40098b7b2f426e231b94fcb74054a37a682ec5ce
parent a0216b37528a3b5b6222b2e8d3a836d10eb1f82f
Author: Casey W. Stark <casey@thestarkeffect.com>
Date:   Sat, 22 Jan 2011 15:30:47 -0800

New make target for building docs for mathjax.org separately.

Diffstat:
Mdocs/Makefile | 5+++++
Mdocs/source/mjtheme/layout.html | 6+++++-
Mdocs/source/mjtheme/static/mj.css_t | 4++++
3 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/docs/Makefile b/docs/Makefile @@ -41,6 +41,11 @@ html: @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." +html-mathjax-site: + $(SPHINXBUILD) -b html -A for_site=True $(ALLSPHINXOPTS) $(BUILDDIR)/html-mathjax-site + @echo + @echo "Build finished. The HTML pages are in $(BUILDDIR)/html-mathjax-site." + dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo diff --git a/docs/source/mjtheme/layout.html b/docs/source/mjtheme/layout.html @@ -145,6 +145,7 @@ {%- block extrahead %} {% endblock %} </head> <body> + {% if for_site %} <div id="wrapper"> <div id="header"> <div id="branding" role="banner"> @@ -194,6 +195,7 @@ <div class="clear"></div> </div> </div> + {% endif %} {%- block header %}{% endblock %} {%- block relbar1 %}{{ relbar() }}{% endblock %} @@ -240,6 +242,8 @@ {%- endif %} </div> {%- endblock %} - </div> + {% if for_site %} + </div> + {% endif %} </body> </html> diff --git a/docs/source/mjtheme/static/mj.css_t b/docs/source/mjtheme/static/mj.css_t @@ -5,6 +5,8 @@ @import url("basic.css"); +{% if for_site %} + /* style copied over from http://mathjax.org/ for the header */ body { @@ -161,6 +163,8 @@ div.menu li { margin: 0 auto; } +{% endif %} + /* -- page layout ----------------------------------------------------------- */ body {