diff --git a/.github/workflows/generate_pdf.yaml b/.github/workflows/generate_pdf.yaml new file mode 100644 index 0000000..950ba03 --- /dev/null +++ b/.github/workflows/generate_pdf.yaml @@ -0,0 +1,29 @@ +name: Build and Deploy PDF + +on: + push: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install dependencies + run: npm install + + - name: Build PDF + run: npm run build + + - name: Upload PDF as artifact + uses: actions/upload-artifact@v4 + with: + name: pdf-artifact + path: .vivliostyle/output.pdf \ No newline at end of file diff --git a/css/style.css b/css/style.css index fa21d5c..c39da1f 100644 --- a/css/style.css +++ b/css/style.css @@ -38,7 +38,7 @@ html { } } @page : nth(2) { - background-image: url("./img/chapter_page_right.png"); + background-image: url("/img/chapter_page_right.png"); background-size: contain; background-repeat: repeat-x; background-position: right; diff --git a/readme.md b/readme.md index 97ee798..4d270fa 100644 --- a/readme.md +++ b/readme.md @@ -3,6 +3,5 @@ ## 使用しているもの * Vivliostyle -* ress * npm-run-all