Skip to content

Commit

Permalink
Merge pull request #6 from robocup-junior/2024-draft
Browse files Browse the repository at this point in the history
Merge 2024 changes into main branch
  • Loading branch information
ChristianH99 authored Dec 29, 2023
2 parents 580c7bd + 5b046e4 commit c0bc17d
Show file tree
Hide file tree
Showing 6 changed files with 243 additions and 525 deletions.
4 changes: 2 additions & 2 deletions .ci/criticmarkup_to_adoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ def convert(self, infile):
cmp = CriticMarkupPreprocessor(
change_listing_fmt='- <<{CHANGE}>>',
addition_note_fmt='Added "{CURRENT}"',
addition_replacement_fmt='[red]#*{CURRENT}*#',
addition_replacement_fmt='*[red]#{CURRENT}#*',
deletion_note_fmt='Deleted "{PREVIOUS}"',
deletion_replacement_fmt='footnote:[In previous version this said "{PREVIOUS}"]', # noqa
substitution_note_fmt='Changed "{PREVIOUS}" to "{CURRENT}"',
substitution_replacement_fmt='[red]#*{CURRENT}*#\nfootnote:[In previous version this said "{PREVIOUS}"]' # noqa
substitution_replacement_fmt='*[red]#{CURRENT}#*\nfootnote:[In previous version this said "{PREVIOUS}"]' # noqa
)
print(cmp.convert(sys.argv[1]))
20 changes: 13 additions & 7 deletions build_rules_on_windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,21 @@ set REPO_PATH=%REPO_PATH:C:=/mnt/c%

echo Running commands in WSL...

REM Check if dos2unix is installed in WSL
wsl dos2unix --version >nul 2>&1
if %errorlevel% neq 0 (
echo Installing dos2unix...
REM Add installation command for dos2unix here
wsl sudo apt-get update
wsl sudo apt-get install dos2unix
echo dos2unix is required to build the rules. Do you want to check if dos2unix is installed and install if necessary?
set /p performCheck=Type 'y' for yes otherwise press ENTER:

if /i "%performCheck%"=="y" (
wsl dos2unix --version >nul 2>&1
if %errorlevel% neq 0 (
echo Installing dos2unix...
wsl sudo apt-get update
wsl sudo apt-get install dos2unix
)
) else (
echo Skipped dos2unix check and installation.
)


REM Create temporary copies of .sh scripts with Linux-style line endings using wsl cp (because Github checkout might automatically change them to Windows style which will stop the scripts from working)
wsl cp %REPO_PATH%/.ci/adoc-to-tex.sh %REPO_PATH%/.ci/adoc-to-tex-temp.sh
wsl cp %REPO_PATH%/.ci/tex-to-pdf.sh %REPO_PATH%/.ci/tex-to-pdf-temp.sh
Expand Down
2 changes: 1 addition & 1 deletion custom.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0" language="en">
<l:context name="xref-number-and-title">
<l:template name="section" text="Rule %n, %t"/>
<l:template name="section" text="Section %n, %t"/>
</l:context>
</l:l10n>
</l:i18n>
Expand Down
Binary file added media/OnStage/ExemplaryStage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/OnStage/StageLayout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c0bc17d

Please sign in to comment.