24 Commits

Author SHA1 Message Date
44369626ac updated handbuch submodule 2021-09-23 22:08:17 +02:00
72e2b06f5b version set to 0.0.5 2021-09-23 22:05:04 +02:00
2796ce1767 submodule url adapted to changed organisation for submodule handbuch 2021-09-23 21:52:06 +02:00
8a3aad5ca9 removed now superfluous sphinx subdir 2021-09-16 09:22:46 +02:00
ff122a09d7 adapted README.md to changed content of package (only sphinx stays in the repo) 2021-09-16 09:21:56 +02:00
e6f253447e removed handbuch symlink in source dir, moved submodule handbuch into source dir 2021-09-16 09:11:00 +02:00
41a51e6bb9 changed chapter ordering - chapter auszahlung nach RaaS 2021-09-14 12:16:27 +02:00
decce7dd7c fixed handbuch symlink and updated submodule 2021-09-14 12:15:38 +02:00
78fa56ea4b took over epub-cover from rtfm 2021-09-12 01:08:51 +02:00
5a10775763 updated handbuch submodule 2021-09-10 12:14:09 +02:00
5b242831b6 removed crowbook and mdbook configand moved sphinx dirs one level up
Makefile adapted to new directory structure and mixed with the one from Sphinx
2021-09-08 16:34:25 +02:00
e5af0a2c4e updated handbuch submodule to newest main 2021-09-08 14:47:06 +02:00
0bc31c418d feat: added initial version of png cover image to epub 2021-09-05 16:30:02 +02:00
218595c922 feat: created epub theme to change the cover 2021-09-05 15:31:09 +02:00
323b893714 updated handbuch submodule to changed main 2021-09-05 14:52:08 +02:00
01acc38404 authors unified in tool configurations, toc for all tools adapted to adapted handbuch chapters 2021-09-05 14:26:51 +02:00
c655a87a91 updated all configurations with new chapter "organisation.md" 2021-09-05 13:19:08 +02:00
ab7acf9874 updated document sources 2021-09-05 13:12:07 +02:00
f53c84afeb Merge branch 'feature/wtf_coop_theme'
* feature/wtf_coop_theme:
  feat: updated handbuch
  docs: reduced install efforts with creation of requirements.txt
  chore: added plantuml.jar to .gitignore
  feat: 1st wtf_coop theme based on read the docs
  fix: whitespace
  feat: updated handbuch
  feat: updated handbuch
  feat: start over clean
  fix: whitespace
  updated submodule  handbuch
  fix: reduced maxdepth of index to 2 to reduce clutter
  Makefile adapted to changed pdf filename (changed title)
  changed title, authors and release version
  initial sphinx settings for epub (cover page contains only logo for now)
  initial settings for wtf cooperative latex CI added
  theme adapted to wtf CI, logo included, links in header changed to wtf service urls
  new theme wtf_coop created from sphinx13, config changed to use new theme, no further adapations than filenames are done

# Conflicts:
#	sphinx/source/conf.py
2021-09-05 09:01:01 +02:00
776f957c1e feat: updated handbuch 2021-08-31 14:12:21 +02:00
dc8644dfe5 updated all configurations with new chapter "organisation.md" 2021-08-31 13:57:37 +02:00
b8c1892642 Merge pull request 'Neuer wtf_coop-Theme' (#3) from muli/rtfm:feature/wtf_coop_theme into feature/wtf_coop_theme
Reviewed-on: gulliver/rtfm#3
2021-08-29 12:56:30 +02:00
ae424c2f73 updated submodule handbuch 2021-08-18 22:32:03 +02:00
76432f9f69 Merge pull request 'fix: reduced maxdepth of index to 2 to reduce clutter' (#2) from muli/rtfm:feature/wtf_coop_theme into feature/wtf_coop_theme
Reviewed-on: gulliver/rtfm#2
2021-08-17 17:49:53 +02:00
70 changed files with 83 additions and 184 deletions

1
.gitignore vendored
View File

@ -210,3 +210,4 @@ crowbook/wtf-handbook.pdf
# Plantuml binary
plantuml.jar
py3-sphinx

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "handbuch"]
path = handbuch
url = https://git.wtf-eg.de/ag_kommunikation/handbuch.git
path = source/handbuch
url = https://git.wtf-eg.de/wtf-eg/handbuch.git

View File

@ -1,26 +1,34 @@
.PHONY: mdbook crowbook sphinx bundle
# Minimal makefile for Sphinx documentation
#
all: mdbook crowbook sphinx
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: sphinx bundle
clean:
-rm -rf sphinx/build/*
mdbook:
-mdbook build mdbook
-cd mdbook; RUST_BACKTRACE=1 mdbook-epub --standalone
crowbook:
crowbook crowbook/wtf-handbook.book
-rm -rf build/*
sphinx:
$(MAKE) -C sphinx singlehtml epub latexpdf
$(MAKE) singlehtml epub latexpdf
bundle: all
bundle: sphinx
-mkdir bundle
cp mdbook/book/epub/RTFM\ -\ Das\ WTF\ Kooperative\ Handbuch.epub bundle/mdbook_RTFM\ -\ Das\ WTF\ Kooperative\ Handbuch.epub
cp crowbook/wtf-handbook.epub bundle/crowbook_wtf-handbook.epub
cp crowbook/wtf-handbook.pdf bundle/crowbook_wtf-handbook.pdf
cp crowbook/wtf-handbook.html bundle/crowbook_wtf_handbook.html
cp sphinx/build/epub/RTFM-DasHandbuchzurWTFeG.epub bundle/sphinx_DasHandbuchzurWTFeG.epub
cp sphinx/build/latex/rtfm-dashandbuchzurwtfeg.pdf bundle/sphinx_DasHandbuchzurWTFeG.pdf
rsync -av --delete sphinx/build/singlehtml/ bundle/sphinx_html
cp build/epub/*.epub bundle/
cp build/latex/*.pdf bundle/
rsync -av --delete build/singlehtml/ bundle/html

View File

@ -1,87 +1,34 @@
# rtfm
# About
This repo contains the sphinx configuration and the wtf theme for sphinx for the generation of the WTF handbook.
this project is an experiment of how to generate html, epub and pdf
from the git repository for the WTF Handbook.
The handbuch sources are included as git submodule.
It contains a configuration for three different generators:
- mdbook and mdbook-epub
- crowbook
- sphinx
### sphinx html theme for wtf coop
# sphinx html theme for wtf coop
the sphinx build uses an adapted sphinx theme for the wtf cooperatives CI.
## How to build
### rust based tools mdbook and crowbook
For building you need a rust installation.
This can be achieved by using the installer from https://rustup.rs
After installing the rust toolchain for your platform you have to install the needed tools:
````
cargo install mdbook
cargo install mdbook-epub
cargo install crowbook
````
Crowbook needs xelatex for building the pdf outputs.
# How to build
### python based - sphinx
First create a Python 3 virtual environment using the venv module included with Python 3.
````
python -m venv py3-sphinx
`````
Now “activate” the environment. Look for the name of the virtual environment enclosed in parenthesis after activation.
`````
source py3-sphinx/bin/activate
``````
Expected Output
`````
(py3-sphinx) $
``````
In the virtual environment install the following modules with pip:
`````
(py3-sphinx) $ pip install sphinx3 sphinxcontrib-plantuml myst-parser
``````
1. Create a virtual Python environment: ```python3 -m venv venv```
2. Activate virtual Python environment: ```source venv/bin/activate```
3. install needed packages from ```requirements.txt```: ```pip install -r requirements.txt```
For generating the images from plantuml-sources it needs also [Plantuml](https://plantuml.com/).
For pdf output the latex builder is used, so it needs also an installed latex and pdflatex.
### Running the document generation via make
The top level directory contains a Makefile
The top level directory contains a Makefile,
for generation with all output formats use
For generation with all tools use
`````
make all
make bundle
`````
For generation with single tool use:
`````
make mdbook [crowbook sphinx]
`````
## Issues
### mdbook - rendering problem with current inputs
### sphinx - Problems rendering latex with .svg image(organigramm.svg)
### problems rendering links not starting with http(s)
mumble and mailto links are not rendered correctly
tbd have an eye on all outputs
## TODO
- [ ] complete wtf coop HTML theme
- [ ] add frontpage with wtf coop CI
- [ ] adapt generated pdf to WTF design
- [ ] unify Title and authors in the configurations

View File

@ -1,9 +0,0 @@
## Installation ##
````
rustup
cargo install crowbook
````
pdf generation needs xelatex

View File

@ -1,26 +0,0 @@
author: evi, helix, gulliver
title: RTFM - Das Handbuch für die WTF eG
lang: de
## Output formats
# Uncomment and fill to generate files
# output.html: some_file.html
# output.epub: some_file.epub
# output.pdf: some_file.pdf
# Or uncomment the following to generate PDF, HTML and EPUB files based on this file's name
output: [pdf, epub, html]
# Uncomment and fill to set cover image (for EPUB)
# cover: some_cover.png
## List of chapters
+ ../handbuch/intro.md
+ ../handbuch/dienste.md
+ ../handbuch/FAQ.md
+ ../handbuch/Aufnahmeprozess.md
+ ../handbuch/Wegweiser.md
+ ../handbuch/Auszahlung.md
+ ../handbuch/RaaS.md
+ ../handbuch/AG-Einkauf.md

Submodule handbuch deleted from 4cc1f50802

View File

@ -1,8 +0,0 @@
## Installation ##
``
rustup
cargo install mdbook
cargo install mdbook-epub
````

View File

@ -1,11 +0,0 @@
[book]
authors = ["tbd, helix, evi"]
language = "de"
multilingual = false
src = "src"
title = "RTFM - Das WTF Kooperative Handbuch"
[output.html]
mathjax-support = true
[output.epub]

View File

@ -1,10 +0,0 @@
# Inhaltsverzeichnis
- [Wichtige Links](../../Handbuch/intro.md)
- [Dienste und Organisation](../../Handbuch/dienste.md)
- [Aufnahmeprozess](../../Handbuch/Aufnahmeprozess.md)
- [Wegweiser für neue Mitglieder](../../Handbuch/Wegweiser.md)
- [Auszahlung](../../Handbuch/Auszahlung.md)
- [Häufige Fragen](../../Handbuch/FAQ.md)
- [Rechnung as a Service (RaaS)](../../Handbuch/RaaS.md)
- [AG Einkauf](../../Handbuch/AG-Einkauf.md)

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -24,8 +24,7 @@ copyright = '2021, diverse'
author = 'Autorenkollektiv'
# The full version, including alpha/beta/rc tags
release = '0.0.1'
release = '0.0.5'
# -- General configuration ---------------------------------------------------
@ -91,4 +90,5 @@ latex_elements = {
latex_logo = '_static/wtf_coop_header.png'
latex_show_urls = 'footnote'
epub_cover = ('_static/wtf_coop_header.png', 'epub-cover.html')
epub_theme = 'wtf_epub'
epub_cover = ('_static/epub_cover.png', 'epub-cover.html')

1
source/handbuch Submodule

Submodule source/handbuch added at 8fecdc5822

View File

@ -11,14 +11,12 @@ RTFM - Das Handbuch zur wtf Kooperative eG
:caption: Contents:
handbuch/intro.md
handbuch/dienste.md
handbuch/FAQ.md
handbuch/organisation.md
handbuch/Aufnahmeprozess.md
handbuch/Wegweiser.md
handbuch/Auszahlung.md
handbuch/RaaS.md
handbuch/AG-Einkauf.md
handbuch/Auszahlung.md
handbuch/FAQ.md
Indices and tables
==================

View File

@ -1,20 +0,0 @@
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

View File

@ -1,5 +0,0 @@
# Installation
1. Virtuelle Pythonumgebung erstellen: ```python3 -m venv venv```
2. Virtuelle Umgebung aktivieren: ```source venv/bin/activate```
3. Pakete aus ```requirements.txt``` installieren: ```pip install -r requirements.txt```

View File

@ -1 +0,0 @@
../../handbuch/

View File

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

View File

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

View File

@ -0,0 +1,23 @@
{#
epub/epub-cover.html
~~~~~~~~~~~~~~~~~~~~
Sample template for the html cover page.
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- extends "layout.html" %}
{%- block header %}{% endblock %}
{%- block rootrellink %}{% endblock %}
{%- block relbaritems %}{% endblock %}
{%- block sidebarlogo %}{% endblock %}
{%- block linktags %}{% endblock %}
{%- block relbar1 %}{% endblock %}
{%- block sidebar1 %}{% endblock %}
{%- block sidebar2 %}{% endblock %}
{%- block footer %}{% endblock %}
{% block content %}
<div class="epub-cover" style="background-image: url('{{ image }}');"></div>
{% endblock %}

View File

@ -0,0 +1,9 @@
.epub-cover {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}

View File

@ -0,0 +1,3 @@
[theme]
inherit = epub
stylesheet = css/style.css