-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'PMP' of https://github.com/hydrologie/xhydro into PMP
- Loading branch information
Showing
11 changed files
with
151 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@echo off | ||
rem Batch script to clean docs artifacts and generate Sphinx HTML documentation | ||
|
||
rem Remove docs/notebooks/_data/ | ||
if exist docs\notebooks\_data\ ( | ||
rd /s /q docs\notebooks\_data\ | ||
) | ||
|
||
rem Remove docs/notebooks/.ipynb_checkpoints/ | ||
if exist docs\notebooks\.ipynb_checkpoints\ ( | ||
rd /s /q docs\notebooks\.ipynb_checkpoints\ | ||
) | ||
|
||
rem Remove specific rst files from docs/apidoc | ||
del /q docs\apidoc\xhydro*.rst | ||
del /q docs\apidoc\modules.rst | ||
|
||
rem Generate API documentation | ||
sphinx-apidoc -o docs\apidoc --private --module-first src\xhydro | ||
|
||
rem Generate Sphinx HTML documentation in English | ||
call docs\make.bat html "-D language=en" | ||
|
||
rem Generate Sphinx HTML documentation in French | ||
call docs\make.bat html "-D language=fr" | ||
|
||
if %ERRORLEVEL% neq 0 ( | ||
echo Error occurred during documentation generation. | ||
exit /b %ERRORLEVEL% | ||
) | ||
|
||
echo Documentation generation completed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@echo off | ||
rem Batch script to handle translation work | ||
|
||
rem Remove French locale .mo files | ||
del /q docs\locales\fr\LC_MESSAGES\*.mo | ||
|
||
rem Generate gettext files | ||
sphinx-build -b gettext docs docs\_build\gettext | ||
|
||
rem Run sphinx-intl update | ||
sphinx-intl update -p docs\_build\gettext -d docs\locales -l fr | ||
|
||
if %ERRORLEVEL% neq 0 ( | ||
echo Error occurred during translation update. | ||
exit /b %ERRORLEVEL% | ||
) | ||
|
||
echo Translation update completed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters