Skip to content

Commit a408cc9

Browse files
Ajoute bouton suggérer modification (#347)
* test * Automated changes * Automated changes * comments * Automated changes * Automated changes * cgabge version * Automated changes * Automated changes * option là * rm giscus * Automated changes * Automated changes * retour giscus * commentable * Automated changes * Automated changes * retour custom * Automated changes * Automated changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 9000723 commit a408cc9

File tree

10 files changed

+55
-16
lines changed

10 files changed

+55
-16
lines changed

_quarto.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ format:
2020

2121
#bibliography: references.bib
2222

23+
commentable: true

config/_default/config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,9 @@ markup:
9090
tableOfContents:
9191
startLevel: 1
9292
endLevel: 2
93+
94+
cascade:
95+
# Configure blog posts
96+
- _target:
97+
path: /content/**
98+
commentable: true

config/_default/params.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ locale:
5858
time_format: '3:04 PM'
5959

6060
# Site features
61+
commentable: true
6162

6263
features:
6364
syntax_highlighter:
@@ -77,12 +78,17 @@ features:
7778
content_dir: content
7879
branch: master
7980
comment:
80-
provider: ''
81-
disqus:
82-
shortname: ''
83-
show_count: true
84-
commento:
85-
url: ''
81+
# Choose a provider: giscus, disqus, commento, or '' to disable commenting
82+
provider: 'giscus'
83+
commentable: true
84+
giscus:
85+
repo: 'linogaliana/python-datascientist'
86+
repo_id: 'MDEwOlJlcG9zaXRvcnkyODAxNjE2Nzc='
87+
category: 'Q&A'
88+
category_id: 'DIC_kwDOELLtjc4B-5TY'
89+
theme: preferred_color_scheme
90+
language_code: en
91+
mapping: pathname
8692
search:
8793
provider: wowchemy
8894
algolia:

content/course/NLP/_index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,8 @@ de dire que sémantiquement `Homme` et `Femme` sont proches.
4444

4545
## Contenu de la partie
4646

47-
{{< list_children >}}
47+
{{< list_children >}}
48+
49+
## Pour aller plus loin
50+
51+
- [Cours sur `HuggingFace`](https://huggingface.co/course/chapter1/2?fw=pt)

content/course/manipulation/01_numpy/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ np.var(Y)
193193

194194
### Logique dans le cas d'un array unidimensionnel
195195

196-
La structure la plus simple imaginable est l'_array_ unidimensionnel:
196+
La structure la plus simple est l'_array_ unidimensionnel:
197197

198198
```{python}
199199
x = np.arange(10)

dev-scripts/set-up.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
#!/bin/bash
22

33
# Install recent go version
4-
GO_VERSION="1.19.2"
4+
GO_VERSION="1.19.5"
55
wget https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz -O go.tar.gz && \
66
sudo rm -rf /usr/local/go && \
77
sudo tar -C /usr/local -xzf go.tar.gz && \
88
sudo rm go.tar.gz
99
echo "PATH=$PATH:/usr/local/go/bin" >> $HOME/.bashrc
1010

1111
# Install hugo
12-
HUGO_VERSION="0.97.3"
13-
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.deb -O hugo.deb && \
14-
sudo dpkg -i hugo.deb && \
15-
sudo rm hugo.deb
12+
HUGO_VERSION="0.110.0"
13+
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb && \
14+
sudo apt install "./hugo_extended_${HUGO_VERSION}_linux-amd64.deb" && \
15+
rm -f hugo_extended_${HUGO_VERSION}_linux-amd64.deb
1616

1717
# Install quarto
1818
QUARTO_VERSION="1.1.251"

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module github.com/wowchemy/starter-hugo-online-course
22

3-
go 1.15
3+
go 1.19
44

55
require (
66
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify v1.0.0 // indirect
77
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms v1.0.0 // indirect
8-
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5 v5.6.0 // indirect
8+
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5 v5.7.0 // indirect
99
)

layouts/partials/comments/giscus.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{ if site.Params.features.comment.giscus }}
2+
<script src="https://giscus.app/client.js"
3+
data-repo="{{site.Params.features.comment.giscus.repo}}"
4+
data-repo-id="{{site.Params.features.comment.giscus.repo_id}}"
5+
data-category="{{site.Params.features.comment.giscus.category}}"
6+
data-category-id="{{site.Params.features.comment.giscus.category_id}}"
7+
data-mapping="{{site.Params.features.comment.giscus.mapping}}"
8+
data-reactions-enabled="{{site.Params.features.comment.giscus.reactions_enabled}}"
9+
data-theme="{{site.Params.features.comment.giscus.theme}}"
10+
crossorigin="anonymous"
11+
async>
12+
</script>
13+
<noscript>Please enable JavaScript to view the comments powered by giscus.</noscript>
14+
{{ end }}

layouts/partials/hooks/body-end/custom.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@
1919
</script>
2020
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
2121
<script type="text/javascript" id="MathJax-script" async
22-
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
22+
src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
23+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<center>
2+
<a target="_blank" rel="noopener noreferrer nofollow" href="https://github.com/linogaliana/python-datascientist/edit/main/content/{{ .File.Path }}">
3+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="173" height="20" role="img" aria-label="Proposer une modification"><title>Proposer une modification</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="173" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="0" height="20" fill="#555"/><rect x="0" width="173" height="20" fill="#6886bb"/><rect width="173" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><image x="5" y="3" width="14" height="14" xlink:href="data:image/svg+xml;base64,PHN2ZyBmaWxsPSJ3aGl0ZXNtb2tlIiByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+R2l0SHViPC90aXRsZT48cGF0aCBkPSJNMTIgLjI5N2MtNi42MyAwLTEyIDUuMzczLTEyIDEyIDAgNS4zMDMgMy40MzggOS44IDguMjA1IDExLjM4NS42LjExMy44Mi0uMjU4LjgyLS41NzcgMC0uMjg1LS4wMS0xLjA0LS4wMTUtMi4wNC0zLjMzOC43MjQtNC4wNDItMS42MS00LjA0Mi0xLjYxQzQuNDIyIDE4LjA3IDMuNjMzIDE3LjcgMy42MzMgMTcuN2MtMS4wODctLjc0NC4wODQtLjcyOS4wODQtLjcyOSAxLjIwNS4wODQgMS44MzggMS4yMzYgMS44MzggMS4yMzYgMS4wNyAxLjgzNSAyLjgwOSAxLjMwNSAzLjQ5NS45OTguMTA4LS43NzYuNDE3LTEuMzA1Ljc2LTEuNjA1LTIuNjY1LS4zLTUuNDY2LTEuMzMyLTUuNDY2LTUuOTMgMC0xLjMxLjQ2NS0yLjM4IDEuMjM1LTMuMjItLjEzNS0uMzAzLS41NC0xLjUyMy4xMDUtMy4xNzYgMCAwIDEuMDA1LS4zMjIgMy4zIDEuMjMuOTYtLjI2NyAxLjk4LS4zOTkgMy0uNDA1IDEuMDIuMDA2IDIuMDQuMTM4IDMgLjQwNSAyLjI4LTEuNTUyIDMuMjg1LTEuMjMgMy4yODUtMS4yMy42NDUgMS42NTMuMjQgMi44NzMuMTIgMy4xNzYuNzY1Ljg0IDEuMjMgMS45MSAxLjIzIDMuMjIgMCA0LjYxLTIuODA1IDUuNjI1LTUuNDc1IDUuOTIuNDIuMzYuODEgMS4wOTYuODEgMi4yMiAwIDEuNjA2LS4wMTUgMi44OTYtLjAxNSAzLjI4NiAwIC4zMTUuMjEuNjkuODI1LjU3QzIwLjU2NSAyMi4wOTIgMjQgMTcuNTkyIDI0IDEyLjI5N2MwLTYuNjI3LTUuMzczLTEyLTEyLTEyIi8+PC9zdmc+"/><text aria-hidden="true" x="955" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="1450">Proposer une modification</text><text x="955" y="140" transform="scale(.1)" fill="#fff" textLength="1450">Proposer une modification</text></g></svg>
4+
</a>
5+
</center>
6+
7+

0 commit comments

Comments
 (0)