Skip to content

Commit

Permalink
First attempts with doxygen
Browse files Browse the repository at this point in the history
  • Loading branch information
kovzol committed Dec 17, 2023
1 parent 605d77d commit 2165cde
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PROJECT_NAME = bibref
PROJECT_NUMBER = 2023-12-17
PROJECT_BRIEF = A tool to find internal references in the Bible
PROJECT_LOGO = logo-Psalm40-doxygen.png

EXTRACT_ALL = YES
EXTRACT_PRIVATE = YES

HTML_OUTPUT = docs/html
LATEX_OUTPUT = docs/latex
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ $(BUILD_DIR)/%.cpp.o: %.cpp
$(MKDIR_P) $(dir $@)
$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@

documentation: docs/latex/refman.pdf docs/html

docs/latex/refman.pdf: docs/latex
$(MAKE) -C docs/latex

docs/html docs/latex: Doxyfile $(SRCS) logo-Psalm40-doxygen.png
doxygen Doxyfile

.PHONY: clean

clean:
Expand Down
40 changes: 40 additions & 0 deletions cli.dox
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/**
* @file cli.h
* Command line interface (CLI) related code.
*/

void cli(const char *input_prepend, const char* output_prepend, bool addbooks, bool colored) {
/**
* @short Start the CLI.
* Start the command line interface.
* @param input_prepend Prepend a string before all input lines.
* @param output_prepend Prepend a string before all output lines.
* @param addbooks Load book databases immediately on startup.
* @param colored Show all texts colored if possible.
*/
}

void add_vocabulary_item(string item) {
/**
* @short Adds item to the vocabulary.
* Extend the vocabulary with an extra word.
* It can be recalled by the usual readline shortcuts.
* @param item Add this item to the vocabulary.
*/
}

void error(string message) {
/**
* @short Print an error.
* Print an error message to standard error.
* @param message The message to print.
*/
}

void info(string message) {
/**
* @short Print an info.
* Prints an info message to standard out.
* @param message The message to print.
*/
}
1 change: 0 additions & 1 deletion cli.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

using namespace std;

char** completer(const char* text, int start, int end);
void cli(const char *input_prepend, const char* output_prepend, bool addbooks, bool colored);
void add_vocabulary_item(string item);
void error(string message);
Expand Down
Binary file added logo-Psalm40-doxygen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2165cde

Please sign in to comment.