Skip to content

docs(README): Update product URL #22

docs(README): Update product URL

docs(README): Update product URL #22

Workflow file for this run

name: Build and Deploy Documentation
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies (Python + LaTeX)
run: |
sudo apt-get update
sudo apt-get install -y texlive-latex-extra texlive-fonts-recommended texlive-lang-english latexmk
pip install -r software/sphinx/requirements.txt
#################################################
# Generar Documentación Sphinx (HTML + PDF)
#################################################
- name: Build Sphinx Documentation
working-directory: software/sphinx
run: |
make clean
make pdfx
#################################################
# Preparar contenido para docs/
#################################################
- name: Prepare docs/ directory
env:
REPO_NAME: ${{ github.event.repository.name }}
run: |
rm -rf docs
mkdir -p docs
# PDF generado por Sphinx
pdf_file=$(ls software/sphinx/pdf/*.pdf 2>/dev/null | head -n1)
if [ -n "$pdf_file" ]; then
cp "$pdf_file" docs/${REPO_NAME}_sphinx.pdf
else
echo "No PDF found in software/sphinx/pdf/"
fi
# HTML generado por Sphinx
cp -r software/sphinx/docs/* docs/
# Permitir archivos especiales en GitHub Pages
touch docs/.nojekyll
#################################################
# Publicar cambios a la rama main
#################################################
- name: Commit and push docs/ to main
if: github.ref == 'refs/heads/main'
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git pull origin main
git add docs/
git commit -m "Deploy full documentation and product brief [skip ci]" || echo "No changes"
git push origin main