From 53710378de099d6dfd099edc77319d7a5013b091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Thu, 23 May 2024 17:34:48 +0000 Subject: [PATCH] Fix manual generation and deploy --- CMakeLists.txt | 2 +- Makefile | 2 +- README.md | 2 +- docs/Doxyfile.in | 13 ++++++------- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a2d731..eed7062 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,7 +92,7 @@ install(FILES ${CMAKE_BINARY_DIR}/configured_files/include/bayesnet/config.h DES # Documentation # ------------- -find_package(Doxygen REQUIRED dot) +find_package(Doxygen) set(DOC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/docs) set(doxyfile_in ${DOC_DIR}/Doxyfile.in) set(doxyfile ${DOC_DIR}/Doxyfile) diff --git a/Makefile b/Makefile index cb02f3a..62a9fd4 100644 --- a/Makefile +++ b/Makefile @@ -140,7 +140,7 @@ viewcoverage: ## View the html coverage report exit 1; \ fi @$(genhtml) $(f_debug)/tests/coverage.info --demangle-cpp --output-directory $(docsrcdir)/coverage --title "BayesNet Coverage Report" -s -k -f --legend >/dev/null 2>&1; - @xdg-open html/index.html || open html/index.html 2>/dev/null + @xdg-open $(docsrcdir)/coverage/index.html || open $(docsrcdir)/coverage/index.html 2>/dev/null @echo ">>> Done"; updatebadge: ## Update the coverage badge in README.md diff --git a/README.md b/README.md index 1b47306..e444046 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=rmontanana_BayesNet&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=rmontanana_BayesNet) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=rmontanana_BayesNet&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=rmontanana_BayesNet) ![Gitea Last Commit](https://img.shields.io/gitea/last-commit/rmontanana/bayesnet?gitea_url=https://gitea.rmontanana.es:3000&logo=gitea) -[![Coverage Badge](https://img.shields.io/badge/Coverage-99,0%25-green)](html/index.html) +[![Coverage Badge](https://img.shields.io/badge/Coverage-97,3%25-green)](html/index.html) Bayesian Network Classifiers using libtorch from scratch diff --git a/docs/Doxyfile.in b/docs/Doxyfile.in index afb2526..e030387 100644 --- a/docs/Doxyfile.in +++ b/docs/Doxyfile.in @@ -61,7 +61,7 @@ PROJECT_BRIEF = "@CMAKE_PROJECT_DESCRIPTION@" # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy # the logo to the output directory. -PROJECT_LOGO = /Users/rmontanana/Code/BayesNet/docs/logo_small.png +PROJECT_LOGO = logo_small.png # With the PROJECT_ICON tag one can specify an icon that is included in the tabs # when the HTML document is shown. Doxygen will copy the logo to the output @@ -74,7 +74,7 @@ PROJECT_ICON = # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. -OUTPUT_DIRECTORY = /Users/rmontanana/Code/BayesNet/docs +OUTPUT_DIRECTORY = # If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096 # sub-directories (in 2 levels) under the output directory of each output format @@ -949,8 +949,8 @@ WARN_LOGFILE = # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. -INPUT = /Users/rmontanana/Code/BayesNet/bayesnet -INPUT += /Users/rmontanana/Code/BayesNet/README.md +INPUT = ../bayesnet +INPUT += ../README.md # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses @@ -1425,8 +1425,7 @@ HTML_EXTRA_STYLESHEET = # files will be copied as-is; there are no commands or markers available. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_EXTRA_FILES = /Users/rmontanana/Code/BayesNet/diagrams -HTML_EXTRA_FILES += /Users/rmontanana/Code/BayesNet/logo.png +HTML_EXTRA_FILES = ../logo.png # The HTML_COLORSTYLE tag can be used to specify if the generated HTML output # should be rendered with a dark or light theme. @@ -2264,7 +2263,7 @@ GENERATE_MAN = YES # The default directory is: man. # This tag requires that the tag GENERATE_MAN is set to YES. -MAN_OUTPUT = /Users/rmontanana/Code/BayesNet/docs +MAN_OUTPUT = ./ # The MAN_EXTENSION tag determines the extension that is added to the generated # man pages. In case the manual section does not start with a number, the number