Giter Club home page Giter Club logo

Comments (7)

karniv00l avatar karniv00l commented on September 2, 2024 1

@mi-hol I've updated description, hopefully is more clear now

from wiki.

karniv00l avatar karniv00l commented on September 2, 2024 1

Thanks, it's done now

from wiki.

mi-hol avatar mi-hol commented on September 2, 2024

@karniv00l is there any thing I could help with?
I did a proof-of-concept for RE see rusefi/rusefi_documentation#1

from wiki.

mi-hol avatar mi-hol commented on September 2, 2024

never edited GH workflows before but it seems that I need to add the following "-run" actions to "steps:" section in build.js.yml

  • install any new dependencies
  • at end of current yaml "run: npm run pdf"
  • if no error happened, copy pdf output file to a permanent location tbd

Would that be all or did I miss something?

from wiki.

karniv00l avatar karniv00l commented on September 2, 2024

It's a little bit more complicated since I believe we need to run npm run serve in a service

from wiki.

mi-hol avatar mi-hol commented on September 2, 2024

https://medium.com/geekculture/serverless-e-book-web-book-using-docusaurus-v2-github-pages-actions-and-pdf-tools-4fef54847b85 describes a more simple solution (having some caveats) copied below.

I've yet to test it and would create a PR if it works.
Would that be good enough as a first solution?

`name: 'continous deployment'

on:
push:
branches:
- master

jobs:
generate_webbook:
# ...

generate_ebook:
name: 'generate ebook'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install prince
run: |
curl https://www.princexml.com/download/prince-14.2-linux-generic-x86_64.tar.gz -O
tar zxf prince-14.2-linux-generic-x86_64.tar.gz
cd prince-14.2-linux-generic-x86_64
yes "" | sudo ./install.sh
- name: build pdf
run: npx docusaurus-prince-pdf -u https://my-book.novalagung.com/intro
- name: publish ebook
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PAT }}
publish_dir: ./pdf`

from wiki.

mi-hol avatar mi-hol commented on September 2, 2024

Great to see another critical issue for V1 release to be resolved.

BTW: The caveat I saw is the Prince version specific download file name.
Are you getting updates or have awareness of new releases?

from wiki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.