-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
239 changed files
with
5,213 additions
and
758 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
.DEFAULT_GOAL := all | ||
|
||
# Replace this path with your local build of doxyrest: | ||
export PYTHONPATH := $(HOME)/code/doxyrest_b/doxyrest/sphinx/:$(PYTHONPATH) | ||
export PATH := $(HOME)/code/doxyrest_b/build/doxyrest/bin/Release:$(PATH) | ||
export MRPT_VERSION_STR := $(shell head -n1 ../version_prefix.txt) | ||
export MRPT_LIST_INCLUDE_DIRS := $(shell for f in ../libs/*/include; do printf "$$(realpath $$f) "; done) | ||
export MRPT_DOX_INPUT_DIRS := $(shell for f in ../libs/*; do printf "$$(realpath $$f) "; done) | ||
|
||
# Use to quickly test the documentation scripts: | ||
ifeq ($(MRPT_DOCS_FAST_TEST),1) | ||
export MRPT_DOX_INPUT_DIRS := $(shell realpath ../libs/core) | ||
endif | ||
|
||
|
||
.PHONY: clean | ||
clean: | ||
rm -fr html | ||
rm -fr \ | ||
source/xml-dir \ | ||
source/class_* \ | ||
source/enum_* \ | ||
source/namespace_* \ | ||
source/group_* \ | ||
source/struct_* \ | ||
source/page_* \ | ||
source/union_* \ | ||
source/global.rst source/doxygen-index.rst \ | ||
2> /dev/null || true | ||
|
||
.PHONY: all | ||
all: | ||
make html | ||
|
||
html-and-view: | ||
make html | ||
xdg-open html/index.html | ||
|
||
html: | ||
echo "Building docs for these directories: ${MRPT_DOX_INPUT_DIRS}" | ||
echo "Using MRPT_LIST_INCLUDE_DIRS: ${MRPT_LIST_INCLUDE_DIRS}" | ||
# 1) Build Doxygen | ||
cd source && doxygen | ||
# 2) Doxygen XML -> RST | ||
cd source && doxyrest -c doxyrest-config.lua | ||
# Remove main doc file created for nanoflann: | ||
rm source/page_index.rst 2>/dev/null || true | ||
# 3) RST -> HTML with Sphinx | ||
sphinx-build -b html source/ html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Root directory for MRPT Sphinx documentation. | ||
|
||
# Requisites | ||
|
||
``` | ||
# Install Sphinx & dependencies: | ||
sudo -H pip install sphinx_rtd_theme | ||
``` | ||
|
||
Install doxyrest: [instructions](https://github.com/vovkos/doxyrest_b/blob/master/README.rst). | ||
|
||
|
||
# How to generate docs | ||
|
||
From the MRPT source tree: | ||
|
||
``` | ||
cd docs | ||
make | ||
``` | ||
|
||
You may need to either modify PATH and PYTHONPATH in your env, or edit the hard-coded paths in mrpt/docs/Makefile |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.