diff --git a/scripts/build.ps1 b/scripts/build.ps1 index f75fa5d..844618f 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -42,23 +42,23 @@ if ($? -eq $false){ } Write-Output "Built package successfully" -# manual -# Write-Output "Generate manual..." -# .\scripts\cvt_manual.ps1 -# if ($? -eq $false){ -# Write-Output "[PWSH] Exiting script because there errors while generating the README file" -# Exit -# } -# Write-Output "Generated manual file successfully" -# Write-Output "Copying manual file..." -# $readme_src_path = Join-Path -Path $SRC_PATH -ChildPath 'docs\manual.pdf' -# $readme_dest_path = Join-Path -Path $ENV_PATH -ChildPath 'manual' -# Copy-Item -Path $readme_src_path -Destination $readme_dest_path -Force -# if ($? -eq $false){ -# Write-Output "[PWSH] Exiting script because there were errors while copying the manual file" -# Exit -# } -# Write-Output "Copied manual file successfully" +# documentation +Write-Output "Generate docs..." +# $doc_build_script = Join-Path -Path $SRC_PATH -ChildPath "scripts\cvt_docs.ps1" -Resolve +.\scripts\cvt_docs.ps1 +if ($? -eq $false){ + Write-Output "[PWSH] Exiting script because there errors while generating the doc files" + Exit +} +Write-Output "Generated doc files successfully" +Write-Output "Copying doc files..." +$docs_src_path = Join-Path -Path $SRC_PATH -ChildPath 'docs\*.pdf' +Copy-Item -Path $docs_src_path -Destination $ENV_PATH -Force +if ($? -eq $false){ + Write-Output "[PWSH] Exiting script because there were errors while copying the doc files" + Exit +} +Write-Output "Copied doc files successfully" Write-Output "Go into env directory..." @@ -109,26 +109,6 @@ if ($? -eq $false){ } Write-Output "Copied startup scripts successfully" -# documentation -Write-Output "Generate manual..." -Set-Location $SRC_PATH -# $doc_build_script = Join-Path -Path $SRC_PATH -ChildPath "scripts\cvt_docs.ps1" -Resolve -.\scripts\cvt_docs.ps1 -if ($? -eq $false){ - Write-Output "[PWSH] Exiting script because there errors while generating the doc files" - Exit -} -Write-Output "Generated doc files successfully" -Write-Output "Copying manual file..." -$docs_src_path = Join-Path -Path $SRC_PATH -ChildPath 'docs\*.pdf' -# $docs_dest_path = Join-Path -Path $ENV_PATH -ChildPath 'manual' -Copy-Item -Path $docs_src_path -Destination $ENV_PATH -Force -if ($? -eq $false){ - Write-Output "[PWSH] Exiting script because there were errors while copying the doc files" - Exit -} -Write-Output "Copied doc files successfully" -Set-Location $ENV_PATH # env preparation Write-Output "Preparing environment with cleanup and pre-compilation..." diff --git a/scripts/cvt_docs.ps1 b/scripts/cvt_docs.ps1 index 59df0b4..9f41dd9 100644 --- a/scripts/cvt_docs.ps1 +++ b/scripts/cvt_docs.ps1 @@ -1,3 +1,3 @@ # convert README Markdown file to PDF as a manual -pandoc .\README.md -o .\docs\Kurzanleitung.pdf -V geometry:"a4paper, margin=2.5cm" -V header-includes="\usepackage[none]{hyphenat}" -pandoc .\docs\Versionshistorie.md -o .\docs\Versionshistorie.pdf -V geometry:"a4paper, margin=2.5cm" -V header-includes="\usepackage[none]{hyphenat}" +pandoc .\README.md -o .\docs\01_Kurzanleitung.pdf -V geometry:"a4paper, margin=2.5cm" -V header-includes="\usepackage[none]{hyphenat}" +pandoc .\docs\Versionshistorie.md -o .\docs\02_Versionshistorie.pdf -V geometry:"a4paper, margin=2.5cm" -V header-includes="\usepackage[none]{hyphenat}" diff --git a/src/wce_crm/gui.py b/src/wce_crm/gui.py index 2a915f4..166713d 100644 --- a/src/wce_crm/gui.py +++ b/src/wce_crm/gui.py @@ -3330,7 +3330,6 @@ CONFIG_GRUNDERFASSUNG_UNTERNEHMEN: Final[AutoFormConfig] = AutoFormConfig( ) -# TODO clean code class PageFormCompany(QWidget): back_main_requested = Signal() # back to main page back_requested = Signal() # back button