scripts: build and deploy PDF pages for translations (#10969)
* scripts: build and deploy PDF pages for translations Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> * render.py: fix typo in filename description --------- Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:

committed by
GitHub

parent
d9ad48e058
commit
e35b482300
@@ -2,12 +2,6 @@
|
||||
|
||||
This directory contains the script and related resources to generate a PDF document with all the `tldr` pages.
|
||||
|
||||
## Preview
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## Highlights
|
||||
|
||||
- No LaTeX dependencies for generating the PDF.
|
||||
@@ -25,14 +19,20 @@ Make sure OS specific dependencies for WeasyPrint are installed by following the
|
||||
|
||||
Generating the PDF is as simple as running:
|
||||
|
||||
python3 render.py <path-to-pages-directory> --color <color-scheme>
|
||||
python3 render.py <path-to-pages-directory> [--color <color-scheme>] [--output <filename>]
|
||||
|
||||
Complete information about the arguments can be viewed by running:
|
||||
|
||||
python3 render.py --help
|
||||
|
||||
The color-schemes that can be specified are:
|
||||
Available color schemes:
|
||||
|
||||
* `basic`
|
||||
* `solarized-light`
|
||||
* `solarized-dark`
|
||||
- `basic`
|
||||
- `solarized-light`
|
||||
- `solarized-dark`
|
||||
|
||||
## Preview
|
||||
|
||||

|
||||

|
||||

|
||||
|
Reference in New Issue
Block a user