Skip to content

Commit

Permalink
docs: Improve documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
germainlefebvre4 committed Feb 12, 2025
1 parent e9fcfc4 commit 7e2610c
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ nav:
- Install a remote theme: themes/install-theme.md
- Write your theme: themes/write-theme.md
- Publish your theme: themes/publish-theme.md
- Library: themes/library.md
- Contributing:
- How to contribute:
- Issues: contributing/issues.md
Expand Down
10 changes: 6 additions & 4 deletions docs/readthedocs/format/html.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# HTML format

## Getting started

!!! info "Default format"
!!! info "Default format is HTML"

The default format for the generated CV is HTML.

## Getting started

You can generate a HTML version of your CV by adding the flag `--format=html` to the `cvwonder` command.

```bash
cvwonder generate --input=cv.yml --output=generated/ --format=pdf
```

As the HTML format is the default format, you can omit the `--format=html` flag.
??? note "Flag is optional"

As the HTML format is the default format, you can omit the `--format=html` flag.
6 changes: 5 additions & 1 deletion docs/readthedocs/format/pdf.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# PDF format

!!! info "Default format is HTML"

The default format for the generated CV is [HTML](html.md).

## Getting started

You can generate a PDF version of your CV by adding the flag `--format=pdf` to the `cvwonder` command.
Expand All @@ -12,4 +16,4 @@ cvwonder generate --input=cv.yml --output=generated/ --format=pdf

The PDF format is generated using the `rod` Go package. The package is a high-level API for the Chrome DevTools Protocol. Formerly it opens a headless browser, load the HTML file, and save the PDF file.

To generate the PDF, `cvwonder` generates the HTML file then generates the PDF file.
To generate the PDF, `cvwonder` generates the HTML file then the PDF file.
6 changes: 6 additions & 0 deletions docs/readthedocs/getting-started/cv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ certifications:
link: https://www.credly.com/badges/dd09dc40-9ef8-43a4-addb-d861d4dadf26/public_url
badge: images/aws-certified-solutions-architect-associate.png

languages:
- name: Francais
level: Maternelle
- name: Anglais
level: Aisance professionnelle

education:
- schoolName: IG2I - Centrale
schoolLogo: images/centrale-lille-logo.webp
Expand Down
8 changes: 8 additions & 0 deletions docs/readthedocs/getting-started/generate-cv.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ You can automatically regenerate your CV when updating either the YAML file or t
cvwonder generate --input=cv.yml --output=generated/ --watch
```

??? info "Only on supported themes"

The watch feature is available on themes that have included the `livereload.js` script.

```html
<script src="http://localhost:35729/livereload.js"></script>
```

## Serve the generated CV

You can render and serve your CV on a simple HTTP server which will automatically refresh the page when updating either the YAML file or the theme.
Expand Down
24 changes: 24 additions & 0 deletions docs/readthedocs/getting-started/write-cv.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,30 @@ The certifications section is used to describe the certifications you have.
badge: images/aws-certified-solutions-architect-associate.png
```

### Languages

The languages section is used to describe the languages you speak.

| Field | Description |
| --- | --- |
| Name | The name of the language. |
| Level | The level of the language. |

??? example "Example"

Add your languages in the languages section:

```yaml
languages:
- name: French
level: Native
- name: English
level: Fluent
```

!!! abstract "Level"
The `Level` field is a text field. It represents your level of the language in the way that you want to show.

### Education

The education section is used to describe your school and education.
Expand Down
21 changes: 21 additions & 0 deletions docs/readthedocs/themes/library.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
hide:
- toc
---
# Themes library

Here is a non-exhaustive list of themes available for CVWonder.

| Theme | Description | Author | Link |
|-------|-------------|--------|------|
| Default | A default theme for CVWonder | [Germain LEFEBVRE](https://github.com/germainlefebvre4) | [cvwonder-theme-default](https://github.com/germainlefebvre4/cvwonder-theme-default) |
| Basic | A basic theme for CVWonder | [Germain LEFEBVRE](https://github.com/germainlefebvre4) | [cvwonder-theme-basic](https://github.com/germainlefebvre4/cvwonder-theme-basic) |

Share your theme with the community by following the [Publish theme](publish-theme.md) section.

## Discover more themes

Look for CVWonder themes on Github based on the Search and Topics.

* [Keyword](https://github.com/search?q=cvwonder-theme-&type=repositories){:target="_blank"}: `cvwonder-theme-`
* [Topic](https://github.com/topics/cvwonder-theme){:target="_blank"}: `cvwonder-theme`
1 change: 0 additions & 1 deletion docs/readthedocs/themes/publish-theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,3 @@ git push origin main
This will probably change in the future.

If you want to use another hosting platform, please open an issue on the [Github repository](https://github.com/germainlefebvre4/cvwonder/issues).

0 comments on commit 7e2610c

Please sign in to comment.