Skip to content

Commit

Permalink
mvp-tema-i18n (#9), menu-toc (#10): mais testes com indice de conteudo
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed May 16, 2021
1 parent 88c22e5 commit 83370fa
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 165 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ _site/
vendor/

## TODO: talvez remover esse ignore
# Gemfile.lock
Gemfile.lock

### Specific from Hapi
_systema/node_modules/
Expand Down
99 changes: 0 additions & 99 deletions Gemfile.lock

This file was deleted.

5 changes: 4 additions & 1 deletion _data/Temporarium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@ Temp_hapi_api_aviso_de_isencao_eng: |
Temp_hapi_api_salvar_como_pdf_lat: "?!(Temp_hapi_api_salvar_como_pdf_lat)!?"
Temp_hapi_api_salvar_como_pdf_por: "Salvar como PDF"
Temp_hapi_api_salvar_como_pdf_eng: "Save as PDF"
Temp_hapi_api_salvar_como_pdf_eng: "Save as PDF"
Temp_TOC_lat: "Índice de Conteúdo"
Temp_TOC_por: "Índice de Conteúdo"
Temp_TOC_eng: "Table of contents"
12 changes: 1 addition & 11 deletions _layouts/defallo.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,7 @@

<main class="page-content" aria-label="Content">
<div class="container">
<div>
<div id="table-of-contents">
{{ content | toc_only }}
</div>
<div id="markdown-content">
{{ content }}
</div>
</div>
</div>
<div class="container">
<p>Plugin test: {{ page.content | reading_time }}</p>
{{ content }}
</div>
</main>

Expand Down
10 changes: 8 additions & 2 deletions _layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
---

<div>
<h1>{{ page.title }}</h1>
<header>
<h1>{{ page.title }}</h1>
<p>{{ page.description | markdownify }}</p>
</header>
<hr>
<nav id="table-of-contents">
{:toc}
<h2 style="font-size: 1.2em;">{% include fn/Conatum prefix='Temp_TOC' %}</h2>
{{ content | toc_only }}
</nav>
<hr>
<div id="markdown-content">
{{ content }}
</div>
Expand Down
51 changes: 6 additions & 45 deletions documentum/eng/index.md
Original file line number Diff line number Diff line change
@@ -1,55 +1,16 @@
---
title: "Augmented documentation for Humanitarian APIs"
description: "[working-draft] Argumented documentation of common APIs for humanitarian aid with OpenAPI"
description: |
Argumented documentation of common APIs for humanitarian aid with
[OpenAPI](https://www.openapis.org/), the _de facto_ open industry standard
to document REST APIs.
locale: en
linguam: eng
permalink: /eng/
categories: [index]
tags: [index]
# toc: true
---

# Augmented documentation for Humanitarian APIs
**[working-draft] Argumented documentation of common APIs for
humanitarian aid with [OpenAPI](https://www.openapis.org/), the _de facto_
open industry standard to document REST APIs.**

> - **[Documentação na língua portuguesa aqui](/por/)**
---

**Table of contents**

<!-- TOC depthFrom:2 -->

- [API](#api)
- [UN](#un)
- [ReliefWeb](#reliefweb)
- [ReliefWeb-eng](#reliefweb-eng)
- [HDX - The Humanitarian Data Exchange](#hdx---the-humanitarian-data-exchange)
- [HDX-eng](#hdx-eng)
- [CODV2API <sup>(beta)</sup>](#codv2api-supbetasup)
- [CODV2API-eng](#codv2api-eng)
- [XZ](#xz)
- [HXL-Proxy - Humanitarian Exchange Language Proxy](#hxl-proxy---humanitarian-exchange-language-proxy)
- [HXL-Proxy](#hxl-proxy)
- [BR](#br)
- [Brazilian Open Data portals](#brazilian-open-data-portals)
- [portais-ckan-brasil-por](#portais-ckan-brasil-por)
- [portais-arcgis-brasil-por](#portais-arcgis-brasil-por)
- [brazilian-ckan-portals-eng](#brazilian-ckan-portals-eng)
- [Schema](#schema)
- [ISO 639-3](#iso-639-3)
- [In English](#in-english)
- [ISO 15924](#iso-15924)
- [In English](#in-english-1)
- [Systema](#systema)
- [OpenAPI](#openapi)
- [Online editors](#online-editors)
- [License](#license)

<!-- /TOC -->

layout: index
toc: true
---

## API
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions documentum/lat/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<!--
- https://en.wikiquote.org/wiki/Latin_proverbs
- Aegroto dum anima est, spes est
-->
9 changes: 3 additions & 6 deletions documentum/por/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,11 @@ locale: pt
linguam: por
permalink: /por/
categories: [ index ]
layout: defallo
# layout: index
# toc: true
# layout: defallo
layout: index
toc: true
---

# {{ page.title }}
{{ page.description }}

> - **[Documentation in English here](/eng/)**
## API
Expand Down

0 comments on commit 83370fa

Please sign in to comment.