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
3 changes: 1 addition & 2 deletions .github/workflows/libro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with: { enable-cache: true, python-version: "3.12" }
- run: uv tool install "scriptorium @ git+https://github.com/apiad/scriptorium@v0.12.0"
- run: uv tool install "scriptorium @ git+https://github.com/gia-uh/scriptorium@v0.13.0"
- run: scriptorium render scriptorium.yaml --only sitio
- run: python3 arreglar-sitio.py sitio
- run: cp programacion.pdf sitio/
- uses: actions/upload-pages-artifact@v3
with: { path: conferences/2026/libro/sitio }
Expand Down
17 changes: 6 additions & 11 deletions conferences/2026/libro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@ No hay PDF por conferencia.

## Construir

Hace falta scriptorium 0.12.0 con el extra `pdf`:
Hace falta scriptorium 0.13.0 con el extra `pdf`:

```bash
uv tool install --force 'scriptorium[pdf] @ git+https://github.com/apiad/scriptorium@v0.12.0'
uv tool install --force 'scriptorium[pdf] @ git+https://github.com/gia-uh/scriptorium@v0.13.0'
cd conferences/2026/libro
scriptorium render scriptorium.yaml # programacion.pdf y sitio/
python3 arreglar-sitio.py sitio # dos arreglos al sitio, ver el script
```

Después:
Expand All @@ -59,12 +58,8 @@ Los tiempos que miden los capítulos dependen de la carga de la máquina. Si un
se vuelve a medir, hay que comprobar que la prosa siga diciendo lo que imprimen sus
bloques.

## Lo que se arregla aquí y no en scriptorium
## Lo que el libro ajusta del tema

- `libro.css` pone en español las etiquetas del tema `book`, y oculta los números de
página del índice, que scriptorium 0.12 escribe siempre como 0.
- `sitio.js` traduce las etiquetas del sitio, que scriptorium escribe en inglés.
- `arreglar-sitio.py` devuelve a su página las referencias internas de las fórmulas y
escribe "figura N" en las referencias a figuras del sitio.

Cuando scriptorium arregle cada una, se borra el arreglo correspondiente.
`libro.css` pone en español las etiquetas del tema `book` y hace que una referencia a
una figura diga "figura N" en el PDF; `html-refs:` en `scriptorium.yaml` hace lo mismo en
el sitio. El sitio toma su idioma de `lang: es`.
46 changes: 0 additions & 46 deletions conferences/2026/libro/arreglar-sitio.py

This file was deleted.

4 changes: 0 additions & 4 deletions conferences/2026/libro/libro.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@ a.ref-fig::after {
target-counter(attr(href url), figure);
}

/* scriptorium 0.12 escribe 0 como número de página de cada entrada del índice,
también en su propio ejemplo. Mientras se arregla, el índice va sin números;
las entradas siguen siendo enlaces dentro del PDF. */
.toc-entry::after { content: none; }
Binary file modified conferences/2026/libro/programacion.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion conferences/2026/libro/scriptorium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
theme: book
lang: es
css: libro.css
# Las referencias a figuras del sitio dicen "figura N" y no citan el pie entero.
html-refs:
fig: "figura {figure}"
base-url: https://matcom.github.io/programming/
execute:
timeout: 600
Expand Down Expand Up @@ -40,7 +43,6 @@ outputs:
format: docs
dir: sitio
repo-url: https://github.com/matcom/programming
js: [sitio.js]
libro:
format: pdf
file: programacion.pdf
21 changes: 0 additions & 21 deletions conferences/2026/libro/sitio.js

This file was deleted.

Loading