feat: initial commit - CV source & build scripts
12
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Fichiers de prévisualisation temporaires
|
||||
*.png
|
||||
!assets/**/*.png
|
||||
|
||||
# Caches
|
||||
.cache/
|
||||
tmp/
|
||||
scratch/
|
||||
|
||||
# Fichiers compilés (peuvent être conservés ou régénérés)
|
||||
# cv-munsch-latest.pdf
|
||||
# cv-munsch-latest.html
|
||||
22
Makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
.PHONY: all build pdf html deploy preview clean
|
||||
|
||||
all: build deploy
|
||||
|
||||
pdf:
|
||||
./bin/typst compile cv.typ cv-munsch-latest.pdf
|
||||
|
||||
html: pdf
|
||||
podman run --rm -v $$(pwd):/pdf:z -w /pdf bwits/pdf2htmlex pdf2htmlEX --zoom=1.3 cv-munsch-latest.pdf cv-munsch-latest.html
|
||||
|
||||
build:
|
||||
./build.sh
|
||||
|
||||
deploy:
|
||||
./deploy.sh
|
||||
|
||||
preview: pdf
|
||||
pdftoppm -png -r 150 cv-munsch-latest.pdf cv_preview_latest
|
||||
@echo "Preview saved to cv_preview_latest-1.png"
|
||||
|
||||
clean:
|
||||
rm -f cv-munsch-latest.pdf cv-munsch-latest.html cv_preview_latest*.png
|
||||
70
README.md
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
# CV Automatisé - Jérémy Munsch
|
||||
|
||||
Ce projet permet d'éditer, de compiler et de déployer automatiquement le CV de Jérémy Munsch au format PDF et HTML vers le site web (`/var/www-jeremy/web-sites/blog`).
|
||||
|
||||
## Architecture du projet
|
||||
|
||||
```
|
||||
.
|
||||
├── assets/ # Ressources graphiques extraites de l'ODT
|
||||
│ ├── blob_background.png # Fond bleu organique
|
||||
│ ├── profile.png # Photo de profil
|
||||
│ ├── icons/ # Icônes de contact (téléphone, mail, lieu, voiture, lien)
|
||||
│ └── logos/ # Logos des entreprises (CII Télécom, Pégase Market, LDC, 2e RIMa, Focalys)
|
||||
├── bin/
|
||||
│ └── typst # Binaire autonome de Typst (v0.15.1)
|
||||
├── cv_data.yaml # DONNÉES DU CV (éditables directement par un LLM ou manuellement)
|
||||
├── cv.typ # TEMPLATE TYPST (mise en page A4 stricte en 2 colonnes)
|
||||
├── build.sh # Script de compilation (Typst -> PDF -> Podman pdf2htmlEX -> HTML)
|
||||
├── deploy.sh # Script de déploiement vers le blog
|
||||
├── Makefile # Raccourcis de commandes
|
||||
└── vieux CV/ # Archives des anciens CV (.odt, .docx, .pdf)
|
||||
```
|
||||
|
||||
## 1. Modifier le contenu du CV (Idéal LLM)
|
||||
|
||||
Toutes les informations textuelles sont centralisées dans [`cv_data.yaml`](./cv_data.yaml) :
|
||||
- En-tête (nom, titre)
|
||||
- Résumé professionnel
|
||||
- Coordonnées & réseaux
|
||||
- Langues & Soft skills
|
||||
- Expériences professionnelles (titre, entreprise, dates, tâches, langages)
|
||||
- Formations
|
||||
- Compétences techniques
|
||||
|
||||
Un LLM peut modifier ce fichier à la demande sans risquer de casser la mise en page.
|
||||
|
||||
## 2. Modifier la mise en page
|
||||
|
||||
La mise en page est définie dans [`cv.typ`](./cv.typ) avec **Typst** :
|
||||
- Respect strict de la contrainte **1 page A4**.
|
||||
- Disposition en 2 colonnes.
|
||||
- Frise chronologique avec dates verticales orientées à 270° et puces reliées par une ligne continue.
|
||||
- Logos d'entreprises et icônes vectorielles / PNG haute définition.
|
||||
|
||||
## 3. Commandes rapides
|
||||
|
||||
```bash
|
||||
# Compiler le PDF seul (< 50ms)
|
||||
make pdf
|
||||
|
||||
# Lancer la compilation complète (PDF + HTML via Podman)
|
||||
make build
|
||||
|
||||
# Déployer les fichiers vers le blog (/var/www-jeremy/web-sites/blog/public/files/)
|
||||
make deploy
|
||||
|
||||
# Tout faire en une seule commande (build + deploy)
|
||||
make all
|
||||
|
||||
# Générer une image PNG de prévisualisation
|
||||
make preview
|
||||
```
|
||||
|
||||
## 4. Pipeline de déploiement
|
||||
|
||||
Le script `deploy.sh` copie automatiquement :
|
||||
- `cv-munsch-latest.pdf`
|
||||
- `cv-munsch-latest.html`
|
||||
|
||||
vers `/var/www-jeremy/web-sites/blog/public/files/`, où ils sont immédiatement servis par la page `/curriculum-vitae` du blog.
|
||||
BIN
assets/blob_background.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
assets/icons/car.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
assets/icons/home.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
assets/icons/link.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/icons/location.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/icons/mail.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/icons/phone.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/icons/pin.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/logos/2e_rima.png
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
assets/logos/cii_telecom.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
assets/logos/focalys.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
assets/logos/ldc.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
assets/logos/pegase_market.png
Normal file
|
After Width: | Height: | Size: 9.3 KiB |
BIN
assets/profile.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
176
bin/LICENSE
Normal file
|
|
@ -0,0 +1,176 @@
|
|||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
398
bin/NOTICE
Normal file
|
|
@ -0,0 +1,398 @@
|
|||
Licenses for third party components used by this project can be found below.
|
||||
|
||||
================================================================================
|
||||
The MIT License applies to:
|
||||
|
||||
* The default color set defined in `crates/typst/src/visualize/color.rs` which
|
||||
is adapted from the colors.css project
|
||||
(https://clrs.cc/)
|
||||
|
||||
* The `RemoteReader` defined in `crates/typst-kit/src/download.rs` which is
|
||||
closely modelled after the `DownloadTracker` from rustup
|
||||
(https://github.com/rust-lang/rustup/blob/master/src/cli/download_tracker.rs)
|
||||
|
||||
* The path diffing algorithm in `crates/typst-syntax/src/path.rs` which is
|
||||
modified from rustc's `path_relative_from` function
|
||||
(https://github.com/rust-lang/rust/blob/e1d0de82cc40b666b88d4a6d2c9dcbc81d7ed27f/src/librustc_back/rpath.rs#L116-L158)
|
||||
Copyright 2012-2015 The Rust Project Developers.
|
||||
|
||||
* The `SyntaxSet` defined in `crates/typst-syntax/src/set.rs` which is
|
||||
based on the `TokenSet` from rust-analyzer
|
||||
(https://github.com/rust-lang/rust-analyzer/blob/master/crates/parser/src/token_set.rs)
|
||||
|
||||
* The Lorem Ipsum generator in `crates/typst-library/src/text/lorem.rs` which
|
||||
is based on the `lipsum` crate
|
||||
(https://github.com/mgeisler/lipsum/blob/0.9.1/src/lib.rs)
|
||||
Copyright (c) 2017 Martin Geisler
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
================================================================================
|
||||
|
||||
|
||||
================================================================================
|
||||
Translations defined in `crates/typst-library/translations/` are adapted from
|
||||
|
||||
* Babel (https://ctan.org/pkg/babel)
|
||||
Copyright (C) 2012-2025 Javier Bezos and Johannes L. Braams.
|
||||
Copyright (C) 1989-2012 Johannes L. Braams and
|
||||
any individual authors listed elsewhere.
|
||||
All rights reserved.
|
||||
This file is part of the Babel system
|
||||
It may be distributed and/or modified under the
|
||||
conditions of the LaTeX Project Public License, either version 1.3
|
||||
of this license or (at your option) any later version.
|
||||
The latest version of this license is in
|
||||
http://www.latex-project.org/lppl.txt
|
||||
and version 1.3 or later is part of all distributions of LaTeX
|
||||
version 2003/12/01 or later.
|
||||
|
||||
* Cleveref (https://ctan.org/pkg/cleveref)
|
||||
Copyright 2006--2018 Toby Cubitt
|
||||
This file may be distributed and/or modified under the
|
||||
conditions of the LaTeX Project Public License, either version 1.2
|
||||
of this license or (at your option) any later version.
|
||||
The latest version of this license is in:
|
||||
http://www.latex-project.org/lppl.txt
|
||||
and version 1.2 or later is part of all distributions of LaTeX
|
||||
version 1999/12/01 or later.
|
||||
================================================================================
|
||||
|
||||
|
||||
================================================================================
|
||||
Alpha multiplication and source-over blending in
|
||||
`crates/typst-render/src/text.rs` are ported from Skia code which can be found
|
||||
here:
|
||||
https://skia.googlesource.com/skia/+/refs/heads/main/include/core/SkColorPriv.h
|
||||
|
||||
Copyright (c) 2011 Google Inc. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in
|
||||
the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
* Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived
|
||||
from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
================================================================================
|
||||
|
||||
|
||||
================================================================================
|
||||
`Scalar::powi` implementation in `crates/typst-utils/src/scalar.rs` is ported
|
||||
from here:
|
||||
https://github.com/llvm/llvm-project/blob/0ee439b/compiler-rt/lib/builtins/powidf2.c
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
The LLVM Project is under the Apache License v2.0 with LLVM Exceptions:
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
||||
---- LLVM Exceptions to the Apache 2.0 License ----
|
||||
|
||||
As an exception, if, as a result of your compiling your source code, portions
|
||||
of this Software are embedded into an Object form of such source code, you
|
||||
may redistribute such embedded portions in such Object form without complying
|
||||
with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
|
||||
|
||||
In addition, if you combine or link compiled forms of this Software with
|
||||
software that is licensed under the GPLv2 ("Combined Software") and if a
|
||||
court of competent jurisdiction determines that the patent provision (Section
|
||||
3), the indemnity provision (Section 9) or other Section of the License
|
||||
conflicts with the conditions of the GPLv2, you may retroactively and
|
||||
prospectively choose to deem waived or otherwise exclude such Section(s) of
|
||||
the License, but only in their entirety and only with respect to the Combined
|
||||
Software.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Software from third parties included in the LLVM Project:
|
||||
------------------------------------------------------------------------------
|
||||
The LLVM Project contains third party software which is under different license
|
||||
terms. All such code will be identified clearly using at least one of two
|
||||
mechanisms:
|
||||
1) It will be in a separate directory tree with its own `LICENSE.txt` or
|
||||
`LICENSE` file at the top containing the specific license and restrictions
|
||||
which apply to that software, or
|
||||
2) It will contain specific license and restriction terms at the top of every
|
||||
file.
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
Legacy LLVM License (https://llvm.org/docs/DeveloperPolicy.html#legacy):
|
||||
------------------------------------------------------------------------------
|
||||
University of Illinois/NCSA
|
||||
Open Source License
|
||||
|
||||
Copyright (c) 2003-2019 University of Illinois at Urbana-Champaign.
|
||||
All rights reserved.
|
||||
|
||||
Developed by:
|
||||
|
||||
LLVM Team
|
||||
|
||||
University of Illinois at Urbana-Champaign
|
||||
|
||||
http://llvm.org
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal with
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimers.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimers in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the names of the LLVM Team, University of Illinois at
|
||||
Urbana-Champaign, nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this Software without specific
|
||||
prior written permission.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
|
||||
SOFTWARE.
|
||||
================================================================================
|
||||
285
bin/README.md
Normal file
|
|
@ -0,0 +1,285 @@
|
|||
<h1 align="center">
|
||||
<img alt="Typst" src="https://user-images.githubusercontent.com/17899797/226108480-722b770e-6313-40d7-84f2-26bebb55a281.png">
|
||||
</h1>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://typst.app/docs/">
|
||||
<img alt="Documentation" src="https://img.shields.io/website?down_message=offline&label=docs&up_color=007aff&up_message=online&url=https%3A%2F%2Ftypst.app%2Fdocs"
|
||||
></a>
|
||||
<a href="https://typst.app/">
|
||||
<img alt="Typst App" src="https://img.shields.io/website?down_message=offline&label=typst.app&up_color=239dad&up_message=online&url=https%3A%2F%2Ftypst.app"
|
||||
></a>
|
||||
<a href="https://discord.gg/2uDybryKPe">
|
||||
<img alt="Discord Server" src="https://img.shields.io/discord/1054443721975922748?color=5865F2&label=discord&labelColor=555"
|
||||
></a>
|
||||
<a href="https://github.com/typst/typst/blob/main/LICENSE">
|
||||
<img alt="Apache-2 License" src="https://img.shields.io/badge/license-Apache%202-brightgreen"
|
||||
></a>
|
||||
<a href="https://typst.app/jobs/">
|
||||
<img alt="Jobs at Typst" src="https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Ftypst.app%2Fassets%2Fdata%2Fshields.json&query=%24.jobs.text&label=jobs&color=%23A561FF&cacheSeconds=1800"
|
||||
></a>
|
||||
</p>
|
||||
|
||||
Typst is a new markup-based typesetting system that is designed to be as powerful
|
||||
as LaTeX while being much easier to learn and use. Typst has:
|
||||
|
||||
- Built-in markup for the most common formatting tasks
|
||||
- Flexible functions for everything else
|
||||
- A tightly integrated scripting system
|
||||
- Math typesetting, bibliography management, and more
|
||||
- Fast compile times thanks to incremental compilation
|
||||
- Friendly error messages in case something goes wrong
|
||||
|
||||
This repository contains the Typst compiler and its CLI, which is everything you
|
||||
need to compile Typst documents locally. For the best writing experience,
|
||||
consider signing up to our [collaborative online editor][app] for free.
|
||||
|
||||
## Example
|
||||
A [gentle introduction][tutorial] to Typst is available in our documentation.
|
||||
However, if you want to see the power of Typst encapsulated in one image, here
|
||||
it is:
|
||||
<p align="center">
|
||||
<img alt="Example" width="900" src="https://user-images.githubusercontent.com/17899797/228031796-ced0e452-fcee-4ae9-92da-b9287764ff25.png">
|
||||
</p>
|
||||
|
||||
|
||||
Let's dissect what's going on:
|
||||
|
||||
- We use _set rules_ to configure element properties like the size of pages or
|
||||
the numbering of headings. By setting the page height to `auto`, it scales to
|
||||
fit the content. Set rules accommodate the most common configurations. If you
|
||||
need full control, you can also use [show rules][show] to completely redefine
|
||||
the appearance of an element.
|
||||
|
||||
- We insert a heading with the `= Heading` syntax. One equals sign creates a top
|
||||
level heading, two create a subheading and so on. Typst has more lightweight
|
||||
markup like this; see the [syntax] reference for a full list.
|
||||
|
||||
- [Mathematical equations][math] are enclosed in dollar signs. By adding extra
|
||||
spaces around the contents of an equation, we can put it into a separate block.
|
||||
Multi-letter identifiers are interpreted as Typst definitions and functions
|
||||
unless put into quotes. This way, we don't need backslashes for things like
|
||||
`floor` and `sqrt`. And `phi.alt` applies the `alt` modifier to the `phi` to
|
||||
select a particular symbol variant.
|
||||
|
||||
- Now, we get to some [scripting]. To input code into a Typst document, we can
|
||||
write a hash followed by an expression. We define two variables and a
|
||||
recursive function to compute the n-th fibonacci number. Then, we display the
|
||||
results in a center-aligned table. The table function takes its cells
|
||||
row-by-row. Therefore, we first pass the formulas `$F_1$` to `$F_8$` and then
|
||||
the computed fibonacci numbers. We apply the spreading operator (`..`) to both
|
||||
because they are arrays and we want to pass the arrays' items as individual
|
||||
arguments.
|
||||
|
||||
<details>
|
||||
<summary>Text version of the code example.</summary>
|
||||
|
||||
```typst
|
||||
#set page(width: 10cm, height: auto)
|
||||
#set heading(numbering: "1.")
|
||||
|
||||
= Fibonacci sequence
|
||||
The Fibonacci sequence is defined through the
|
||||
recurrence relation $F_n = F_(n-1) + F_(n-2)$.
|
||||
It can also be expressed in _closed form:_
|
||||
|
||||
$ F_n = round(1 / sqrt(5) phi.alt^n), quad
|
||||
phi.alt = (1 + sqrt(5)) / 2 $
|
||||
|
||||
#let count = 8
|
||||
#let nums = range(1, count + 1)
|
||||
#let fib(n) = (
|
||||
if n <= 2 { 1 }
|
||||
else { fib(n - 1) + fib(n - 2) }
|
||||
)
|
||||
|
||||
The first #count numbers of the sequence are:
|
||||
|
||||
#align(center, table(
|
||||
columns: count,
|
||||
..nums.map(n => $F_#n$),
|
||||
..nums.map(n => str(fib(n))),
|
||||
))
|
||||
```
|
||||
</details>
|
||||
|
||||
## Installation
|
||||
Typst's CLI is available from different sources:
|
||||
|
||||
- You can get sources and pre-built binaries for the latest release of Typst
|
||||
from the [releases page][releases]. Download the archive for your platform and
|
||||
place it in a directory that is in your `PATH`. To stay up to date with future
|
||||
releases, you can simply run `typst update`.
|
||||
|
||||
- You can install Typst through different package managers. Note that the
|
||||
versions in the package managers might lag behind the latest release.
|
||||
- Linux:
|
||||
- View [Typst on Repology][repology]
|
||||
- View [Typst's Snap][snap]
|
||||
- macOS: `brew install typst`
|
||||
- Windows: `winget install --id Typst.Typst`
|
||||
|
||||
- If you have a [Rust][rust] toolchain installed, you can install
|
||||
- the latest released Typst version with
|
||||
`cargo install --locked typst-cli`
|
||||
- a development version with
|
||||
`cargo install --git https://github.com/typst/typst --locked typst-cli`
|
||||
|
||||
- Nix users can
|
||||
- use the `typst` package with `nix-shell -p typst`
|
||||
- build and run the [Typst flake](https://github.com/typst/typst-flake) with
|
||||
`nix run github:typst/typst-flake -- --version`.
|
||||
|
||||
- Docker users can run a prebuilt image with
|
||||
`docker run ghcr.io/typst/typst:latest --help`.
|
||||
|
||||
## Usage
|
||||
Once you have installed Typst, you can use it like this:
|
||||
```sh
|
||||
# Creates `file.pdf` in working directory.
|
||||
typst compile file.typ
|
||||
|
||||
# Creates a PDF file at the desired path.
|
||||
typst compile path/to/source.typ path/to/output.pdf
|
||||
```
|
||||
|
||||
You can also watch source files and automatically recompile on changes. This is
|
||||
faster than compiling from scratch each time because Typst has incremental
|
||||
compilation.
|
||||
```sh
|
||||
# Watches source files and recompiles on changes.
|
||||
typst watch file.typ
|
||||
```
|
||||
|
||||
Typst further allows you to add custom font paths for your project and list all
|
||||
of the fonts it discovered:
|
||||
```sh
|
||||
# Adds additional directories to search for fonts.
|
||||
typst compile --font-path path/to/fonts file.typ
|
||||
|
||||
# Lists all of the discovered fonts in the system and the given directory.
|
||||
typst fonts --font-path path/to/fonts
|
||||
|
||||
# Or via environment variable (Linux syntax).
|
||||
TYPST_FONT_PATHS=path/to/fonts typst fonts
|
||||
```
|
||||
|
||||
For other CLI subcommands and options, see below:
|
||||
```sh
|
||||
# Prints available subcommands and options.
|
||||
typst help
|
||||
|
||||
# Prints detailed usage of a subcommand.
|
||||
typst help watch
|
||||
```
|
||||
|
||||
If you prefer an integrated IDE-like experience with autocompletion and instant
|
||||
preview, you can also check out our [free web app][app]. Alternatively, there is
|
||||
a community-created language server called
|
||||
[Tinymist](https://myriad-dreamin.github.io/tinymist/) which is integrated into
|
||||
various editor extensions.
|
||||
|
||||
## Community
|
||||
The main places where the community gathers are our [Forum][forum] and our
|
||||
[Discord server][discord]. The Forum is a great place to ask questions, help
|
||||
others, and share cool things you created with Typst. The Discord server is more
|
||||
suitable for quicker questions, discussions about contributing, or just to chat.
|
||||
We'd be happy to see you there!
|
||||
|
||||
[Typst Universe][universe] is where the community shares templates and packages.
|
||||
If you want to share your own creations, you can submit them to our
|
||||
[package repository][packages].
|
||||
|
||||
If you had a bad experience in our community, please [reach out to us][contact].
|
||||
|
||||
## Contributing
|
||||
We love to see contributions from the community. If you experience bugs, feel
|
||||
free to open an issue. If you would like to implement a new feature or bug fix,
|
||||
please follow the steps outlined in the [contribution guide][contributing].
|
||||
|
||||
To build Typst yourself, first ensure that you have the
|
||||
[latest stable Rust][rust] installed. Then, clone this repository and build the
|
||||
CLI with the following commands:
|
||||
|
||||
```sh
|
||||
git clone https://github.com/typst/typst
|
||||
cd typst
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
The optimized binary will be stored in `target/release/`.
|
||||
|
||||
Another good way to contribute is by [sharing packages][packages] with the
|
||||
community.
|
||||
|
||||
## Pronunciation and Spelling
|
||||
IPA: /taɪpst/. "Ty" like in **Ty**pesetting and "pst" like in Hi**pst**er. When
|
||||
writing about Typst, capitalize its name as a proper noun, with a capital "T".
|
||||
|
||||
## Design Principles
|
||||
All of Typst has been designed with three key goals in mind: Power,
|
||||
simplicity, and performance. We think it's time for a system that matches the
|
||||
power of LaTeX, is easy to learn and use, all while being fast enough to realize
|
||||
instant preview. To achieve these goals, we follow three core design principles:
|
||||
|
||||
- **Simplicity through Consistency:**
|
||||
If you know how to do one thing in Typst, you should be able to transfer that
|
||||
knowledge to other things. If there are multiple ways to do the same thing,
|
||||
one of them should be at a different level of abstraction than the other. E.g.
|
||||
it's okay that `= Introduction` and `#heading[Introduction]` do the same thing
|
||||
because the former is just syntax sugar for the latter.
|
||||
|
||||
- **Power through Composability:**
|
||||
There are two ways to make something flexible: Have a knob for everything or
|
||||
have a few knobs that you can combine in many ways. Typst is designed with the
|
||||
second way in mind. We provide systems that you can compose in ways we've
|
||||
never even thought of. TeX is also in the second category, but it's a bit
|
||||
low-level and therefore people use LaTeX instead. But there, we don't really
|
||||
have that much composability. Instead, there's a package for everything
|
||||
(`\usepackage{knob}`).
|
||||
|
||||
- **Performance through Incrementality:**
|
||||
All Typst language features must accommodate for incremental compilation.
|
||||
Luckily we have [`comemo`], a system for incremental compilation which does
|
||||
most of the hard work in the background.
|
||||
|
||||
## Acknowledgements
|
||||
|
||||
We'd like to thank everyone who is supporting Typst's development, be it via
|
||||
[GitHub sponsors] or elsewhere. In particular, special thanks[^1] go to:
|
||||
|
||||
- [Posit](https://posit.co/blog/posit-and-typst/) for financing a full-time
|
||||
compiler engineer
|
||||
- [NLnet](https://nlnet.nl/) for supporting work on Typst via multiple grants
|
||||
through the [NGI Zero Core](https://nlnet.nl/core) fund:
|
||||
- Work on [HTML export](https://nlnet.nl/project/Typst-HTML/)
|
||||
- Work on [PDF accessibility](https://nlnet.nl/project/Typst-Accessibility/)
|
||||
- [Science & Startups](https://www.science-startups.berlin/) for having financed
|
||||
Typst development from January through June 2023 via the Berlin Startup
|
||||
Scholarship
|
||||
- [Zerodha](https://zerodha.tech/blog/1-5-million-pdfs-in-25-minutes/) for their
|
||||
generous one-time sponsorship
|
||||
|
||||
[^1]: This list only includes contributions for our open-source work that exceed
|
||||
or are expected to exceed €10K.
|
||||
|
||||
[docs]: https://typst.app/docs/
|
||||
[app]: https://typst.app/
|
||||
[discord]: https://discord.gg/2uDybryKPe
|
||||
[forum]: https://forum.typst.app/
|
||||
[universe]: https://typst.app/universe/
|
||||
[tutorial]: https://typst.app/docs/tutorial/
|
||||
[show]: https://typst.app/docs/reference/styling/#show-rules
|
||||
[math]: https://typst.app/docs/reference/math/
|
||||
[syntax]: https://typst.app/docs/reference/syntax/
|
||||
[scripting]: https://typst.app/docs/reference/scripting/
|
||||
[rust]: https://rustup.rs/
|
||||
[releases]: https://github.com/typst/typst/releases/
|
||||
[repology]: https://repology.org/project/typst/versions
|
||||
[contact]: https://typst.app/contact
|
||||
[architecture]: https://github.com/typst/typst/blob/main/docs/dev/architecture.md
|
||||
[contributing]: https://github.com/typst/typst/blob/main/CONTRIBUTING.md
|
||||
[packages]: https://github.com/typst/packages/
|
||||
[`comemo`]: https://github.com/typst/comemo/
|
||||
[snap]: https://snapcraft.io/typst
|
||||
[GitHub sponsors]: https://github.com/sponsors/typst/
|
||||
BIN
bin/typst
Executable file
23
build.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
echo "=== 1. Compilation du CV Typst -> PDF ==="
|
||||
"$SCRIPT_DIR/bin/typst" compile "$SCRIPT_DIR/cv.typ" "$SCRIPT_DIR/cv-munsch-latest.pdf"
|
||||
|
||||
# Vérification du nombre de pages
|
||||
PAGE_COUNT=$(pdfinfo "$SCRIPT_DIR/cv-munsch-latest.pdf" 2>/dev/null | grep -E "^Pages:" | awk '{print $2}')
|
||||
echo "PDF généré avec succès ($PAGE_COUNT page(s))."
|
||||
|
||||
if [ "$PAGE_COUNT" -ne 1 ]; then
|
||||
echo "⚠️ ATTENTION : Le CV dépasse sur $PAGE_COUNT pages ! Ajustez les espacements dans cv.typ."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=== 2. Génération de la version HTML via pdf2htmlEX ==="
|
||||
podman run --rm -v "$SCRIPT_DIR":/pdf:z -w /pdf bwits/pdf2htmlex pdf2htmlEX --zoom=1.3 cv-munsch-latest.pdf cv-munsch-latest.html
|
||||
|
||||
echo "=== Build terminé avec succès ==="
|
||||
ls -lh "$SCRIPT_DIR/cv-munsch-latest.pdf" "$SCRIPT_DIR/cv-munsch-latest.html"
|
||||
1013
cv-munsch-latest.html
Normal file
2488
cv-munsch-latest.pdf
Normal file
238
cv.typ
Normal file
|
|
@ -0,0 +1,238 @@
|
|||
#set page(
|
||||
paper: "a4",
|
||||
margin: (left: 0.8cm, right: 0.8cm, top: 0.7cm, bottom: 0.6cm),
|
||||
background: place(top + left)[
|
||||
#image("assets/blob_background.png", width: 7.8cm)
|
||||
],
|
||||
)
|
||||
|
||||
#set text(
|
||||
font: ("Liberation Sans", "DejaVu Sans", "Noto Sans"),
|
||||
size: 7.5pt,
|
||||
fill: rgb("#1e293b"),
|
||||
lang: "fr",
|
||||
)
|
||||
|
||||
#set par(justify: false, leading: 0.42em)
|
||||
|
||||
#let data = yaml("cv_data.yaml")
|
||||
|
||||
#let primary = rgb("#0284c7") // Bleu moderne (Sky-600)
|
||||
#let primary-dark = rgb("#0369a1") // Bleu foncé
|
||||
#let text-dark = rgb("#0f172a") // Slate-900
|
||||
#let text-muted = rgb("#64748b") // Slate-500
|
||||
#let border-color = rgb("#e2e8f0") // Slate-200
|
||||
#let badge-bg = rgb("#f1f5f9") // Slate-100
|
||||
|
||||
// Titre de section stylisé
|
||||
#let section-title(title, icon: none) = {
|
||||
v(0.4em)
|
||||
block(width: 100%)[
|
||||
#text(size: 10pt, weight: "bold", fill: text-dark)[#upper(title)]
|
||||
#v(-0.35em)
|
||||
#line(length: 100%, stroke: 1.5pt + primary)
|
||||
]
|
||||
v(0.25em)
|
||||
}
|
||||
|
||||
// Badge de compétence
|
||||
#let skill-badge(term) = {
|
||||
box(
|
||||
fill: badge-bg,
|
||||
radius: 3pt,
|
||||
inset: (x: 4pt, y: 2pt),
|
||||
baseline: 0%,
|
||||
outset: 0pt,
|
||||
)[#text(size: 6.8pt, weight: "medium", fill: rgb("#334155"))[#term]]
|
||||
}
|
||||
|
||||
#let icon-row(icon-path, content) = {
|
||||
grid(
|
||||
columns: (13pt, 1fr),
|
||||
gutter: 5pt,
|
||||
align: (center + horizon, left + horizon),
|
||||
image(icon-path, width: 10pt),
|
||||
content
|
||||
)
|
||||
}
|
||||
|
||||
// Layout en 2 colonnes bien proportionnées : Gauche (5.4cm) - Droite (1fr)
|
||||
#grid(
|
||||
columns: (5.4cm, 1fr),
|
||||
column-gutter: 0.7cm,
|
||||
|
||||
// ==========================================
|
||||
// COLONNE DE GAUCHE : Profil, Contact, Compétences
|
||||
// ==========================================
|
||||
[
|
||||
// Photo
|
||||
#align(center)[
|
||||
#block(width: 3.2cm, height: 4.3cm)[
|
||||
#align(center + horizon)[
|
||||
#image("assets/profile.png", width: 2.95cm)
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
#section-title("Coordonnées")
|
||||
#stack(
|
||||
spacing: 0.45em,
|
||||
if data.contact.phone != none and data.contact.phone != "" [
|
||||
#icon-row("assets/icons/phone.png", text(size: 7.2pt)[#link("tel:" + data.contact.phone.replace(" ", ""))[#data.contact.phone]])
|
||||
],
|
||||
icon-row("assets/icons/mail.png", text(size: 7.2pt)[#link("mailto:" + data.contact.email)[#data.contact.email]]),
|
||||
icon-row("assets/icons/home.png", text(size: 7.2pt)[#data.contact.location]),
|
||||
if data.contact.mobility != none and data.contact.mobility != "" [
|
||||
#icon-row("assets/icons/pin.png", text(size: 7.2pt)[#data.contact.mobility])
|
||||
],
|
||||
icon-row("assets/icons/car.png", text(size: 7.2pt)[#data.contact.licenses]),
|
||||
icon-row("assets/icons/link.png", text(size: 7.2pt)[#link(data.contact.linkedin_url)[#data.contact.linkedin]]),
|
||||
)
|
||||
|
||||
#section-title("Compétences Clés")
|
||||
#for s in data.skills [
|
||||
#text(weight: "bold", size: 7.3pt, fill: text-dark)[#s.category] \
|
||||
#v(-0.2em)
|
||||
#let items = s.items.split(", ")
|
||||
#items.map(skill-badge).join(" ")
|
||||
#v(0.35em)
|
||||
]
|
||||
|
||||
#section-title("Certifications")
|
||||
#for c in data.certifications [
|
||||
#let is-rncp = c.contains("RNCP 7")
|
||||
#grid(
|
||||
columns: (7pt, 1fr),
|
||||
gutter: 4pt,
|
||||
text(fill: primary)[•],
|
||||
text(size: 7pt)[
|
||||
#if is-rncp [
|
||||
#text(weight: "bold", fill: primary-dark)[#c]
|
||||
] else [
|
||||
#c
|
||||
]
|
||||
]
|
||||
)
|
||||
#v(0.15em)
|
||||
]
|
||||
|
||||
#section-title("Langues & Soft Skills")
|
||||
#for lang in data.languages [
|
||||
*#lang.name* : #lang.details \
|
||||
]
|
||||
#v(0.15em)
|
||||
#text(size: 7pt, fill: text-muted)[
|
||||
*Soft skills :* #data.soft_skills.join(" • ")
|
||||
]
|
||||
|
||||
#section-title("Liens & Références")
|
||||
#for l in data.links [
|
||||
#grid(
|
||||
columns: (7pt, 1fr),
|
||||
gutter: 4pt,
|
||||
text(fill: primary)[•],
|
||||
text(size: 7pt)[#link(l.url)[#l.label.replace("https://", "")]]
|
||||
)
|
||||
#v(0.1em)
|
||||
]
|
||||
|
||||
#section-title("Centres d'intérêt")
|
||||
#text(size: 7pt)[
|
||||
#data.interests.join(" • ")
|
||||
]
|
||||
],
|
||||
|
||||
// ==========================================
|
||||
// COLONNE DE DROITE : En-tête, Résumé, Expériences, Formation
|
||||
// ==========================================
|
||||
[
|
||||
// En-tête avec hiérarchie claire
|
||||
#v(0.1cm)
|
||||
#text(size: 18pt, weight: "bold", fill: text-dark)[#data.header.name] \
|
||||
#v(-0.35em)
|
||||
#box[
|
||||
#text(size: 11pt, weight: "bold", fill: primary)[#data.header.title]
|
||||
#text(size: 9pt, fill: text-muted)[ | #data.header.subtitle]
|
||||
]
|
||||
|
||||
// Résumé
|
||||
#section-title("Profil Professionnel")
|
||||
#text(size: 7.3pt, fill: rgb("#334155"))[#data.summary]
|
||||
|
||||
// Expériences professionnelles
|
||||
#section-title("Expériences Professionnelles")
|
||||
|
||||
#for exp in data.experiences [
|
||||
#block(width: 100%, breakable: false)[
|
||||
// Ligne 1 : Titre + Date alignée à droite
|
||||
#grid(
|
||||
columns: (1fr, auto),
|
||||
align: (left + horizon, right + horizon),
|
||||
[
|
||||
#text(size: 8.6pt, weight: "bold", fill: text-dark)[#exp.title]
|
||||
],
|
||||
[
|
||||
#box(
|
||||
fill: badge-bg,
|
||||
radius: 3pt,
|
||||
inset: (x: 5pt, y: 1.5pt),
|
||||
)[#text(size: 7pt, weight: "bold", fill: primary-dark)[#exp.dates]]
|
||||
]
|
||||
)
|
||||
#v(-0.25em)
|
||||
// Ligne 2 : Logo + Entreprise
|
||||
#box(height: 12pt)[
|
||||
#grid(
|
||||
columns: (auto, auto),
|
||||
gutter: 5pt,
|
||||
align: horizon,
|
||||
image(exp.logo, height: 10.5pt),
|
||||
text(size: 8pt, weight: "medium", style: "italic", fill: rgb("#475569"))[#exp.company – #exp.location]
|
||||
)
|
||||
]
|
||||
#v(0.05em)
|
||||
// Missions avec puces soignées
|
||||
#for task in exp.tasks [
|
||||
#grid(
|
||||
columns: (7pt, 1fr),
|
||||
gutter: 4pt,
|
||||
align: (center + top, left + top),
|
||||
text(size: 7pt, fill: primary)[▸],
|
||||
text(size: 7.2pt)[#task]
|
||||
)
|
||||
]
|
||||
#if "languages" in exp [
|
||||
#v(-0.15em)
|
||||
#pad(left: 11pt)[
|
||||
#text(size: 6.9pt, fill: text-muted)[
|
||||
_Technologies :_ #text(fill: text-dark)[#exp.languages]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
#v(0.28em)
|
||||
]
|
||||
|
||||
// Formation
|
||||
#section-title("Formation")
|
||||
#for edu in data.education [
|
||||
#let is-rncp = edu.degree.contains("RNCP 7")
|
||||
#grid(
|
||||
columns: (2.3cm, 1fr),
|
||||
gutter: 6pt,
|
||||
align: (left, left),
|
||||
text(size: 7pt, fill: text-muted, weight: "medium")[#edu.dates],
|
||||
[
|
||||
#if is-rncp [
|
||||
#text(size: 7.2pt, weight: "bold", fill: primary-dark)[#edu.degree]
|
||||
] else [
|
||||
#text(size: 7.2pt, weight: "bold")[#edu.degree]
|
||||
] \
|
||||
#v(-0.35em)
|
||||
#text(size: 6.8pt, fill: text-muted)[#edu.school]
|
||||
]
|
||||
)
|
||||
#v(0.12em)
|
||||
]
|
||||
]
|
||||
)
|
||||
136
cv_data.yaml
Normal file
|
|
@ -0,0 +1,136 @@
|
|||
# CV - Jérémy Munsch
|
||||
# Données structurées mises à jour depuis LinkedIn & paramètres publics
|
||||
|
||||
header:
|
||||
name: "Jérémy Munsch"
|
||||
title: "Ingénieur Logiciel Backend"
|
||||
subtitle: "Conception, Développement & Déploiement"
|
||||
|
||||
summary: >
|
||||
Ingénieur Logiciel Backend avec près de 10 ans d'expérience globale, associant développement, architecture logicielle et administration système. Intervenant sur des environnements Linux, de la conception des bases de données jusqu'au déploiement (Ops), je privilégie des solutions simples, fiables et pérennes : code propre, sécurité, automatisation des tests et travail collaboratif.
|
||||
|
||||
contact:
|
||||
phone: null # Masqué pour la version publique web
|
||||
email: "contact@jeremydev.ovh"
|
||||
location: "Le Mans 72000"
|
||||
mobility: "40 km"
|
||||
licenses: "Permis A, B et C - Véhiculé"
|
||||
linkedin: "linkedin.com/in/jeremy-munsch"
|
||||
linkedin_url: "https://www.linkedin.com/in/jeremy-munsch"
|
||||
|
||||
languages:
|
||||
- name: "Français"
|
||||
details: "Langue maternelle"
|
||||
- name: "Anglais"
|
||||
details: "Courant (C1), 1 an en Irlande"
|
||||
|
||||
soft_skills:
|
||||
- "Architecture logicielle"
|
||||
- "Collaboration & Partage"
|
||||
- "Anticipation"
|
||||
- "Rigueur & Logique"
|
||||
|
||||
certifications:
|
||||
- "Titre RNCP 7 (Bac+5) Expert en développement logiciel (mention Très bien)"
|
||||
- "Certification Cisco CCNA 1 : réseaux & topologies"
|
||||
- "TOEIC : score 870 (professionnel autonome)"
|
||||
|
||||
links:
|
||||
- label: "https://jeremydev.ovh"
|
||||
url: "https://jeremydev.ovh"
|
||||
- label: "https://github.com/Kwaadpepper"
|
||||
url: "https://github.com/Kwaadpepper"
|
||||
- label: "https://launchpad.net/~jeremy-munsch"
|
||||
url: "https://launchpad.net/~jeremy-munsch"
|
||||
|
||||
interests:
|
||||
- "Veille technologique & Open Source"
|
||||
- "Actualités & Systèmes distribués"
|
||||
- "Musique, Sport, Cinéma"
|
||||
- "Lectures SF"
|
||||
|
||||
experiences:
|
||||
- title: "Ingénieur Logiciel"
|
||||
company: "Groupe LDC"
|
||||
location: "Le Mans"
|
||||
dates: "03/26 · Présent"
|
||||
logo: "assets/logos/ldc.png"
|
||||
tasks:
|
||||
- "Refactoring, analyse et conception logicielle, conseils d'architecture"
|
||||
- "Ops : intégration continue, conteneurisation et déploiement"
|
||||
languages: "Docker, Kubernetes, CI/CD, GNU/Linux"
|
||||
|
||||
- title: "Développeur Fullstack"
|
||||
company: "ciitélécom – Alerte des Populations"
|
||||
location: "Le Mans"
|
||||
dates: "12/25 · 02/26"
|
||||
logo: "assets/logos/cii_telecom.png"
|
||||
tasks:
|
||||
- "Maintenance, corrections et évolution d’un logiciel d’alerte à la population"
|
||||
languages: "PHP, TypeScript"
|
||||
|
||||
- title: "Développeur Fullstack (Alternance 1 an)"
|
||||
company: "Pégase Market"
|
||||
location: "Le Mans"
|
||||
dates: "09/24 · 09/25"
|
||||
logo: "assets/logos/pegase_market.png"
|
||||
tasks:
|
||||
- "Conception et dév. d'une app de redirection de lien (Java - Quarkus - TypeScript - SvelteKit)"
|
||||
- "Conception backend d'une app de gestion de produits (Kotlin - Ktor - TypeScript - SvelteKit)"
|
||||
- "Refactoring et ajouts de fonctionnalités sur un e-commerce legacy (PHP 5.6)"
|
||||
- "Revues de code, application des bonnes pratiques et soutenances validées"
|
||||
languages: "Java, Kotlin, TypeScript, PHP, PostgreSQL"
|
||||
|
||||
- title: "Développeur / Concepteur Fullstack (3.5 ans)"
|
||||
company: "Groupe LDC"
|
||||
location: "Le Mans"
|
||||
dates: "01/21 · 07/24"
|
||||
logo: "assets/logos/ldc.png"
|
||||
tasks:
|
||||
- "Conception et dév. sur les sites des marques du groupe LDC (Laravel - Vue.js - WordPress)"
|
||||
- "Développement d’applications dédiées (Android - React - Nuxt & Electron)"
|
||||
- "Refactoring d'applications et migrations de données PHP, formation de développeurs"
|
||||
languages: "PHP, TypeScript, Kotlin, Sass"
|
||||
|
||||
- title: "Chef d’équipe (5 ans)"
|
||||
company: "2ᵉ RIMa – Armée de Terre"
|
||||
location: "Champagné"
|
||||
dates: "01/16 · 01/21"
|
||||
logo: "assets/logos/2e_rima.png"
|
||||
tasks:
|
||||
- "Chef d'équipe, combattant débarqué, pilote poids lourd, armurier"
|
||||
- "Gestion régulière d'une section (30 personnes), instruction et incorporation"
|
||||
- "Opérations extérieures : Émirats arabes unis [2017], Mali [2019]"
|
||||
|
||||
- title: "Analyste Concepteur Développeur (1 an)"
|
||||
company: "Focalys"
|
||||
location: "Nancy"
|
||||
dates: "04/14 · 07/15"
|
||||
logo: "assets/logos/focalys.png"
|
||||
tasks:
|
||||
- "Applications web/mobiles SaaS et e-mailing (CakePHP - PHP, iOS - Objective-C, Postfix)"
|
||||
- "Gestion de serveurs dédiés, déploiements en production, recueil des besoins clients"
|
||||
|
||||
education:
|
||||
- dates: "09/24 · 09/25"
|
||||
degree: "Titre RNCP 7 (Bac+5) Expert en développement logiciel"
|
||||
school: "OpenClassrooms (mention Très bien)"
|
||||
- dates: "09/13 · 09/14"
|
||||
degree: "LP CISIIE (Concepteur-Intégrateur Web)"
|
||||
school: "Université de Lorraine, Nancy"
|
||||
- dates: "09/11 · 09/13"
|
||||
degree: "BTS IRIS (Informatique et Réseaux)"
|
||||
school: "Lycée Heinrich Nessel, Haguenau"
|
||||
- dates: "09/09 · 09/11"
|
||||
degree: "BACCALAURÉAT STI (Génie électronique)"
|
||||
school: "Lycée Georges Baumont, Saint-Dié"
|
||||
|
||||
skills:
|
||||
- category: "Langages"
|
||||
items: "Java, Kotlin, TypeScript, PHP, SQL, Bash"
|
||||
- category: "Frameworks"
|
||||
items: "Quarkus, Ktor, Spring Boot, SvelteKit, Angular, Laravel, Vue.js, React, Nuxt"
|
||||
- category: "Bases & Brokers"
|
||||
items: "PostgreSQL, MariaDB, Redis, RabbitMQ"
|
||||
- category: "Méthodologies & Ops"
|
||||
items: "Docker, Kubernetes, CI/CD, GNU/Linux, DDD, Tests unitaires/E2E, Git"
|
||||
28
deploy.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
TARGET_DIR="${1:-/var/www-jeremy/web-sites/blog/public/files}"
|
||||
|
||||
echo "=== Déploiement vers $TARGET_DIR ==="
|
||||
|
||||
if [ ! -d "$TARGET_DIR" ]; then
|
||||
echo "Erreur : le dossier cible $TARGET_DIR n'existe pas."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f "$SCRIPT_DIR/cv-munsch-latest.pdf" ] || [ ! -f "$SCRIPT_DIR/cv-munsch-latest.html" ]; then
|
||||
echo "Fichiers manquants. Lancement préalable du build..."
|
||||
"$SCRIPT_DIR/build.sh"
|
||||
fi
|
||||
|
||||
echo "Copie de cv-munsch-latest.pdf..."
|
||||
cp -f "$SCRIPT_DIR/cv-munsch-latest.pdf" "$TARGET_DIR/cv-munsch-latest.pdf"
|
||||
chmod 644 "$TARGET_DIR/cv-munsch-latest.pdf" 2>/dev/null || true
|
||||
|
||||
echo "Copie de cv-munsch-latest.html..."
|
||||
cp -f "$SCRIPT_DIR/cv-munsch-latest.html" "$TARGET_DIR/cv-munsch-latest.html"
|
||||
chmod 644 "$TARGET_DIR/cv-munsch-latest.html" 2>/dev/null || true
|
||||
|
||||
echo "=== Déploiement terminé avec succès ! ==="
|
||||
ls -la "$TARGET_DIR/cv-munsch-latest."*
|
||||