|
| 1 | +.. Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +.. or more contributor license agreements. See the NOTICE file |
| 3 | +.. distributed with this work for additional information |
| 4 | +.. regarding copyright ownership. The ASF licenses this file |
| 5 | +.. to you under the Apache License, Version 2.0 (the |
| 6 | +.. "License"); you may not use this file except in compliance |
| 7 | +.. with the License. You may obtain a copy of the License at |
| 8 | +
|
| 9 | +.. http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +
|
| 11 | +.. Unless required by applicable law or agreed to in writing, |
| 12 | +.. software distributed under the License is distributed on an |
| 13 | +.. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +.. KIND, either express or implied. See the License for the |
| 15 | +.. specific language governing permissions and limitations |
| 16 | +.. under the License. |
| 17 | +
|
| 18 | +Building the Documentation |
| 19 | +========================== |
| 20 | + |
| 21 | +Prerequisites |
| 22 | +------------- |
| 23 | + |
| 24 | +The documentation build process uses `Doxygen <http://www.doxygen.nl/>`_ and |
| 25 | +`Sphinx <http://www.sphinx-doc.org/>`_ along with a few extensions. |
| 26 | + |
| 27 | +If you're using Conda, the required software can be installed in a single line: |
| 28 | + |
| 29 | +.. code-block:: shell |
| 30 | +
|
| 31 | + conda install -c conda-forge --file ci/conda_env_sphinx.yml |
| 32 | +
|
| 33 | +Otherwise, you'll first need to install `Doxygen <http://www.doxygen.nl/>`_ |
| 34 | +yourself (for example from your distribution's official repositories, if |
| 35 | +using Linux). Then you can install the Python-based requirements with the |
| 36 | +following command: |
| 37 | + |
| 38 | +.. code-block:: shell |
| 39 | +
|
| 40 | + pip install -r docs/requirements.txt |
| 41 | +
|
| 42 | +Building |
| 43 | +-------- |
| 44 | + |
| 45 | +.. note:: |
| 46 | + |
| 47 | + If you are building the documentation on Windows, not all sections |
| 48 | + may build properly. |
| 49 | + |
| 50 | +These two steps are mandatory and must be executed in order. |
| 51 | + |
| 52 | +#. Process the C++ API using Doxygen |
| 53 | + |
| 54 | + .. code-block:: shell |
| 55 | +
|
| 56 | + pushd cpp/apidoc |
| 57 | + doxygen |
| 58 | + popd |
| 59 | +
|
| 60 | +#. Build the complete documentation using Sphinx |
| 61 | + |
| 62 | + .. code-block:: shell |
| 63 | +
|
| 64 | + pushd docs |
| 65 | + make html |
| 66 | + popd |
| 67 | +
|
| 68 | +After these steps are completed, the documentation is rendered in HTML |
| 69 | +format in ``docs/_build/html``. In particular, you can point your browser |
| 70 | +at ``docs/_build/html/index.html`` to read the docs and review any changes |
| 71 | +you made. |
0 commit comments