doc: build json files from the documentation

Change-Id: I30db3a3f0d16cb929c74756a4d1bd8baf2ce8a11
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2017-04-02 10:25:13 -04:00 committed by Anas Nashif
commit 03ca26fdeb

View file

@ -75,6 +75,9 @@ content: scripts/extract_content.py
kconfig: scripts/genrest/genrest.py
$(Q)srctree=../ SRCARCH=x86 python $< ../Kconfig reference/kconfig/
prep: doxy content kconfig
html: content kconfig
$(Q)$(SPHINXBUILD) -t $(DOC_TAG) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@rm -rf samples
@ -95,8 +98,10 @@ pickle:
@echo
@echo "Build finished; now you can process the pickle files."
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
json: prep
$(SPHINXBUILD) -t $(DOC_TAG) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@rm -rf samples
@rm -rf boards
@echo
@echo "Build finished; now you can process the JSON files."