summaryrefslogtreecommitdiff
path: root/doc/Makefile
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2017-10-12 15:07:49 +0200
committerXavier Morel <xmo@odoo.com>2017-10-12 15:11:26 +0200
commitdb0cb1b09237b2e004c7a7eceadedde668f4ac30 (patch)
tree14ef5a75fcfaae20804796459c4eade2c334d892 /doc/Makefile
parente3dd0dee426405fe365b3c355b481d1fe36721a1 (diff)
[FIX] doc: various
* fix Sphinx 1.6 compatibility leading to the "tiles" on the home page not working anymore: 1.6 replaces BuildEnvironment.reolve_toctree by TocTree().resolve(), while the method still exists it's not actually called anymore * rejigger some CSS as the second section went from one big tile to 3 smaller tiles, and got laid out as a row rather than a second 2x2 block. Recode the entire mess with flexbox, remove some stuff which conflicted with boostrap (this screen should probably be de-boostrapped and completely converted to flexbox or grid) * add building CSS from LESS to the makefile, all Odoo devs should have less installed locally (for assets)
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 0808b6736b5..9795b90275b 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -6,6 +6,7 @@ SPHINXOPTS = -q -t solutions
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
+LESSC = lessc
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
@@ -41,7 +42,13 @@ help:
clean:
-rm -rf $(BUILDDIR)/*
-html:
+STATICS = _extensions/odoo_ext/static
+# TODO: add bootstrap files
+LESSFILES = $(wildcard $(STATICS)/*.less)
+$(STATICS)/style.css: $(LESSFILES)
+ $(LESSC) $(STATICS)/style.less $(STATICS)/style.css
+
+html: _extensions/odoo_ext/static/style.css
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."