Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
admercs committed Feb 13, 2024
1 parent 363f3c6 commit 07919dc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
python3 -m pip install --upgrade pip
pip install mkdocs mkdocs-material pymdown-extensions mkdocstrings[python]
pip install sphinx sphinx-immaterial numpy msgpack-rpc-python
pip install breathe exhale # for doxygen -> sphinx conversion
pip install breathe # for doxygen -> sphinx conversion
- name: "Generate C++ API documentation: Doxygen -> Breathe -> Sphinx"
shell: bash
Expand Down
17 changes: 0 additions & 17 deletions AutonomyLib/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"breathe",
"exhale",
]

autodoc_default_flags = ["members"]
Expand All @@ -75,22 +74,6 @@
breathe_projects = {"AutonomyLib": "./doxyxml/xml/"}
breathe_default_project = "AutonomyLib"

# Setup the exhale extension
exhale_args = {
# required arguments
"containmentFolder": "./api",
"rootFileName": "library_root.rst",
"doxygenStripFromPath": "..",
# strongly encouraged optional argument (see docs)
"rootFileTitle": "C++ Library API",
# suggested optional arguments
"createTreeView": True,
# tip: if using the sphinx-bootstrap-theme, you need
# "treeViewIsBootstrap": True,
"exhaleExecutesDoxygen": False,
"exhaleDoxygenStdin": "INPUT = ../include",
}

# Tell sphinx what the primary language being documented is.
primary_domain = "cpp"

Expand Down
1 change: 0 additions & 1 deletion AutonomyLib/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ This page documents `AutonomyLib`_, the C++ library of `AutonomySim`_.
:maxdepth: 2
:caption: Contents:

about
api/library_root
10 changes: 8 additions & 2 deletions AutonomyLib/include/common/utils/ColorUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ class ColorUtils {
* follows the International Electrotechnical Commission standard IEC 61966-2-1 "Multimedia systems and equipment -
* Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB"
*
* @param xyz XYZ values in a double array in the order of X, Y, Z. each value in the range of [0.0, 1.0]
* @return RGB values in a double array, in the order of R, G, B. each value in the range of [0.0, 1.0]
* @param x XYZ values in a double array in the order of X, Y, Z. each value in the range of [0.0, 1.0]
* @param y XYZ values in a double array in the order of X, Y, Z. each value in the range of [0.0, 1.0]
* @param x XYZ values in a double array in the order of X, Y, Z. each value in the range of [0.0, 1.0]
* @param r values in a double array, in the order of R, G, B. each value in the range of [0.0, 1.0]
* @param g values in a double array, in the order of R, G, B. each value in the range of [0.0, 1.0]
* @param b values in a double array, in the order of R, G, B. each value in the range of [0.0, 1.0]
*/
static void srgbXYZ2RGB(double x, double y, double z, double &r, double &g, double &b) {
double rl = 3.2406255 * x + -1.537208 * y + -0.4986286 * z;
Expand All @@ -48,6 +52,8 @@ class ColorUtils {
r = srgbXYZ2RGBPostprocess(rl);
g = srgbXYZ2RGBPostprocess(gl);
b = srgbXYZ2RGBPostprocess(bl);

return;
}

/**
Expand Down

0 comments on commit 07919dc

Please sign in to comment.