Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.env
.env.local
.netlify
.hugo_build.lock
node_modules
public
resources
node_modules/
public/
resources/
.DS_Store
.cache/
40 changes: 30 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A **FACODI** é uma plataforma de aprendizagem aberta que replica planos curricu
- 🎓 Unidades curriculares com ementa, resultados de aprendizagem e tópicos
- 🎥 Playlists abertas do YouTube organizadas por prioridade
- 📝 Conteúdo em Markdown sincronizado automaticamente com o Supabase
- 🌐 Multilíngue (PT como padrão, EN preparado como fallback)
- 🌐 Multilíngue (PT, EN, ES, FR)

---

Expand All @@ -33,15 +33,27 @@ facodi.pt/
├─ config/
│ └─ _default/
├─ content/
│ ├─ _index.md
│ └─ courses/
│ └─ LESTI/
│ └─ 2024-2025/
│ ├─ index.md # Curso
│ └─ uc/
│ └─ LESTI-ALG1/
│ ├─ index.md # Unidade curricular
│ └─ estruturas-de-dados.md # Tópico
│ ├─ pt/
│ │ ├─ _index.md
│ │ └─ courses/
│ │ └─ LESTI/
│ │ └─ 2024-2025/
│ │ ├─ index.md # Curso (PT)
│ │ └─ uc/
│ │ └─ LESTI-ALG1/
│ │ ├─ index.md # Unidade curricular (PT)
│ │ └─ estruturas-de-dados.md # Tópico (PT)
│ ├─ en/
│ │ └─ _index.md
│ ├─ es/
│ │ └─ _index.md
│ └─ fr/
│ └─ _index.md
├─ i18n/
│ ├─ pt.yaml
│ ├─ en.yaml
│ ├─ es.yaml
│ └─ fr.yaml
├─ layouts/
│ ├─ _default/baseof.html
│ ├─ course/single.html
Expand All @@ -63,6 +75,14 @@ facodi.pt/

---

## 🧭 Separação de responsabilidades

- **Hugo (este repositório)**: guarda todo o conteúdo editorial, configurações multilíngues, layouts e scripts que sincronizam Markdown → Supabase. As chaves do Supabase são lidas via variáveis de ambiente (Netlify/GitHub Actions) e nunca ficam em arquivos versionados.
- **Portal Next.js (futuro)**: consumirá o conteúdo publicado no Supabase para experiências dinâmicas. Quando o portal estiver ativo, chamadas ao Supabase serão feitas no front-end do portal, enquanto o site Hugo permanece estático.
- **Supabase**: continua a ser a origem de dados sincronizada pelos scripts `lint:content`/`sync:content`, preservando o esquema existente (`catalog`, `subjects`, `mapping`).

---

## 🛠️ Scripts disponíveis

| Script | Descrição |
Expand Down
2 changes: 1 addition & 1 deletion config/_default/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rssLimit = 10
summarylength = 40

defaultContentLanguage = "pt"
defaultContentLanguageInSubdir = false
defaultContentLanguageInSubdir = true

copyRight = "FACODI — Conteúdo aberto para aprendizagem comunitária"

Expand Down
22 changes: 20 additions & 2 deletions config/_default/languages.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[pt]
languageName = "Português"
contentDir = "content"
contentDir = "content/pt"
weight = 1
[pt.params]
languageISO = "PT"
Expand All @@ -14,4 +14,22 @@
[en.params]
languageISO = "EN"
languageTag = "en-US"
footer = 'Built by the FACODI community. English content coming soon.'
footer = 'Built by the FACODI community. English content is being translated progressively.'

[es]
languageName = "Español"
contentDir = "content/es"
weight = 3
[es.params]
languageISO = "ES"
languageTag = "es-ES"
footer = 'Construido por la comunidad FACODI. Traducciones en curso.'

[fr]
languageName = "Français"
contentDir = "content/fr"
weight = 4
[fr.params]
languageISO = "FR"
languageTag = "fr-FR"
footer = 'Construit par la communauté FACODI. Traductions en cours.'
9 changes: 9 additions & 0 deletions config/_default/menus/menus.es.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[main]]
name = "Cursos"
url = "/"
weight = 10

[[footer]]
name = "Comunidad"
url = "https://github.com/Monynha-Softwares/facodi.pt"
weight = 10
9 changes: 9 additions & 0 deletions config/_default/menus/menus.fr.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[[main]]
name = "Cours"
url = "/"
weight = 10

[[footer]]
name = "Communauté"
url = "https://github.com/Monynha-Softwares/facodi.pt"
weight = 10
4 changes: 0 additions & 4 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@ mainSections = ["courses"]

krokiURL = "https://kroki.io"

[supabase]
url = ""
anon_key = ""

[seo]
[seo.title]
separator = " | "
Expand Down
2 changes: 1 addition & 1 deletion content/en/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "FACODI Catalog"
layout: home
draft: true
---

FACODI content is primarily authored in Portuguese. English translations will be published as they become available.
In the meantime, you can explore the Portuguese catalog while we expand our multilingual offering.
7 changes: 7 additions & 0 deletions content/es/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Catálogo FACODI"
layout: home
---

El catálogo original de FACODI se publica en portugués y las traducciones se añaden de forma progresiva.
Mientras trabajamos en la localización completa, puedes navegar por la versión portuguesa para descubrir los cursos y unidades curriculares disponibles.
7 changes: 7 additions & 0 deletions content/fr/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: "Catalogue FACODI"
layout: home
---

Le catalogue principal de FACODI est publié en portugais et les traductions sont ajoutées progressivement.
En attendant la localisation complète, consultez la version portugaise pour explorer les cours et les unités curriculaires disponibles.
File renamed without changes.
16 changes: 4 additions & 12 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"line",
"link",
"meta",
"nav",
"noscript",
"p",
"path",
Expand Down Expand Up @@ -58,27 +57,28 @@
"container",
"container-lg",
"content",
"courses",
"current",
"d-flex",
"d-inline-flex",
"d-lg-none",
"display-5",
"display-6",
"doks-sidebar",
"dropdown",
"dropdown-caret",
"dropdown-divider",
"dropdown-item",
"dropdown-menu",
"dropdown-menu-lg-end",
"dropdown-toggle",
"en",
"error404",
"es",
"fixed-bottom-right",
"flex-column",
"flex-grow-1",
"flex-lg-row",
"footer",
"fr",
"fw-semibold",
"g-3",
"g-4",
Expand All @@ -92,15 +92,13 @@
"icon-tabler",
"icon-tabler-chevron-down",
"icon-tabler-chevron-up",
"icon-tabler-dots-vertical",
"icon-tabler-language",
"icon-tabler-menu",
"icon-tabler-moon",
"icon-tabler-sun",
"icon-tabler-x",
"justify-content-between",
"justify-content-center",
"lead",
"list",
"list-inline",
"list-inline-item",
Expand All @@ -117,8 +115,6 @@
"ms-auto",
"ms-lg-2",
"mt-1",
"mt-3",
"mt-n3",
"mx-2",
"mx-auto",
"my-3",
Expand All @@ -132,7 +128,6 @@
"offcanvas-body",
"offcanvas-end",
"offcanvas-header",
"offcanvas-start",
"offcanvas-title",
"order-3",
"order-lg-2",
Expand All @@ -141,6 +136,7 @@
"p-4",
"pb-4",
"pe-4",
"pt",
"py-5",
"rounded",
"rounded-3",
Expand All @@ -160,21 +156,17 @@
"text-lg-end",
"text-lg-start",
"text-muted",
"text-start",
"text-uppercase",
"visually-hidden",
"wrap"
],
"ids": [
"buttonColorMode",
"course-content-md",
"doks-docs-nav",
"doks-language-current",
"doks-languages",
"offcanvasNavMain",
"offcanvasNavMainLabel",
"offcanvasNavSection",
"offcanvasNavSectionLabel",
"toTop",
"visão-geral"
]
Expand Down
Loading