Skip to content

Commit 555d548

Browse files
committed
Workflow para generar el HTML
1 parent ee74b0c commit 555d548

File tree

331 files changed

+51
-86629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

331 files changed

+51
-86629
lines changed

.github/workflows/docs.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Construir y desplegar el manual
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Obtención de la documentación
12+
uses: actions/checkout@v4
13+
14+
- name: Configurar Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.12'
18+
19+
- name: Instalación de dependencias.
20+
run: |
21+
pip install -r requirements.txt
22+
23+
- name: Construir documentación
24+
run: |
25+
make html
26+
touch docs/html/.nojekyll
27+
28+
- name: Desplegarla en GitHub Page
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./docs/html
33+
34+
- name: Notificación
35+
if: success()
36+
uses: actions/github-script@v6
37+
with:
38+
script: |
39+
github.rest.repos.createCommitComment({
40+
owner: context.repo.owner,
41+
repo: context.repo.repo,
42+
commit_sha: "${{ github.sha }}",
43+
body: "¡Doc actualizada: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/"
44+
})

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
TODO
2-
build
32
**.swp
43
**.bak
54
**.mypy_cache
5+
docs

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = source
9-
BUILDDIR = build
9+
BUILDDIR = docs
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:

docs/.buildinfo

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs/.nojekyll

Whitespace-only changes.

docs/01.intro/01.intro.html

Lines changed: 0 additions & 555 deletions
This file was deleted.

docs/01.intro/02.sintaxis.html

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)