# Principle Call the prog script_doc.sh from just above *Spike* by: ./spike/doc/script_doc.sh Then : * the program makes a folder named *spike_make_sphinx*. ``` sphinx-apidoc -F -o spike_make_sphinx spike ``` * This folder is completed with the files contained in spike/doc. ``` cp -r spike/doc/* spike_make_sphinx/ ``` * The code is compiled with Sphinx through : ``` cd spike_make_sphinx make html cd .. ``` * Injection of javacript in all the html files for removing documentation made by autodoc conerning Unittest and to remove the _debug attributes produced by the utility for facilitating the debugging. ``` python -m spike.doc.insert_hide spike_make_sphinx/_build/html a'_debug' c'_Tests' ``` * All the html structure contained in *spike_make_sphinx/_build/html/* is copied in the bitbucket folder spikedoc.bitbucket.org ``` cp -r spike_make_sphinx/_build/html/* spikedoc.bitbucket.org/ ``` * The folder *spike_make_sphinx* is removed ``` rm -R spike_make_sphinx ```