diff --git a/docs/data-model.rst b/docs/data-model.rst index 1693ae4..8058c21 100644 --- a/docs/data-model.rst +++ b/docs/data-model.rst @@ -1,13 +1,21 @@ .. _data-model: Data model ========== +.. _swh-merkle-dag: +.. figure:: images/swh-merkle-dag.svg + :width: 1024px + :align: center + + Software Heritage archive as a Merkle DAG, augmented with crawling + information (click to zoom). + TODO Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. diff --git a/docs/images/.gitignore b/docs/images/.gitignore new file mode 100644 index 0000000..e9c694c --- /dev/null +++ b/docs/images/.gitignore @@ -0,0 +1,2 @@ +swh-merkle-dag.pdf +swh-merkle-dag.svg diff --git a/docs/images/Makefile b/docs/images/Makefile new file mode 100644 index 0000000..fc8352c --- /dev/null +++ b/docs/images/Makefile @@ -0,0 +1,25 @@ + +MERKLE_DAG = swh-merkle-dag.svg + +BUILD_TARGETS = +BUILD_TARGETS += $(MERKLE_DAG) + +all: $(BUILD_TARGETS) + + +# dia exporters + +%.eps: %.dia + dia -t eps --export $@ $< + +%.svg: %.dia + dia -t svg --export $@ $< + +# generic converters + +%.pdf: %.eps + epstopdf $< + + +clean: + -rm -f $(BUILD_TARGETS) diff --git a/docs/images/swh-merkle-dag.dia b/docs/images/swh-merkle-dag.dia new file mode 100644 index 0000000..3e4ddc9 Binary files /dev/null and b/docs/images/swh-merkle-dag.dia differ