Skip to content

Commit 53f34d8

Browse files
author
GitHub Actions
committed
ci: Remove product brief generation from documentation workflow
Workflow Cleanup: - Removed LaTeX-based product brief PDF generation step - Removed Ghostscript dependency and PDF merging process - Removed hardware image copying step for documentation - Simplified dependencies installation (removed Ghostscript and documentation requirements) - Removed product brief PDF from docs/ deployment - Streamlined workflow to focus only on Sphinx documentation This change simplifies the CI/CD pipeline by removing the product brief generation process and focusing exclusively on Sphinx-generated documentation (HTML + PDF). Benefits: - Faster build times - Reduced dependencies - Simpler workflow maintenance - Focus on primary Sphinx documentation
1 parent 9b80bd5 commit 53f34d8

File tree

1 file changed

+2
-35
lines changed

1 file changed

+2
-35
lines changed

.github/workflows/build_docs.yml

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,45 +23,15 @@ jobs:
2323
with:
2424
python-version: '3.10'
2525

26-
- name: Install dependencies (Python + LaTeX + Ghostscript)
26+
- name: Install dependencies (Python + LaTeX)
2727
run: |
2828
sudo apt-get update
29-
sudo apt-get install -y texlive-latex-extra texlive-fonts-recommended texlive-lang-english ghostscript latexmk
30-
pip install -r software/documentation/requirements.txt
29+
sudo apt-get install -y texlive-latex-extra texlive-fonts-recommended texlive-lang-english latexmk
3130
pip install -r software/sphinx/requirements.txt
3231
33-
34-
- name: Copy and rename hardware images for documentation
35-
run: |
36-
mkdir -p software/documentation/images
37-
38-
# Buscar y copiar dimension
39-
file=$(ls hardware/resources/unit_dimension_*.png 2>/dev/null | head -n1)
40-
if [ -n "$file" ]; then cp "$file" software/documentation/images/dimension.png; else echo "dimension not found"; fi
41-
42-
# Buscar y copiar pinout
43-
file=$(ls hardware/resources/unit_pinout_*.png 2>/dev/null | head -n1)
44-
if [ -n "$file" ]; then cp "$file" software/documentation/images/pinout.png; else echo "pinout not found"; fi
4532
46-
# Buscar y copiar top
47-
file=$(ls hardware/resources/unit_top_*.png 2>/dev/null | head -n1)
48-
if [ -n "$file" ]; then cp "$file" software/documentation/images/top.png; else echo "top not found"; fi
4933
5034
51-
#################################################
52-
# Generar PDF del Product Brief con nombre del repo
53-
#################################################
54-
- name: Build LaTeX PDF from README
55-
working-directory: software/documentation
56-
env:
57-
REPO_NAME: ${{ github.event.repository.name }}
58-
run: |
59-
python test_readme.py
60-
python generate_pdf.py
61-
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer \
62-
-dNOPAUSE -dQUIET -dBATCH \
63-
-sOutputFile=build/${REPO_NAME}_product_brief.pdf build/*.pdf
64-
6535
#################################################
6636
# Generar Documentación Sphinx (HTML + PDF)
6737
#################################################
@@ -81,9 +51,6 @@ jobs:
8151
rm -rf docs
8252
mkdir -p docs
8353
84-
# PDF generado desde LaTeX
85-
cp software/documentation/build/${REPO_NAME}_product_brief.pdf docs/
86-
8754
# PDF generado por Sphinx
8855
pdf_file=$(ls software/sphinx/pdf/*.pdf 2>/dev/null | head -n1)
8956
if [ -n "$pdf_file" ]; then

0 commit comments

Comments
 (0)