From fbc89c55742bac11a8e0a70e9535946a51e6fd11 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 28 Jan 2018 16:04:02 -0200 Subject: Updates EPUB config --- Makefile.sphinx | 6 +++++- conf.py | 1 + index.md | 2 +- organizacao.md | 3 --- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile.sphinx b/Makefile.sphinx index 8374b4c..6e807c9 100644 --- a/Makefile.sphinx +++ b/Makefile.sphinx @@ -94,6 +94,8 @@ epub: $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub @echo @echo "Build finished. The epub file is in $(BUILDDIR)/epub." + @cp $(BUILDDIR)/epub/*epub _static/ + @echo "A copy was made to _static/." latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex @@ -107,6 +109,8 @@ latexpdf: @echo "Running LaTeX files through pdflatex..." $(MAKE) -C $(BUILDDIR)/latex all-pdf @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex." + @cp $(BUILDDIR)/latex/*pdf _static/ + @echo "A copy was made to _static/." text: $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text @@ -153,7 +157,7 @@ doctest: "results in $(BUILDDIR)/doctest/output.txt." #web: clean epub latexpdf html -web: clean html +web: clean epub html web_deploy: @rsync -avz --delete _build/html/ templates:/var/sites/templates/www/ diff --git a/conf.py b/conf.py index a8aa2d8..ec16872 100644 --- a/conf.py +++ b/conf.py @@ -259,6 +259,7 @@ epub_title = u'Templates' epub_author = u'Templates' epub_publisher = u'Templates' epub_copyright = u'2016, Templates' +epub_basename = 'templates' # The language of the text. It defaults to the language option # or en if the language is not set. diff --git a/index.md b/index.md index 94a0d71..6be4b78 100644 --- a/index.md +++ b/index.md @@ -2,7 +2,7 @@ **Blueprints, boilerplates, modelos, listas, templates! Prontos para usar e se organizar!** -[PDF](_static/templates.pdf) | [EPUB](_static/templates.epub). + Este é um repositório de protocolos e templates de gestão pessoal e coletiva contendo procedimentos, comportamentos e regras simples que, quando combinados, diff --git a/organizacao.md b/organizacao.md index 97e1f8e..54bd333 100644 --- a/organizacao.md +++ b/organizacao.md @@ -1,8 +1,5 @@ # Organização -Índice ------- - Se a [modelagem de ameaças](https://threat.fluxo.info) é a mãe da segurança, organização é a mãe de tudo! Grupos -- cgit v1.2.3