This is an automated email from the git hooks/post-receive script.
praiskup pushed a commit to branch master in repository copr/copr.
The following commit(s) were added to refs/heads/master by this push: new 3bb4a1f doc: add database ER diagram 3bb4a1f is described below
commit 3bb4a1f3f9381bedc2881f4cfcece46a47759e71 Author: Dominik Turecek dturecek@redhat.com AuthorDate: Wed Sep 25 17:46:05 2019 +0200
doc: add database ER diagram
Fixes: #988 Merges: #1023 --- doc/Makefile | 9 ++++++++- doc/database_erd.rst | 7 +++++++ doc/developer_documentation.rst | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/doc/Makefile b/doc/Makefile index 73658c9..e1d11cf 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -13,6 +13,7 @@ PAPEROPT_letter = -D latex_paper_size=letter ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . # the i18n builder cannot share the environment and doctrees with the others I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ERDFILE = _static/db-erd.png
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
@@ -41,7 +42,13 @@ help: clean: -rm -rf $(BUILDDIR)/*
-html: +$(ERDFILE): ../frontend/coprs_frontend/coprs/models.py + export PYTHONPATH=`pwd`/../frontend/coprs_frontend/; \ + export COPR_CONFIG=`pwd`/../frontend/coprs_frontend/config/copr_unit_test.conf; \ + python3 -c "from eralchemy import render_er; from coprs import db; \ + render_er(db.metadata, '$@')" + +html: $(ERDFILE) $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." diff --git a/doc/database_erd.rst b/doc/database_erd.rst new file mode 100644 index 0000000..f0e9147 --- /dev/null +++ b/doc/database_erd.rst @@ -0,0 +1,7 @@ +.. _database-erd: + +Database ER diagram +=================== + +.. image:: _static/db-erd.png + :scale: 30% diff --git a/doc/developer_documentation.rst b/doc/developer_documentation.rst index b7113c3..7e3c665 100644 --- a/doc/developer_documentation.rst +++ b/doc/developer_documentation.rst @@ -24,7 +24,7 @@ Working with the code How to work with Git (the version control system for Copr project) <git_guide> Do you prefer sending patches? <patch_process> Building Copr packages (backend, frontend, ...) <building_package> - Database schema http://miroslav.suchy.cz/copr/coprdb/ + Database schema <database_erd> Documentation of python code (or check copr-frontend-doc.rpm and copr-backend-doc.rpm) http://miroslav.suchy.cz/copr/python-doc/
History
copr-commits@lists.fedorahosted.org