-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mvp-tema-i18n (#9): fn/Conatum; teste de uso
- Loading branch information
Showing
3 changed files
with
36 additions
and
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,21 @@ | ||
--- | ||
layout: defallo | ||
fallback_langs: ['lat', 'por', 'eng'] | ||
--- | ||
|
||
|
||
<br><br><br> | ||
|
||
|
||
{% include fn/Conatum prefix='varnamen' %} | ||
|
||
|
||
|
||
<div style="border-style: dotted; border-width: 2px; border-color: #ccc"> | ||
|
||
{% case page.linguam %} | ||
{% when 'por' %} | ||
<h2 style="text-align: center;">API interativa documentada em português</h2> | ||
{% when 'eng' %} | ||
<h2 style="text-align: center;">Interactive API documented in English</h2> | ||
{% endcase %} | ||
<h2 style="text-align: center;">{% include fn/Conatum prefix='Temp_hapi_api_titulo_h2' %}</h2> | ||
|
||
<div id="swagger-ui"></div> | ||
|
||
{% case page.linguam %} | ||
{% when 'por' %} | ||
<aside style="max-width: 800px; margin: 0 auto;"> | ||
<h3>Salvar como PDF</h3> | ||
<rapi-pdf style="width:700px; height:40px; font-size:18px;" spec-url="openapi.yaml" | ||
button-bg="#b44646"> | ||
</rapi-pdf> | ||
</aside> | ||
|
||
<aside class="alert alert-info" style="margin-top: 2em" role="alert"> | ||
<p> | ||
Nota: esta seção permite pré- visualizar de forma interativa arquivos OpenAPI | ||
e até mesmo executar requisições do seu navegador sem sair do site hapi.etica.ai | ||
(algumas API inclusive documentadas em mais de um idioma!). Algumas documentações, | ||
seja pela API original ou por usarmos descrição original do site, podem ser escritas | ||
em primeira pessoa que, <strong>obviamente</strong>, não se trata de voluntários | ||
em compilar as documentações. | ||
</p> | ||
<p> | ||
Exceção a esta regra são erros de tradução e/ou falhas em relação a atualizações mas APIs | ||
informadas aqui. Nesse caso nos avise! | ||
</p> | ||
</aside> | ||
{% when 'eng' %} | ||
<aside style="max-width: 800px; margin: 0 auto;"> | ||
<h3>Save as PDF</h3> | ||
<rapi-pdf style="width:700px; height:40px; font-size:18px;" spec-url="openapi.yaml" | ||
button-bg="#b44646"> | ||
</rapi-pdf> | ||
</aside> | ||
<aside class="alert alert-info" style="margin-top: 2em" role="alert"> | ||
<p> | ||
Note: this section allows you to interactively preview OpenAPI files | ||
and even execute requests from your browser without leaving the | ||
hapi.etica.ai website (some APIs even documented in more than one language!). | ||
Some documentation, either by the original API or by using the original | ||
description of the site, may be written in the first person, but obviously | ||
this is not the volunteers compiling the documentation. | ||
</p> | ||
|
||
<p> | ||
Exceptions to this rule are translation errors and / or failures | ||
in relation to updates but APIs reported here. | ||
In this case is our fault, not the API provider, | ||
so let us know! | ||
</p> | ||
</aside> | ||
{% endcase %} | ||
|
||
|
||
|
||
|
||
{% if page.linguam == 'por' %} | ||
|
||
{% endif %} | ||
|
||
{% if page.linguam == 'eng' %} | ||
|
||
{% endif %} | ||
<aside style="max-width: 800px; margin: 0 auto;"> | ||
<h3>{% include fn/Conatum prefix='Temp_hapi_api_salvar_como_pdf' %}</h3> | ||
<rapi-pdf style="width:700px; height:40px; font-size:18px;" spec-url="{{ openapi_filum }}" | ||
button-bg="#b44646"> | ||
</rapi-pdf> | ||
</aside> | ||
|
||
<aside class="alert alert-info" style="margin-top: 2em" role="alert"> | ||
{% include fn/Conatum prefix='Temp_hapi_api_aviso_de_isencao' %} | ||
</aside> | ||
</div> |