Skip to content

Commit 25b2294

Browse files
committed
sphinx
1 parent 07a958c commit 25b2294

File tree

4 files changed

+73
-0
lines changed

4 files changed

+73
-0
lines changed

docs/Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.PHONY: help
2+
help:
3+
@echo "make cpp|py"
4+
5+
.PHONY: cpp
6+
cpp:
7+
@echo "Building C++ documentation..."
8+
doxygen Doxyfile
9+
10+
.PHONY: py
11+
py:
12+
@echo "Building Python documentation..."
13+
pip wheel .. -w ./wheel
14+
sphinx-build -b singlehtml . ./html_py/

docs/conf.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5+
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8+
9+
project = 'small_gicp'
10+
copyright = '2024, k.koide'
11+
author = 'k.koide'
12+
13+
import os
14+
import sys
15+
sys.path.insert(0, os.path.abspath('./wheel/'))
16+
17+
# -- General configuration ---------------------------------------------------
18+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
19+
20+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.napoleon']
21+
22+
templates_path = ['_templates']
23+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
24+
25+
26+
# -- Options for HTML output -------------------------------------------------
27+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
28+
29+
html_theme = 'sphinx_rtd_theme'
30+
html_static_path = ['_static']

docs/index.rst

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. small_gicp documentation master file, created by
2+
sphinx-quickstart on Wed Jun 5 11:07:43 2024.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to small_gicp's documentation!
7+
======================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
small_gicp
14+
15+
16+
17+
Indices and tables
18+
==================
19+
20+
* :ref:`genindex`
21+
* :ref:`modindex`
22+
* :ref:`search`

docs/small_gicp.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
small\_gicp module
2+
==================
3+
4+
.. automodule:: small_gicp
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

0 commit comments

Comments
 (0)