Este archivo README proporciona los pasos para ejecutar Jekyll y generar un archivo PDF utilizando wkhtmltopdf con opciones personalizadas.
-
Clonar el Repositorio: Clona el repositorio en tu máquina local utilizando el siguiente comando:
git clone <URL_DEL_REPOSITORIO>
-
Instalar Jekyll: Asegúrate de tener instalado Jekyll en tu sistema. Si no lo tienes, puedes instalarlo usando el siguiente comando:
gem install jekyll
- Generar el Sitio Jekyll: Dirígete al directorio del repositorio y ejecuta Jekyll para generar el sitio web:
jekyll build
- Ejecutar wkhtmltopdf: Una vez generado el sitio web, ejecuta el siguiente comando para generar el archivo PDF utilizando wkhtmltopdf:
wkhtmltopdf --enable-local-file-access --footer-center "[page]/[topage]" _site/index.html curr.pdf
- Script contenido:
Utiliza el siguiente comando para ejecutar el script
buildPdf.sh
que generará el archivo PDF utilizando wkhtmltopdf:
./buildPdf.sh