From 625d3ec6670127b4c9f80863129adbd98dce501e Mon Sep 17 00:00:00 2001 From: Nick Slowinski Date: Fri, 7 Jul 2023 19:05:46 +0200 Subject: [PATCH] Moving to separate source and build folders --- .gitignore | 5 +++-- Makefile | 4 ++-- make.bat | 4 ++-- requirements.txt | 3 ++- conf.py => source/conf.py | 4 ++++ index.rst => source/index.rst | 0 6 files changed, 13 insertions(+), 7 deletions(-) rename conf.py => source/conf.py (88%) rename index.rst => source/index.rst (100%) diff --git a/.gitignore b/.gitignore index 9ea367f..2c1e109 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ -_build/ -.venv/ \ No newline at end of file +build/ +.venv/ +.vscode/ \ No newline at end of file diff --git a/Makefile b/Makefile index d4bb2cb..d0c3cbf 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ # from the environment for the first two. SPHINXOPTS ?= SPHINXBUILD ?= sphinx-build -SOURCEDIR = . -BUILDDIR = _build +SOURCEDIR = source +BUILDDIR = build # Put it first so that "make" without argument is like "make help". help: diff --git a/make.bat b/make.bat index 32bb245..747ffb7 100644 --- a/make.bat +++ b/make.bat @@ -7,8 +7,8 @@ REM Command file for Sphinx documentation if "%SPHINXBUILD%" == "" ( set SPHINXBUILD=sphinx-build ) -set SOURCEDIR=. -set BUILDDIR=_build +set SOURCEDIR=source +set BUILDDIR=build %SPHINXBUILD% >NUL 2>NUL if errorlevel 9009 ( diff --git a/requirements.txt b/requirements.txt index 8270273..20e3036 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ -furo==2023.5.20 \ No newline at end of file +furo==2023.5.20 +sphinx-intl==2.1.0 \ No newline at end of file diff --git a/conf.py b/source/conf.py similarity index 88% rename from conf.py rename to source/conf.py index ef1e6ab..a0b6a85 100644 --- a/conf.py +++ b/source/conf.py @@ -25,3 +25,7 @@ language = 'de' html_theme = 'furo' html_static_path = ['_static'] + +# Translation stuff +locale_dirs = ['locale/'] # path is example but recommended. +gettext_compact = False # optional. \ No newline at end of file diff --git a/index.rst b/source/index.rst similarity index 100% rename from index.rst rename to source/index.rst