Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gendoc #3

Merged
merged 3 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/gendoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: gendoc

on:
push:
tags:
- '*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
gendoc:
name: Generate documentation
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

- name : Install dependencies
run: sudo apt-get install -y git cmake build-essential doxygen graphviz python3-dev

- name: Install python dependencies
run: python -m pip install mkdocs mkdocs-material

- name: Generate documentation
run: cd docs && make all

- uses: actions/upload-artifact@v4
with:
name: site
path: ./site/*

- name: Deploy documentation
run: cd docs && make deploy
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ This is a collection of [GTSAM](https://gtsam.org/) factors and optimizers for r

Tested on Ubuntu 22.04 / 24.04 and CUDA 12.2, and NVIDIA Jetson Orin with **GTSAM 4.2a9**.

[![Build](https://github.com/koide3/gtsam_points/actions/workflows/build.yml/badge.svg)](https://github.com/koide3/gtsam_points/actions/workflows/build.yml)

[![Doc](https://img.shields.io/badge/API_list-Doxygen-blue)](https://koide3.github.io/gtsam_points/doc_cpp/index.html) [![Build](https://github.com/koide3/gtsam_points/actions/workflows/build.yml/badge.svg)](https://github.com/koide3/gtsam_points/actions/workflows/build.yml)

## Factors

Expand Down
2 changes: 1 addition & 1 deletion docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ GENERATE_HTML = YES
# The default directory is: html.
# This tag requires that the tag GENERATE_HTML is set to YES.

HTML_OUTPUT = html
HTML_OUTPUT = doc_cpp

# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each
# generated HTML page (for example: .htm, .php, .asp).
Expand Down
22 changes: 22 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
.PHONY: help
help:
@echo "make cpp|all"

.PHONY: cpp
cpp:
@echo "Building C++ documentation..."
doxygen Doxyfile doc_cpp

.PHONY: mkdocs
mkdocs:
@echo "Building MkDocs documentation..."
cd .. && mkdocs build

.PHONY: all
all: cpp mkdocs
@echo "All documentation built."

.PHONY: deploy
deploy:
@echo "Deploying documentation..."
cd .. && mkdocs gh-deploy --force
5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# gtsam_points

## Documentation

- [C++](doc_cpp/index.html)
41 changes: 41 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
site_name: "gtsam_points"
site_author: k.koide
repo_url: https://github.com/koide3/gtsam_points
site_url: https://github.com/koide3/gtsam_points
site_description: "gtsam_points: A collection of GTSAM factors and optimizers for point-cloud-based SLAM"

theme:
name: material
palette:
primary: indigo
front:
text: Roboto

use_directory_urls: false

markdown_extensions:
- meta
- attr_list
- admonition
- pymdownx.highlight:
anchor_linenums: true
- pymdownx.inlinehilite
- pymdownx.snippets
- pymdownx.superfences

copyright: Copyright © 2024 Kenji Koide
extra:
social:
- icon: material/home
link: https://staff.aist.go.jp/k.koide/
- icon: fontawesome/brands/github
link: https://github.com/koide3/gtsam_points
- icon: fontawesome/brands/twitter
link: https://twitter.com/k_koide3

extra_css:
- "css/custom.css"
- "https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css"

nav:
- 'index.md'
Loading