mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-09-08 12:00:07 -04:00
Starting to get doxygen to work.
This commit is contained in:
1 parent
6a96c520dd
commit
c5ee9b6830
6 files changed
+31
-8
No files matched your search
+8
-2
@@ -8,15 +8,21 @@ Fail()
|
||||
echo "Generating target code."
|
||||
./generate source || Fail "Problem generating target code."
|
||||
|
||||
echo "Generating documentation in Markdown format."
|
||||
echo "Generating JS documentation in Markdown format."
|
||||
jsdoc2md --separators --template ../jsdoc2md/js.hbs --files ../source/js/astronomy.js > ../source/js/README.md || Fail "Error generating JS documentation."
|
||||
|
||||
if [[ -d html ]]; then
|
||||
echo "Generating documentation in HTML format for local viewing."
|
||||
echo "Generating JS documentation in HTML format for local viewing."
|
||||
rm -rf html
|
||||
jsdoc ../source/js/astronomy.js --destination html || Fail "Error generating HTML preview"
|
||||
else
|
||||
echo "(Skipping local HTML generation because html directory does not exist.)"
|
||||
fi
|
||||
|
||||
echo "Generating C documentation"
|
||||
|
||||
cd ../source/c || Fail "Error changing directory to ../source/c"
|
||||
rm -rf html xml latex
|
||||
doxygen Doxyfile > doxygen.log || Fail "Error in doxygen"
|
||||
|
||||
exit 0
|
||||
@@ -98,6 +98,11 @@ double Astronomy_VectorLength(astro_vector_t vector)
|
||||
return sqrt(vector.x*vector.x + vector.y*vector.y + vector.z*vector.z);
|
||||
}
|
||||
|
||||
/**
|
||||
* Finds the name of a celestial body.
|
||||
* @param body The celestial body whose name is to be found.
|
||||
* @return The English-language name of the celestial body, or "" if the body is not valid.
|
||||
*/
|
||||
const char *Astronomy_BodyName(astro_body_t body)
|
||||
{
|
||||
switch (body)
|
||||
@@ -391,7 +396,7 @@ astro_time_t Astronomy_CurrentTime(void)
|
||||
|
||||
/* Get seconds since midnight January 1, 1970, divide to convert to days, */
|
||||
/* then subtract to get days since noon on January 1, 2000. */
|
||||
|
||||
|
||||
t.ut = (time(NULL) / SECONDS_PER_DAY) - 10957.5;
|
||||
t.tt = TerrestrialTime(t.ut);
|
||||
return t;
|
||||
|
||||
Reference in new issue
Block a user