Skip to content

Commit

Permalink
HXL-CPLP/forum#58, hapi-t9n-alpha (#13), mvp-l10n-schemas (#7): melho…
Browse files Browse the repository at this point in the history
…rada aparencia da pagina de desambiguação
  • Loading branch information
fititnt committed Jun 9, 2021
1 parent 095cc2b commit 9604f27
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 15 deletions.
13 changes: 7 additions & 6 deletions _data/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
typum: api
gid: UN
lid: HDX # _[por] xdefallo_est: 1, logo lid é forçado manualmente [por]_
title: "Index: {% _🗣️ 📝eng-Latn📝 Hapi_api_UN_HDX_titulum 📝eng-Latn📝 🗣️_ %}"
title: "Alternātīvum pāginam: {% _🗣️ 📝eng-Latn📝 Hapi_api_UN_HDX_titulum 📝eng-Latn📝 🗣️_ %}"
# title: "Index: {% _🗣️ 📝eng-Latn📝 Hapi_api_UN_HDX_titulum 📝eng-Latn📝 🗣️_ %}"
noindex: true
# HAPI_api_UN_HDX

Expand Down Expand Up @@ -86,7 +87,7 @@
typum: api
gid: UN
lid: reliefweb # _[por] xdefallo_est: 1, logo lid é forçado manualmente [por]_
title: "Index: {% _🗣️ 📝eng-Latn📝 Hapi_api_UN_reliefweb_titulum 📝eng-Latn📝 🗣️_ %}"
title: "Alternātīvum pāginam: {% _🗣️ 📝eng-Latn📝 Hapi_api_UN_reliefweb_titulum 📝eng-Latn📝 🗣️_ %}"
noindex: true

- xdefallo: /mul-Zyyy/api/UN/reliefweb/
Expand Down Expand Up @@ -116,7 +117,7 @@
typum: api
gid: UN
lid: CODV2API # _[por] xdefallo_est: 1, logo lid é forçado manualmente [por]_
title: "Index: {% _🗣️ 📝eng-Latn📝 Hapi_api_UN_CODV2API_titulum 📝eng-Latn📝 🗣️_ %}"
title: "Alternātīvum pāginam: {% _🗣️ 📝eng-Latn📝 Hapi_api_UN_CODV2API_titulum 📝eng-Latn📝 🗣️_ %}"
noindex: true

- xdefallo: /mul-Zyyy/api/UN/CODV2API/
Expand Down Expand Up @@ -150,7 +151,7 @@
typum: api
gid: XZ
lid: HXL-Proxy # _[por] xdefallo_est: 1, logo lid é forçado manualmente [por]_
title: "Index: {% _🗣️ 📝eng-Latn📝 Hapi_api_XZ_HXL-Proxy_titulum 📝eng-Latn📝 🗣️_ %}"
title: "Alternātīvum pāginam: {% _🗣️ 📝eng-Latn📝 Hapi_api_XZ_HXL-Proxy_titulum 📝eng-Latn📝 🗣️_ %}"
noindex: true

- xdefallo: /mul-Zyyy/api/XZ/HXL-Proxy/
Expand Down Expand Up @@ -182,7 +183,7 @@
typum: api
gid: BR
lid: portais-ckan-brasil # _[por] xdefallo_est: 1, logo lid é forçado manualmente [por]_
title: "Index: {% _🗣️ 📝eng-Latn📝 Hapi_api_BR_portais-ckan-brasil_titulum 📝eng-Latn📝 🗣️_ %}"
title: "Alternātīvum pāginam: {% _🗣️ 📝eng-Latn📝 Hapi_api_BR_portais-ckan-brasil_titulum 📝eng-Latn📝 🗣️_ %}"
noindex: true

- xdefallo: /mul-Zyyy/api/BR/portais-ckan-brasil/
Expand Down Expand Up @@ -216,7 +217,7 @@
typum: api
gid: BR
lid: portais-arcgis-brasil # _[por] xdefallo_est: 1, logo lid é forçado manualmente [por]_
title: "Index: {% _🗣️ 📝por-Latn📝 Hapi_api_BR_portais-arcgis-brasil_titulum 📝por-Latn📝 🗣️_ %}"
title: "Alternātīvum pāginam: {% _🗣️ 📝por-Latn📝 Hapi_api_BR_portais-arcgis-brasil_titulum 📝por-Latn📝 🗣️_ %}"
noindex: true

- xdefallo: /mul-Zyyy/api/BR/portais-arcgis-brasil/
Expand Down
1 change: 1 addition & 0 deletions _data/tm/hapi-miniman.tm.hxl.csv
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ Hapi_ad_agendum_MMXXI_titulum,,1,,Hapi,,,,ad_agendum_MMXXI,,titulum,,,∅,Hapi:
Hapi_paginam_API_I_titulum,,1,,Hapi,paginam,API,,,I,titulum,,Documenta API (latine scripsit),∅,Interactive API documented in English,∅,API interativa documentada em português,∅,,∅
Hapi_quaerere_nomen,,1,,Hapi,,,,quaerere,,nomen,,Hapiam quaerere,∅,Pesquisar na Hapi,∅,Search on Hapi,∅,,∅
Hapi_licentiam_Hapi_descriptionem,,1,,Hapi,,,,licentiam,Hapi,descriptionem,,Licentiam: [Dominium publicum](https://unlicense.org/).,∅,"Na medida do possível sob a lei, as pessoas autoras de [HXL-CPLP](https://github.com/HXL-CPLP) e demais colaboradores voluntários renunciam todos os direitos autorais e direitos conexos ou vizinhos a este trabalho para o [domínio público](https://unlicense.org/).<!--TODO: o texto em português da licença é um rascunho. Ainda precisa ser revisado -->",∅,"The [HXL-CPLP](https://github.com/HXL-CPLP) and outside volunteers dedicated this work to the [public domain](https://unlicense.org/) by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.<!--TODO: This license terms are a draft; Need to be reviewned -->",∅,,∅
Hapi_paginam_discretiva_linguam_summarius,,1,,Hapi,,,,paginam_discretiva_linguam,,summarius,,Haec est pagina [discretiva](https://la.wikipedia.org/wiki/Vicipaedia:Discretiva) (multiple linguam),∅,Está é uma página de [desambiguação](https://pt.wikipedia.org/wiki/Wikip%C3%A9dia:Desambigua%C3%A7%C3%A3o) (de idiomas do mesmo recurso),∅,This is a [disambiguation](https://en.wikipedia.org/wiki/Wikipedia:Disambiguation) page (language of resource),∅,,
2 changes: 2 additions & 0 deletions _includes/pedem-mul-Zyyy.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<hr>

<footer>
<!-- <div class="container"> -->
<div class="d-flex justify-content-center py-3">
Expand Down
38 changes: 36 additions & 2 deletions _layouts/xapi.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,39 @@
---
layout: defallo
layout: defallo-mul-Zyyy
---

(xapi draft)
<hr>

{% for api_alt in page.alternativum %}
{% if api_alt.url == page.url %}
{% continue %}
{% endif %}
<article>
<h2>
<a href="{{ api_alt.url }}">
{{ api_alt.title }}
</a>
</h2>
<dl>
<dt><mark la="la">Linguam</mark></dt>
<dd>{{ api_alt.linguam }}</dt>
<dt><mark la="la">Dēscrīptiōnem</mark></dt>
<dd>{{ api_alt.summarius }}</dt>
<dt>{% _🗣️ abbreviationem_XZ_URL_canonicum_nomen 🗣️_ %}</dt>
<dd><a href="{{ api_alt.url }}">{{ api_alt.url }}</a></dt>
{% if api_alt.openapi_filum %}
<dt>{% _🗣️ OpenAPI_archivum_nomen 🗣️_ %}</dt>
<dd><a href="{{ api_alt.openapi_filum }}">{{ api_alt.openapi_filum }}</a></dt>
{% endif %}
</dl>
</article>
{% endfor %}

<hr>
<div class="alert alert-info" role="alert">
<ul>
<li>{% de_markdown %}{% _🗣️ 📝lat-Latn📝 Hapi_paginam_discretiva_linguam_summarius 📝lat-Latn📝 🗣️_ %}{% endde_markdown %}</li>
<li>{% de_markdown %}{% _🗣️ 📝por-Latn📝 Hapi_paginam_discretiva_linguam_summarius 📝por-Latn📝 🗣️_ %}{% endde_markdown %}</li>
<li>{% de_markdown %}{% _🗣️ 📝eng-Latn📝 Hapi_paginam_discretiva_linguam_summarius 📝eng-Latn📝 🗣️_ %}{% endde_markdown %}</li>
</ul>
</div>
4 changes: 4 additions & 0 deletions _plugins/hapi/utilitatem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ def expandendum_api_datum_jekyll_page(api, referens)
'trivium' => digitum_premendum(api['xdefallo'])
}

# TODO: _[por] Remover referencias a description em inglês [por]_
api['jekyll-page']['descriptionem'] = api['jekyll-page']['description']
api['jekyll-page']['summarius'] = api['summarius'] || api['jekyll-page']['description']

# puts api['jekyll-page']

api
Expand Down
14 changes: 12 additions & 2 deletions _plugins/jekyll_hapi_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class ApiPaginam < Jekyll::Page
uid
titulum
namen
summarius
xdefallo
xdefallo_est
content
Expand Down Expand Up @@ -170,13 +171,22 @@ def keys
ATTRIBUTES_FOR_LIQUID
end

def openapi_filum
# @datum['jekyll-page']['openapi_filum2'] || '<mark lang="la">Nulla openapi filum. Adiuva me 🥺</mark>'
@datum['jekyll-page']['openapi_filum2']
end

# TODO: remove obsolete parts
def summarius
@summarius || @datum['jekyll-page']['summarius'] || '<mark lang="la">Nulla summarius. Adiuva me 🥺</mark>'
end
# TODO: remove obsolete parts
def titulum
@titulum|| @namen || @title
@titulum || @namen || @title
end

def namen
@titulum|| @namen || @title
@titulum || @namen || @title
end

# Trivia
Expand Down
10 changes: 5 additions & 5 deletions documentum/mul-Zyyy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ <h2 id="api">API</h2>
<h3 id="api-{{ globum.gid | slugify }}">
{{ globum.namen }}
</h3>
{{ globum.descriptionem | default: '<mark>_[lat] Ignotum textum. Adiuva me 🥺[lat]_</small> '}}
{{ globum.descriptionem | default: '<mark>_[lat] Ignotum textum. Adiuva me 🥺[lat]_</mark> '}}
</header>

{% for xapi in globum.collectionem_xapi %}
<article style="padding: 1em">
<h4 id="{{ xapi.url | slugify }}">
<a href="#{{ xapi.url | slugify }}">🔗</a>
{{ xapi.lid | default: xapi['datum']['lid'] }}
</h4>
<h4 id="{{ xapi.url | slugify }}">
<a href="#{{ xapi.url | slugify }}">🔗</a>
{{ xapi.lid | default: xapi['datum']['lid'] }}
</h4>
<div class="row row-cols-1 row-cols-md-2 g-4">
{% for api_alt in xapi.alternativum %}
<div class="col">
Expand Down

0 comments on commit 9604f27

Please sign in to comment.