|
smollerGraph 0.20.2
A small graph database, from scratch
|
Accepted
After fifteen episodes, "to find out what a function does, you still have to open its header" (episode 16). The headers have a comment over each class and function, saying what it does. They start with two slashes, as Google's style guide writes them, and Doxygen reads comments written its own ways, such as with three slashes, or a slash and two stars, and leaves plain comments out.
docs target writes the API docs to build/docs/html, with the README as the front page, in doxygen-awesome 2.5.0's theme. Without Doxygen, the rest is skipped, so building the database doesn't need it.DOXYGEN_FILTER_PATTERNS passes each header through sed, which gives each comment that starts a line its third slash, "so the headers stay as they are".EXTRACT_ALL puts each class and its public functions and fields in, with a comment or without, and JAVADOC_AUTOBRIEF takes the first sentence of a comment as its brief. A file's page draws the files that include it, but not what it includes, "which is most of the standard library".docs stage builds them on Ubuntu, with its Doxygen and Graphviz, and holds the pages and nothing else, which docker build --target docs --output site . copies out. Configuring is enough, as the target reads the sources and compiles nothing.