diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4740569 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*~ +build/* +jkurunterschrift.png diff --git a/source/0_einleitung/vorwort.rst b/source/0_einleitung/vorwort.rst index f295820..df46139 100644 --- a/source/0_einleitung/vorwort.rst +++ b/source/0_einleitung/vorwort.rst @@ -15,9 +15,10 @@ Der Vorstand der KVT Kurlbaum AG verpflichtet sich, das Managementsystem und die Dieses Handbuch und die mitgeltenden Anlagen haben Weisungscharakter und werden hiermit in Kraft gesetzt. Alle Mitarbeiter sind verpflichtet, ihre Tätigkeiten gemäß den Regelungen des Management-Systems auszuführen und werden ausdrücklich aufgefordert, sich am kontinuierlichen Verbesserungsprozess aktiv zu beteiligen. -Osterholz-Scharmbeck, den 23.03.2023 +Osterholz-Scharmbeck, den |today| +.. image:: ../../jkurunterschrift.* + :height: 100px + :width: 200px -Jörg Kurlbaum - -Vorstand +Jörg Kurlbaum (Vorstand) diff --git a/source/_static/css/custom.css b/source/_static/css/custom.css new file mode 100644 index 0000000..07ad78b --- /dev/null +++ b/source/_static/css/custom.css @@ -0,0 +1,11 @@ +.wy-side-nav-search { + display: block; + width: 300px; + padding: .809em; + margin-bottom: .809em; + z-index: 200; + /* some comment */ + background-color: lightgray; + text-align: center; + color: #fefefe; +} diff --git a/source/_templates/footer.html b/source/_templates/footer.html new file mode 100644 index 0000000..1ca138d --- /dev/null +++ b/source/_templates/footer.html @@ -0,0 +1,64 @@ + diff --git a/source/conf.py b/source/conf.py index c4b1904..b9e89fb 100644 --- a/source/conf.py +++ b/source/conf.py @@ -6,6 +6,8 @@ # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information +import subprocess + project = 'Qualitätsmanagement-Handbuch' copyright = '2023, Qualitätsmanagementbeauftragter (QMB)' author = 'Qualitätsmanagementbeauftragter (QMB)' @@ -17,7 +19,7 @@ release = '2.0-alpha' # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration -extensions = ['sphinx.ext.graphviz', 'sphinx.ext.todo', 'sphinx.ext.autosectionlabel', 'sphinx.ext.imgconverter'] +extensions = ['sphinx.ext.graphviz', 'sphinx.ext.todo', 'sphinx.ext.autosectionlabel', 'sphinx.ext.imgconverter', 'sphinx_git'] todo_include_todos = True templates_path = ['_templates'] exclude_patterns = [] @@ -25,8 +27,14 @@ exclude_patterns = [] language = 'de' +show_sphinx = False + numfig = True +gitrevision = subprocess.run('git rev-parse --short HEAD'.split(' '), capture_output=True).stdout.decode('UTF-8') +gitlastauthor = subprocess.run('git log -1 --pretty=format:%an'.split(' '), capture_output=True).stdout.decode('UTF-8') + + rst_prolog = """ .. |ISONORM| replace:: DIN EN ISO 9001:2015-11 .. |KVT| replace:: KVT Kurlbaum AG @@ -38,7 +46,9 @@ rst_prolog = """ .. |AA| replace:: Arbeitsanweisung .. |SP| replace:: Spezifikation .. |Formular| replace:: Formblätter / Vorlagen -""" +.. |gitrevision| replace:: {} +.. |gitauthor| replace:: {} +""".format(gitrevision, gitlastauthor) rst_epilog = """ @@ -51,8 +61,32 @@ rst_epilog = """ html_theme = 'sphinx_rtd_theme' html_static_path = ['_static'] +html_logo = 'kvt-logo.png' +html_css_files = [ + 'css/custom.css', +] +html_context = { + 'show_sphinx': False, + 'gitrevision': gitrevision, + 'gitauthor': gitlastauthor +} +html_theme_options = { + #'logo_only': True, + 'display_version': True, + 'prev_next_buttons_location': 'bottom', + 'style_external_links': False, + 'vcs_pageview_mode': '', + #'style_nav_header_background': 'white', + # Toc options + 'collapse_navigation': False, + 'sticky_navigation': True, + 'navigation_depth': 2, + 'includehidden': True, + 'titles_only': False +} # -- Options for Latex/PDF export latex_engine = 'xelatex' +latex_theme = 'howto' diff --git a/source/index.rst b/source/index.rst index ec715a0..32cd22e 100644 --- a/source/index.rst +++ b/source/index.rst @@ -6,6 +6,18 @@ Qualitätsmanagement-Handbuch der KVT Kurlbaum AG ================================================ ++-----------+-------------+ +|Revision | |release| | ++-----------+-------------+ +|Datum ||today| | ++-----------+-------------+ +|Commit ||gitrevision|| ++-----------+-------------+ +|Bearbeiter | |gitauthor| | ++-----------+-------------+ +|Reviewer |??? | ++-----------+-------------+ + .. toctree:: :maxdepth: 2 :numbered: @@ -24,6 +36,17 @@ Qualitätsmanagement-Handbuch der KVT Kurlbaum AG verbesserung/index +Changelog +========= + +.. git_changelog:: + + +.. git_commit_detail:: + :branch: + :commit: + + TODO ==== .. todolist:: diff --git a/source/kvt-logo.png b/source/kvt-logo.png new file mode 100644 index 0000000..e35a25f Binary files /dev/null and b/source/kvt-logo.png differ