Skip to content

Commit

Permalink
Testing git nix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Dec 16, 2023
1 parent 12ce156 commit 633ca08
Show file tree
Hide file tree
Showing 394 changed files with 18 additions and 207,936 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ jobs:
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-shell --run "scripts/pre_translate.sh"
- run: nix-shell --run "scripts/post_translate.sh"
- run: nix-shell --run "scripts/english_build.sh"
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,13 @@ We are now going to use that inasafe-doc directory as source and output director
```
scripts/pre_translate.sh
scripts/post_translate.sh
scripts/english_build.sh
```

You can also build the docs for a single language:

```
scripts/post_translate.sh en html
scripts/post_translate.sh id html
```

## Viewing the docs
Expand Down
6 changes: 4 additions & 2 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

rm -rf build i18n output source/api-docs source/user-docs/impact_functions_doc.rst
rm -rf .venv
rm -rf .direnv
rm -rf docs/build docs/i18n docs/output source/api-docs source/user-docs/impact_functions_doc.rst
touch default.nix
11 changes: 6 additions & 5 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ in pkgs.mkShell rec {
buildInputs = [
# A Python interpreter including the 'venv' module is required to bootstrap
# the environment.
pythonPackages.python
# This executes some shell code to initialize a venv in $venvDir before
# dropping into the shell
pythonPackages.venvShellHook
# By preference, install packages from nixpkgs first,
# falling back to requirements.txt if that is not possible
pythonPackages.python
pythonPackages.six
pythonPackages.jinja2
pythonPackages.markupsafe
Expand All @@ -31,9 +34,6 @@ in pkgs.mkShell rec {
# Simple http server to test the built docs
pinnedPkgs.httplz

# This executes some shell code to initialize a venv in $venvDir before
# dropping into the shell
pythonPackages.venvShellHook
];

# Run this command, only after creating the virtual environment
Expand All @@ -42,8 +42,9 @@ in pkgs.mkShell rec {
pip install -r requirements.txt
'';

# Note!! Adding content to shellHook below will prevent requirements.txt
# being installed.
shellHook = ''
export LC_ALL=C
'';
# Now we can execute any commands within the virtual environment.
# This is optional and can be left out to run pip manually.
Expand Down
23 changes: 0 additions & 23 deletions docs/i18n/en/LC_MESSAGES/contents.po

This file was deleted.

23 changes: 0 additions & 23 deletions docs/i18n/en/LC_MESSAGES/index.po

This file was deleted.

24 changes: 0 additions & 24 deletions docs/i18n/en/LC_MESSAGES/sphinx.po

This file was deleted.

Loading

0 comments on commit 633ca08

Please sign in to comment.