Skip to content

Commit

Permalink
Dark mode and CSS improvements (#494)
Browse files Browse the repository at this point in the history
* darkly

* Dark mode

* Retour des images
  • Loading branch information
linogaliana committed Apr 24, 2024
1 parent 7306a6f commit c9f9f8a
Show file tree
Hide file tree
Showing 18 changed files with 326 additions and 402 deletions.
8 changes: 3 additions & 5 deletions _quarto-prod.yml
Expand Up @@ -73,9 +73,7 @@ website:
- sidebar:appendix
tools:
- icon: github
menu:
- text: Code source
url: https://github.com/linogaliana/python-datascientist
href: https://github.com/linogaliana/python-datascientist
comments:
giscus:
repo: linogaliana/python-datascientist
Expand Down Expand Up @@ -197,8 +195,8 @@ lightbox: auto
format:
html:
theme:
- cosmo
- custom.scss
light: [cosmo, styles/custom.scss, styles/custom-light.scss]
dark: [darkly, styles/custom.scss, styles/custom-dark.scss]
css: styles.css
toc: true
code-overflow: wrap
Expand Down
15 changes: 4 additions & 11 deletions _quarto.yml
Expand Up @@ -15,9 +15,7 @@ project:
- content/manipulation/01_numpy.qmd
- content/manipulation/02a_pandas_tutorial.qmd
- content/manipulation/02b_pandas_TP.qmd
- content/visualisation/index.qmd
- content/visualisation/matplotlib.qmd
- content/visualisation/maps.qmd
- content/modelisation/0_preprocessing.qmd

website:
title: "Python pour la data science"
Expand All @@ -40,9 +38,7 @@ website:
- sidebar:appendix
tools:
- icon: github
menu:
- text: Code source
url: https://github.com/linogaliana/python-datascientist
href: https://github.com/linogaliana/python-datascientist
comments:
giscus:
repo: linogaliana/python-datascientist
Expand Down Expand Up @@ -156,16 +152,13 @@ website:



filters:
- black-formatter

lightbox: auto

format:
html:
theme:
- cosmo
# - custom.scss
light: [cosmo, styles/custom.scss, styles/custom-light.scss]
dark: [darkly, styles/custom.scss, styles/custom-dark.scss]
css: styles.css
toc: true
code-overflow: wrap
Expand Down
2 changes: 1 addition & 1 deletion content/NLP/04_word2vec.qmd
Expand Up @@ -22,7 +22,7 @@ description: |
permet d'exploiter les structures latentes d'un texte en construisant
des _word embeddings_ (plongements de mots).
eval: false
image: featured_nlp_intro.png
image: https://minio.lab.sspcloud.fr/lgaliana/generative-art/pythonds/word_embedding.png
---

::: {.cell .markdown}
Expand Down
2 changes: 1 addition & 1 deletion content/NLP/05_exo_supp.qmd
Expand Up @@ -16,7 +16,7 @@ categories:
description: |
Des exercices supplémentaires pour pratiquer les concepts du NLP
eval: false
image: featured_intro.png
image: https://minio.lab.sspcloud.fr/lgaliana/generative-art/pythonds/word_embedding.png
---

::: {.content-visible when-format="html"}
Expand Down
2 changes: 1 addition & 1 deletion content/getting-started/03_data_analysis.qmd
Expand Up @@ -9,7 +9,7 @@ description: |
Quelques éléments pour adopter une démarche
scientifique et éthique face à un
jeu de données.
image: https://ensae-reproductibilite.github.io/website/chapters/images/polar.png
image: https://minio.lab.sspcloud.fr/lgaliana/generative-art/mise-en-prod/babypython.png
categories:
- Tutoriel
- Rappels
Expand Down
2 changes: 1 addition & 1 deletion content/getting-started/04_python_practice.qmd
Expand Up @@ -12,7 +12,7 @@ description: |
évoque quelques-unes de ces conventions.
Pour aller plus loin, un cours en 3e année
d'ENSAE est disponible [sur un autre site](https://ensae-reproductibilite.github.io/website/)
image: https://ensae-reproductibilite.github.io/website/cards/quality/snake.png
image: https://ensae-reproductibilite.github.io/website/whale.png
categories:
- Tutoriel
- Rappels
Expand Down
2 changes: 1 addition & 1 deletion content/getting-started/06_rappels_fonctions.qmd
Expand Up @@ -15,7 +15,7 @@ format:
html: default
ipynb: default
jupyter: python3
image: https://ensae-reproductibilite.github.io/website/cards/portabilite/box.png
image: https://ensae-reproductibilite.github.io/website/army.png
categories:
- Tutoriel
- Rappels
Expand Down
2 changes: 1 addition & 1 deletion content/git/index.qmd
Expand Up @@ -12,7 +12,7 @@ description: |
afin de mener des projets impliquant
du code `Python`.
type: book
image: https://ensae-reproductibilite.github.io/website/cards/git/snakedolls.jpg
image: https://ensae-reproductibilite.github.io/website/snakedolls.jpg
categories:
- Git
---
Expand Down
2 changes: 1 addition & 1 deletion content/git/introgit.qmd
Expand Up @@ -12,7 +12,7 @@ description: |
indispensable dans le domaine de la _data science_.
Ce chapitre présente quelques concepts qui seront
mis en pratique dans le suivant.
image: https://ensae-reproductibilite.github.io/website/cards/git/snakedolls.jpg
image: https://ensae-reproductibilite.github.io/website/snakedolls.jpg
---


Expand Down
4 changes: 2 additions & 2 deletions content/manipulation/02a_pandas_tutorial.qmd
Expand Up @@ -21,7 +21,7 @@ description: |
de cette volumétrie, il faudra se tourner vers d'autres solutions
(`DuckDB`, `Dask`, `Polars`, `Spark`...).
bibliography: ../../reference.bib
image: featured_pandas.png
image: https://minio.lab.sspcloud.fr/lgaliana/generative-art/pythonds/python_dict.jpg
links:
- icon: journal-text
name: Documentation Pandas
Expand Down Expand Up @@ -416,7 +416,7 @@ Cette méthode propose de nombreuses options.
::: {.cell .markdown}
```{=html}
<div class="alert alert-danger" role="alert">
<i class="fa-solid fa-triangle-exclamation"></i> Warning</h3>
<h3 class="alert-heading"><i class="fa-solid fa-triangle-exclamation"></i> Warning</h3>
```

Il faut faire attention au `display` et aux
Expand Down
2 changes: 1 addition & 1 deletion content/modelisation/6_pipeline.qmd
Expand Up @@ -18,7 +18,7 @@ description: |
appropriée pour réduire la difficulté à changer d'algorithme ou pour
faciliter la ré-application d'un code à de nouvelles données.
echo: false
image: featured.png
image: https://minio.lab.sspcloud.fr/lgaliana/generative-art/pythonds/capture/image8.png
bibliography: ../../reference.bib
---

Expand Down
2 changes: 1 addition & 1 deletion content/modern-ds/continuous_integration.qmd
Expand Up @@ -4,7 +4,7 @@ draft: false
weight: 10
slug: pythonCI
type: book
image: https://ensae-reproductibilite.github.io/website/chapters/images/whale.png
image: https://ensae-reproductibilite.github.io/website/army.png
description: Un chapitre plus avancé sur l'intégration continue
---

Expand Down

0 comments on commit c9f9f8a

Please sign in to comment.