{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Build the Sphinx documention" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "With this notebook you can builld a local copy of phconvert's documentation.\n", "\n", "Make sure you have installed sphinx 1.3 (or later) and the napoleon extension (included with sphinx 1.3 or later)." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You will also need the theme `sphinx_rtd_theme`. You can install it via conda with `conda install sphinx_rtd_theme`." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import os\n", "\n", "DOCS_DIR = r'./'\n", "HTML_DIR= os.path.abspath('.') + '_build/html'" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "!sphinx-build -b html \"$DOCS_DIR\" \"$HTML_DIR\"" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Read the generated documentation [here](docs_html/index.html)." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.5.2" } }, "nbformat": 4, "nbformat_minor": 0 }