Skip to content

Commit 1d33351

Browse files
committed
remove termy
1 parent a33db06 commit 1d33351

25 files changed

Lines changed: 16 additions & 425 deletions

workshop/content/docs/advanced/cloud.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@ A [Docker image](https://hub.docker.com/r/geopython/pygeoapi) is available for p
1414

1515
=== "Linux/Mac"
1616

17-
<div class="termy">
1817
```bash
1918
docker run -p 5000:80 geopython/pygeoapi:latest
2019
```
21-
</div>
2220

2321
=== "Windows (PowerShell)"
2422

25-
<div class="termy">
2623
```bash
2724
docker run -p 5000:80 geopython/pygeoapi:latest
2825
```
29-
</div>
3026

3127
!!! question "Review the pygeoapi Dockerfile"
3228

@@ -38,22 +34,17 @@ In a typical configuration one would override the default pygeoapi configuration
3834

3935
=== "Linux/Mac"
4036

41-
<div class="termy">
4237
```bash
4338
docker run -p 5000:80 \
4439
-v $(pwd)/pygeoapi-config.yml:/pygeoapi/local.config.yml \
4540
-v $(pwd)/geodata:/geodata https://hub.docker.com/r/geopython/pygeoapi:latest
4641
```
47-
</div>
4842

4943
=== "Windows (PowerShell)"
5044

51-
<div class="termy">
5245
```bash
5346
docker run -p 5000:80 -v ${pwd}/pygeoapi-config.yml:/pygeoapi/local.config.yml -v ${pwd}/geodata:/geodata https://hub.docker.com/r/geopython/pygeoapi:latest
5447
```
55-
</div>
56-
5748

5849
Alternatively, you can build a fresh Docker image including both the configuration and data for the service.
5950

@@ -70,22 +61,18 @@ set the `SCRIPT_NAME` environment variable.
7061

7162
=== "Linux/Mac"
7263

73-
<div class="termy">
7464
```bash
7565
docker run -p 5000:80 -e SCRIPT_NAME='/mypygeoapi' \
7666
-v $(pwd)/my.config.yml:/pygeoapi/local.config.yml -it geopython/pygeoapi
7767
# browse to http://localhost:5000/mypygeoapi
7868
```
79-
</div>
8069

8170
=== "Windows (PowerShell)"
8271

83-
<div class="termy">
8472
```bash
8573
docker run -p 5000:80 -e SCRIPT_NAME='/mypygeoapi' -v ${pwd}/my.config.yml:/pygeoapi/local.config.yml -it geopython/pygeoapi
8674
# browse to http://localhost:5000/mypygeoapi
8775
```
88-
</div>
8976

9077
# Summary
9178

workshop/content/docs/advanced/cloud.pt.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@ Uma [imagem Docker](https://hub.docker.com/r/geopython/pygeoapi) está disponív
1414

1515
=== "Linux/Mac"
1616

17-
<div class="termy">
1817
```bash
1918
docker run -p 5000:80 geopython/pygeoapi:latest
2019
```
21-
</div>
2220

2321
=== "Windows (PowerShell)"
2422

25-
<div class="termy">
2623
```bash
2724
docker run -p 5000:80 geopython/pygeoapi:latest
2825
```
29-
</div>
3026

3127
!!! question "Rever o Dockerfile da pygeoapi"
3228

@@ -38,21 +34,17 @@ Numa configuração típica, substituir-se-ia o ficheiro de configuração padr
3834

3935
=== "Linux/Mac"
4036

41-
<div class="termy">
4237
```bash
4338
docker run -p 5000:80 \
4439
-v $(pwd)/pygeoapi-config.yml:/pygeoapi/local.config.yml \
4540
-v $(pwd)/geodata:/geodata https://hub.docker.com/r/geopython/pygeoapi:latest
4641
```
47-
</div>
4842

4943
=== "Windows (PowerShell)"
5044

51-
<div class="termy">
5245
```bash
5346
docker run -p 5000:80 -v ${pwd}/pygeoapi-config.yml:/pygeoapi/local.config.yml -v ${pwd}/geodata:/geodata https://hub.docker.com/r/geopython/pygeoapi:latest
5447
```
55-
</div>
5648

5749

5850
Alternativamente, pode construir uma nova imagem Docker incluindo tanto a configuração como os dados para o serviço.
@@ -70,23 +62,19 @@ definir a variável de ambiente `SCRIPT_NAME`.
7062

7163
=== "Linux/Mac"
7264

73-
<div class="termy">
7465
```bash
7566
docker run -p 5000:80 -e SCRIPT_NAME='/mypygeoapi' \
7667
-v $(pwd)/my.config.yml:/pygeoapi/local.config.yml -it geopython/pygeoapi
7768
# navegue para http://localhost:5000/mypygeoapi
7869
```
79-
</div>
8070

8171
=== "Windows (PowerShell)"
8272

83-
<div class="termy">
8473
```bash
8574
docker run -p 5000:80 -e SCRIPT_NAME='/mypygeoapi' -v ${pwd}/my.config.yml:/pygeoapi/local.config.yml -it geopython/pygeoapi
8675
# navegue para http://localhost:5000/mypygeoapi
8776
```
88-
</div>
8977

9078
# Resumo
9179

92-
Parabéns! Agora pode implementar a pygeoapi como um serviço cloud native.
80+
Parabéns! Agora pode implementar a pygeoapi como um serviço cloud native.

workshop/content/docs/advanced/i18n.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,37 +52,29 @@ Babel provides a utility which extracts all keys to be translated from the templ
5252

5353
=== "Linux/Mac"
5454

55-
<div class="termy">
5655
```bash
5756
pybabel extract -F babel-mapping.ini -o locale/messages.pot ./
5857
```
59-
</div>
6058

6159
=== "Windows (PowerShell)"
6260

63-
<div class="termy">
6461
```bash
6562
pybabel extract -F babel-mapping.ini -o locale/messages.pot ./
6663
```
67-
</div>
6864

6965
The resulting `.pot` file is used to create or update existing `.po` files, which exist for each language, containing the actual translations.
7066

7167
=== "Linux/Mac"
7268

73-
<div class="termy">
7469
```bash
7570
pybabel init -d locale -l it -i locale/messages.pot
7671
```
77-
</div>
7872

7973
=== "Windows (PowerShell)"
8074

81-
<div class="termy">
8275
```bash
8376
pybabel init -d locale -l it -i locale/messages.pot
8477
```
85-
</div>
8678

8779
The `.po` files are stored in pygeoapi's source code repository on GitHub. You can create a Pull Request to add or update your favourite languages. `.po` files can also be added to translation software such as [transifex.com](https://transifex.com).
8880

workshop/content/docs/advanced/i18n.pt.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,37 +52,29 @@ O Babel fornece um utilitário que extrai todas as chaves a serem traduzidas dos
5252

5353
=== "Linux/Mac"
5454

55-
<div class="termy">
5655
```bash
5756
pybabel extract -F babel-mapping.ini -o locale/messages.pot ./
5857
```
59-
</div>
6058

6159
=== "Windows (PowerShell)"
6260

63-
<div class="termy">
6461
```bash
6562
pybabel extract -F babel-mapping.ini -o locale/messages.pot ./
6663
```
67-
</div>
6864

6965
O ficheiro `.pot` resultante é usado para criar ou atualizar ficheiros `.po` existentes, que existem para cada língua, contendo as traduções atuais.
7066

7167
=== "Linux/Mac"
7268

73-
<div class="termy">
7469
```bash
7570
pybabel init -d locale -l it -i locale/messages.pot
7671
```
77-
</div>
7872

7973
=== "Windows (PowerShell)"
8074

81-
<div class="termy">
8275
```bash
8376
pybabel init -d locale -l it -i locale/messages.pot
8477
```
85-
</div>
8678

8779
Os ficheiros `.po` são armazenados no repositório de código fonte da pygeoapi no GitHub. Pode criar um Pull Request para adicionar ou atualizar as suas linguagens favoritas. Os ficheiros `.po` também podem ser adicionados a software de tradução como [transifex.com](https://transifex.com).
8880

@@ -111,4 +103,4 @@ A pygeoapi inclui um mecanismo para influenciar as respostas da API baseado na l
111103

112104
# Resumo
113105

114-
Parabéns! Personalizámos a pygeoapi para suportar múltiplas línguas.
106+
Parabéns! Personalizámos a pygeoapi para suportar múltiplas línguas.

workshop/content/docs/advanced/inspire.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,15 @@ recommendation and the relevant Good Practices.
5454

5555
=== "Linux/Mac"
5656

57-
<div class="termy">
5857
```bash
5958
python3 load_tinydb_records.py <path/to/xml-files> <output.db>
6059
```
61-
</div>
6260

6361
=== "Windows (PowerShell)"
6462

65-
<div class="termy">
6663
```bash
6764
python3 load_tinydb_records.py <path/to/xml-files> <output.db>
6865
```
69-
</div>
7066

7167
Now configure [TinyDB as a provider for OGC API - Records](https://docs.pygeoapi.io/en/latest/data-publishing/ogcapi-records.html#tinydbcatalogue). Restart the service and verify the result. Verify also the XML output of some of the records.
7268

workshop/content/docs/advanced/inspire.pt.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,15 @@ e as Boas Práticas relevantes.
5454

5555
=== "Linux/Mac"
5656

57-
<div class="termy">
5857
```bash
5958
python3 load_tinydb_records.py <path/to/xml-files> <output.db>
6059
```
61-
</div>
6260

6361
=== "Windows (PowerShell)"
6462

65-
<div class="termy">
6663
```bash
6764
python3 load_tinydb_records.py <path/to/xml-files> <output.db>
6865
```
69-
</div>
7066

7167
Agora configure [TinyDB como fornecedor para OGC API - Records](https://docs.pygeoapi.io/en/latest/data-publishing/ogcapi-records.html#tinydbcatalogue). Reinicie o serviço e verifique o resultado. Verifique também a saída XML de alguns dos registos.
7268

@@ -124,4 +120,4 @@ SoilTypes:
124120

125121
# Resumo
126122

127-
Parabéns! Trabalhou com a pygeoapi para conformidade INSPIRE
123+
Parabéns! Trabalhou com a pygeoapi para conformidade INSPIRE

workshop/content/docs/index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,16 @@ Exercises are indicated as follows:
4040
A section marked like this indicates that you can try out the exercise and choose your environment (Linux/Mac or Windows).
4141

4242
=== "Linux/Mac"
43-
<div class="termy">
43+
4444
```bash
4545
docker run -p 5000:80 -v $(pwd)/default.config.yml:/pygeoapi/local.config.yml geopython/pygeoapi:latest
4646
```
47-
</div>
47+
4848
=== "Windows"
49-
<div class="termy">
49+
5050
```bash
5151
docker run -p 5000:80 -v ${pwd}/default.config.yml:/pygeoapi/local.config.yml geopython/pygeoapi:latest
5252
```
53-
</div>
5453

5554
Also you will notice tips and notes sections within the text:
5655

@@ -79,11 +78,9 @@ my-collection:
7978

8079
Snippets which need to be typed in a on a terminal/console are indicated as:
8180

82-
<div class="termy">
8381
```bash
8482
echo 'Hello world'
8583
```
86-
</div>
8784

8885
# Workshop location and materials
8986

workshop/content/docs/index.pt.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,15 @@ Os exercícios são indicados da seguinte forma:
4040
Uma secção marcada desta forma indica que pode experimentar o exercício e escolher o seu ambiente (Linux/Mac ou Windows).
4141

4242
=== "Linux/Mac"
43-
<div class="termy">
4443
```bash
4544
docker run -p 5000:80 -v $(pwd)/default.config.yml:/pygeoapi/local.config.yml geopython/pygeoapi:latest
4645
```
47-
</div>
46+
4847
=== "Windows"
49-
<div class="termy">
48+
5049
```bash
5150
docker run -p 5000:80 -v ${pwd}/default.config.yml:/pygeoapi/local.config.yml geopython/pygeoapi:latest
5251
```
53-
</div>
5452

5553
Também irá notar secções de dicas e notas no texto:
5654

@@ -79,11 +77,9 @@ my-collection:
7977

8078
Fragmentos de código (snippets) que precisam de ser digitados num terminal/consola são indicados como:
8179

82-
<div class="termy">
8380
```bash
8481
echo 'Hello world'
8582
```
86-
</div>
8783

8884
# Localização e materiais da workshop
8985

workshop/content/docs/publishing/first.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,17 @@ To test:
2626

2727
=== "Linux/Mac"
2828

29-
<div class="termy">
3029
```bash
3130
cd workshop/exercises
3231
docker compose up
3332
```
34-
</div>
3533

3634
=== "Windows (PowerShell)"
3735

38-
<div class="termy">
3936
```bash
4037
cd workshop/exercises
4138
docker compose up
4239
```
43-
</div>
4440

4541
1. Open <http://localhost:5000> in your browser, verify some collections
4642
1. Close by typing `CTRL-C`
@@ -51,27 +47,23 @@ To test:
5147

5248
=== "Linux/Mac"
5349

54-
<div class="termy">
5550
```bash
5651
docker compose up -d
5752
docker ps # verify that the pygeoapi container is running
5853
# visit http://localhost:5000 in your browser, verify some collections
5954
docker logs --follow pygeoapi # view logs
6055
docker compose down --remove-orphans
6156
```
62-
</div>
6357

6458
=== "Windows (PowerShell)"
6559

66-
<div class="termy">
6760
```bash
6861
docker compose up -d
6962
docker ps # verify that the pygeoapi container is running
7063
# visit http://localhost:5000 in your browser, verify some collections
7164
docker logs --follow pygeoapi # view logs
7265
docker compose down --remove-orphans
7366
```
74-
</div>
7567

7668
## Publish first dataset
7769

@@ -165,19 +157,15 @@ Set the logging level to `DEBUG` and indicate a path to a log file.
165157

166158
=== "Linux/Mac"
167159

168-
<div class="termy">
169160
```bash
170161
docker logs --follow pygeoapi
171162
```
172-
</div>
173163

174164
=== "Windows (PowerShell)"
175165

176-
<div class="termy">
177166
```bash
178167
docker logs --follow pygeoapi
179168
```
180-
</div>
181169

182170
!!! tip
183171

0 commit comments

Comments
 (0)