Comments (4)
in .github/workflows/generate_release.yml
, it references the following code:
./generate_pdf.sh cheats.rs/rust_cheat_sheet.pdf
Needs to look into generate_pdf.sh
it uses google-chrome as stated in the actual code snippet producing the pdf in docker/generate_pdf.sh
google-chrome --headless --disable-gpu --print-to-pdf=$output --print-to-pdf-no-header http://localhost:1111#_print
Found another docker image docker-html-to-pdf that references a npm package chrome-headless-render-pdf supporting the following options:
--header-template HTML template for the header. Inject variables using the classes "date", "title", "url", "pageNumber" or "totalPages"
--footerTemplate HTML template for the footer. Inject variables using the classes "date", "title", "url", "pageNumber" or "totalPages"
from cheats.rs.
Would be great if the cached one can have page number.
from cheats.rs.
There is probably a setting in the generation script somewhere, PRs welcome.
from cheats.rs.
Seems to work now.
from cheats.rs.
Related Issues (20)
- Translate to Korean HOT 1
- On-site feedback (2022-02)
- Syntax Highlighting not longer working on the LightMode version of the page HOT 3
- What does this symbol mean (Feedback 2022-06)
- Translate into other languages HOT 1
- "Legal" page messed up again ...
- PDF looks ugly again
- Site Outage HOT 1
- Visually depict MaybeUninit?
- Unexplained acronym "s.f." HOT 1
- "Implementing Families — impl<>" compilation error HOT 2
- possible duplicate word in "this creates a relation relation of types named `Complex`" HOT 1
- `json` or `text` output endpoint to allow for cli usage HOT 1
- Issues with the PDF HOT 4
- Blurred font in Safari HOT 9
- error: the `?` macro repetition operator does not take a separator HOT 1
- typo: duplicated word HOT 1
- `fn f() where Self: R {} Other R useful w. dflt. fn. (non dflt. would need be impl'ed anyway).` HOT 2
- Date stamp is wrong ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheats.rs.