Skip to content
mdicioPublic

About

A simple CV Maker repository.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

CV Maker

Write your CV in plain Markdown, get a clean, professional PDF and DOCX — plus a browser editor with a live preview. No templates to wrestle, no design skills needed.

🌐 Open the web editor →


Features

  • Markdown in, polished CV out — one plain-text file is the single source of truth.
  • PDF + DOCX — generate either or both with one command (high-fidelity via WeasyPrint and python-docx).
  • Clean, modern design — a restrained, Apple-inspired layout: system fonts, hairline rules, generous whitespace, refined links.
  • Live web editor — a true paginated PDF preview, page by page, as you type; runs entirely in the browser and is free to host on GitHub Pages.
  • Style, size and layout as separate dials — six visual styles (Classic, Modern, Minimal, Editorial, Technical, Executive), three densities (Normal, Compact, Narrow), and one- or two-column layouts. Mix any combination; the axes are independent.
  • Design controls — accent colour, heading treatment, fonts, type sizes, spacing, margins and colours, all live; flip on Advanced for every remaining generator parameter.
  • 24 fonts — system faces that print identically everywhere, plus web fonts (Inter, EB Garamond, Source Serif, IBM Plex…) fetched only when picked. Body and heading fonts can differ.
  • Two-column layouts — send any section to a sidebar, tinted or plain, left or right, with a full-width header. Both columns paginate independently.
  • Section reordering — drag sections in the rail; your Markdown is rewritten to match.
  • CV variants — keep as many tailored versions as you like, each with its own text, theme and cover letter.
  • Cover letter mode — the same header and styling, with ## To, ## Date, ## Subject and ## Letter sections.
  • ATS check — scores your CV and flags what automated screeners trip over: missing contact details, unconventional section names, undated entries, photos, two-column layouts.
  • Share links — the whole CV plus its theme, deflate-compressed into a URL fragment. No server, no account.
  • Optional photo — circle, rounded or square, sized and positioned; downscaled in-browser and never uploaded.
  • Fit 1 page — tightens spacing and type step by step until the CV lands on a single page, stopping as soon as it fits.
  • Dark mode for the editor chrome; the document always stays print-true.
  • Smart Markdown — clickable [links](url) (including **[bold links](url)**), right-aligned dates, and <!-- chips --> tag rows.
  • ATS-friendly — a clean document structure that applicant tracking systems can parse.

How it fits together

Markdown ──▶ parser ──▶ CV model ──┬──▶ WeasyPrint ──▶ PDF
                                   └──▶ python-docx ──▶ DOCX

docs/index.html  ──▶  the same parser + renderer in JS (live preview + print-to-PDF)

The CLI is the high-fidelity export engine. The web editor (docs/index.html) is a single, self-contained page that mirrors the exact same parsing and styling in JavaScript, so the preview matches the generated PDF. It is what ships to GitHub Pages, and cvmaker --web serves that very same file locally.

Install

The project uses uv. From a clone:

git clone https://github.com/mdicio/CvMaker.git
cd CvMaker
make install          # creates .venv (Python 3.12) and installs with dev extras

Prefer plain pip? pip install -e ".[dev]" works too.

System libraries (PDF only)

WeasyPrint needs a few native libraries for PDF output (DOCX needs none):

# Ubuntu / Debian
sudo apt-get install libpango-1.0-0 libpangocairo-1.0-0 libgdk-pixbuf2.0-0
# macOS
brew install pango gdk-pixbuf libffi
# Fedora
sudo dnf install pango gdk-pixbuf2

Usage

Generate documents

cvmaker examples/marco_cv.md            # PDF + DOCX next to the source file
cvmaker resume.md -f pdf                # PDF only
cvmaker resume.md -t compact            # one-page density
cvmaker resume.md -f pdf -o out/cv.pdf  # custom output path
cvmaker --list-templates                # show built-in templates

Or via the Makefile: make build renders the bundled example.

Web editor

cvmaker --web            # serves docs/ at http://127.0.0.1:5173 and opens the browser

Write Markdown in the middle, tune the design on the left, and watch the paginated PDF preview on the right — real page boundaries, so you know exactly where your CV breaks. Use Save PDF (⌘/Ctrl + P) to print; in the print dialog set margins to None and turn off Headers and footers so the output matches the preview exactly. Your draft and design settings are kept in the browser's local storage.

Design rail: Style (accent, heading treatment, rule weight, uppercase/accented headings, link style, tracking, weight) · Layout (columns, sidebar side/width/tint, full-width header, page size, margins, header alignment) · Sections (drag to reorder, SIDE to move a section into the sidebar) · Photo · Typography (body and heading fonts, all type sizes, line height) · Spacing · Cover letter · Colours. Tick Advanced to reveal the rest.

The Style and Size dropdowns in the toolbar are independent: changing a control that belongs to one axis flips only that axis to Custom, so Editorial + Narrow is a valid combination. Reset style & size restores both, and Export/Import theme moves a look between machines.

The ⋯ menu holds document actions (open/copy/download/clear), variant management, the share link, the ATS check, theme import/export, and dark mode. You can also drag a .md file onto the window to open it, or an image to set the photo.

Web fonts need a connection the first time they are used; the system fonts never do.

Markdown format

# Your Name
Your Title
[LinkedIn](https://linkedin.com/in/you) | [GitHub](https://github.com/you)

## Summary
A concise professional summary.

## Experience
### Role | Company | Jan 2024 – Present
- An achievement with measurable impact
- Another responsibility | 2023

## Skills
- **Languages:** Python, SQL, JavaScript

## Certifications
<!-- chips -->
- AWS Solutions Architect | 2023
Syntax Becomes
# Name Your name (header)
Line after # without | Subtitle, shown under the name
Line with | separators Contact / links row
## Section Section heading
### Title | Org | 2021 – Present Entry with a right-aligned date
- Bullet / - Item | 2023 Bullet, with an optional right-aligned date
**bold**, *italic*, [text](url) Inline formatting (nestable, e.g. **[link](url)**)
<!-- chips --> after a ## Render that section's items as tags

Date convention: the last \|-separated segment of a ### heading or - item is treated as a date when it matches a recognised pattern (2024, 2020 – Present, Jan 2023, 01/2024 – 12/2025). Everything else stays as title or body text.

Templates

Template Body Margins Best for
default 10.5pt 0.7in Standard CVs
compact 9.5pt 0.5in One-page CVs
compact-narrow 9pt 0.4in Dense one-page CVs

Custom templates are plain JSON — pass a path to -t:

{
    "fonts":   { "name": "Helvetica Neue", "heading1_size": 25, "heading2_size": 12,
                 "heading3_size": 11.5, "body_size": 10.5, "title_size": 13 },
    "colors":  { "heading": "#1d1d1f", "subheading": "#1d1d1f", "body": "#3a3a3c",
                 "muted": "#6e6e73", "accent": "#0071e3", "rule": "#d2d2d7" },
    "spacing": { "section_before": 15, "section_after": 6, "line_spacing": 1.4 },
    "header":  { "align": "left", "gap": 14, "padding": 10 },
    "margins": { "top": 0.7, "bottom": 0.7, "left": 0.85, "right": 0.85 }
}
cvmaker resume.md -t /path/to/my_template.json

Project structure

cvmaker/
├── cvmaker/                 # Python package
│   ├── cli.py               # Command-line interface
│   ├── parser.py            # Markdown → structured CV model
│   ├── pdf_generator.py     # CV model → PDF (WeasyPrint)
│   ├── docx_generator.py    # CV model → DOCX (python-docx)
│   ├── web_server.py        # `--web`: serves docs/ locally (stdlib only)
│   └── templates/           # Built-in style templates (JSON)
├── docs/
│   └── index.html           # Self-contained web editor (GitHub Pages)
├── examples/
│   ├── marco_cv.md          # Bundled example CV
│   └── sample_cv.md
├── tests/                   # pytest suite for the parser
├── .github/workflows/       # CI (lint + tests) and Pages deploy
├── Makefile                 # install / test / lint / build / web
└── pyproject.toml

Development

make test     # run the pytest suite
make lint     # ruff
make fmt      # ruff format + autofix
make build    # render the example CV to PDF + DOCX

CI runs ruff and pytest on every push and pull request.

Hosting your own web editor

The editor is a static page, so any static host works. On GitHub Pages:

  1. Fork this repository.
  2. Settings → Pages → Source → GitHub Actions (the included pages.yml workflow deploys docs/ on every push to main).
  3. Your editor goes live at https://<username>.github.io/CvMaker/.

Prefer the classic setup? Set Source → Deploy from a branch, main, /docs — the committed docs/index.html is served as-is.

Troubleshooting

  • PDF generation fails → install the WeasyPrint system libraries above.
  • Fonts look generic on Linux → the design targets Helvetica/SF; install fonts-liberation (or fonts-crosextra-carlito) for closer metrics. Output is still clean without them.
  • DOCX only → cvmaker resume.md -f docx needs no system libraries.

License

MIT

About

A simple CV Maker repository.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages