Resolve "Automatically generate GekkoFS documentation"

This MR adds a docs target to the build system that can be used to automatically generate Sphinx documentation based on ReStructured Text for the project. Additionally, it also processes the source files through Doxygen to generate intermediate XML that can be passed to Sphinx extensions Breathe and Exhale so that GekkoFS classes and functions can be referenced from the Sphinx documentation.

The CI script is also extended to build this documentation and deploy it to the project's site.

Closes #159 (closed)

Edited by Alberto Miranda

Merge request reports

Loading
+629

File added.

Preview size limit exceeded, changes collapsed.

+33
Changes for docker/0.8.0/docs/Dockerfile: 33 added lines, 0 removed lines.
Original line number Diff line number Diff line
FROM gekkofs/deps:0.8.0

LABEL Description="Debian-based environment suitable to build GekkoFS' documentation"

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        # install dependencies for Doxygen
        python \
        flex \
        bison \
		graphviz && \
	# install doxygen (repo version is kind of old)
	cd /tmp && curl -OL https://www.doxygen.nl/files/doxygen-1.9.2.src.tar.gz && \
	tar xvfz /tmp/doxygen-1.9.2.src.tar.gz && \
	mkdir -p /tmp/doxygen-1.9.2/build && \
	cd /tmp/doxygen-1.9.2/build && \
	cmake -G "Unix Makefiles" .. && \
	make -j8 install && \
    # install sphinx, breathe and exhale
    pip3 install \
        'sphinx==4.4.0' \
        sphinx_rtd_theme \
        'breathe==4.31.0' \
        'exhale==0.2.4' \
        'sphinx-copybutton==0.4.0' \
        'sphinx-multiversion==0.2.4' \
        'myst_parser==0.15.1' && \
    # Clean apt cache to reduce image layer size
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /tmp/doxygen-1.9.2 && \
    rm /tmp/doxygen-1.9.2.src.tar.gz && \
    # Clean apt caches of packages
    apt-get clean && apt-get autoclean
+4
Changes for docker/0.8.0/docs/Makefile: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
.PHONY: all

all:
	docker build -t gekkofs/docs:0.8.0 .
+33
Changes for docker/0.9.0/docs/Dockerfile: 33 added lines, 0 removed lines.
Original line number Diff line number Diff line
FROM gekkofs/deps:0.9.0

LABEL Description="Debian-based environment suitable to build GekkoFS' documentation"

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        # install dependencies for Doxygen
        python \
        flex \
        bison \
		graphviz && \
	# install doxygen (repo version is kind of old)
	cd /tmp && curl -OL https://www.doxygen.nl/files/doxygen-1.9.2.src.tar.gz && \
	tar xvfz /tmp/doxygen-1.9.2.src.tar.gz && \
	mkdir -p /tmp/doxygen-1.9.2/build && \
	cd /tmp/doxygen-1.9.2/build && \
	cmake -G "Unix Makefiles" .. && \
	make -j8 install && \
    # install sphinx, breathe and exhale
    pip3 install \
        'sphinx==4.4.0' \
        sphinx_rtd_theme \
        'breathe==4.31.0' \
        'exhale==0.2.4' \
        'sphinx-copybutton==0.4.0' \
        'sphinx-multiversion==0.2.4' \
        'myst_parser==0.15.1' && \
    # Clean apt cache to reduce image layer size
    rm -rf /var/lib/apt/lists/* && \
    rm -rf /tmp/doxygen-1.9.2 && \
    rm /tmp/doxygen-1.9.2.src.tar.gz && \
    # Clean apt caches of packages
    apt-get clean && apt-get autoclean
+4
Changes for docker/0.9.0/docs/Makefile: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
.PHONY: all

all:
	docker build -t gekkofs/docs:0.9.0 .
Loading
Loading