Skip to content

Commit

Permalink
gendoc
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Jul 10, 2024
1 parent 49d108e commit 9fb8f13
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/gendoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: gendoc

on:
push:
branches: [ gendoc ]
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 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'

0 comments on commit 9fb8f13

Please sign in to comment.