Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
215 commits
Select commit Hold shift + click to select a range
56157ca
remove fixed col for ods-table -> FF bug, need to wait for fix
fpassaniti Aug 9, 2021
65c0512
Fix KPI generator :
fpassaniti Aug 9, 2021
821f3d0
icons + deploy
fpassaniti Aug 9, 2021
c744e3f
add SVG inlined and sprite
fpassaniti Aug 10, 2021
6914119
Add Remix Icon (ODS product choice)
fpassaniti Aug 11, 2021
9fceaff
New resource : ods-adv-analysis
fpassaniti Aug 12, 2021
ec6e0c1
Listing generator V2.2
fpassaniti Aug 13, 2021
bcd3337
Merge branch 'icons'
fpassaniti Aug 13, 2021
1c989f1
Components/Icons
fpassaniti Aug 13, 2021
281885b
Fix material cards (#66)
etienneburdet Aug 25, 2021
e39f8eb
Switched titles (#67)
etienneburdet Aug 30, 2021
fe65dee
Fix automatic exports in monitoring dashboard with new data (#68)
etienneburdet Aug 30, 2021
f81c281
build site (#69)
etienneburdet Sep 1, 2021
86171a9
build site
etienneburdet Sep 2, 2021
5e3a610
Add build and PR script
etienneburdet Sep 2, 2021
1c27705
Add ressource with sub-aggregation.
etienneburdet Sep 2, 2021
260ea94
Merge branch 'master' into pr-65/opendatasoft/ods-adv-analysis
etienneburdet Sep 2, 2021
6b56918
Remove useless "as x"
etienneburdet Sep 6, 2021
bc110e7
ods-adv-analysis
fpassaniti Sep 8, 2021
b00535a
Merge pull request #65 from opendatasoft/ods-adv-analysis
fpassaniti Sep 8, 2021
aa69b2d
redeploy
fpassaniti Sep 8, 2021
00a06a2
redeploy again
fpassaniti Sep 8, 2021
0436427
ajotu d'un overflow-x
fpassaniti Sep 13, 2021
8fea969
fix description et deploy
fpassaniti Sep 13, 2021
ccee402
Merge pull request #71 from opendatasoft/fix-flip-kpi
fpassaniti Sep 13, 2021
d6e44ea
Fix code for all examples (#72)
manondravet Sep 15, 2021
bbd47c9
Age pyramid (#70)
manondravet Sep 15, 2021
d5be2b5
Update portal theme archetype
etienneburdet Sep 22, 2021
b5e621c
fix irregular white space
etienneburdet Sep 22, 2021
f64e042
del portal-theme test
fpassaniti Sep 22, 2021
9deb931
Merge pull request #73 from opendatasoft/portal-archetype
manondravet Sep 22, 2021
dd456d9
Add "show data schema" feature
fpassaniti Sep 30, 2021
f73aee4
Merge branch 'portal-archetype'
fpassaniti Sep 30, 2021
b70da97
deploy
fpassaniti Sep 30, 2021
6d57aac
Add accessibility to show code and show schema tabs
fpassaniti Oct 1, 2021
f47d9af
missing js
fpassaniti Oct 1, 2021
f0714b8
fix show-code for generators also
fpassaniti Oct 5, 2021
f8e4abb
data schema on animation, age pyramid css, age pyramid vegalite, char…
manondravet Oct 27, 2021
c2e4cf6
change datasets of charts ressource to put everything on userclub domain
manondravet Oct 28, 2021
562b039
data schema on chart drilldowns
manondravet Oct 29, 2021
3e86ed5
added warning on filter-as-list
manondravet Oct 29, 2021
58ab56f
dataschema on heatmaps-custom and heatmaps-vegalite
manondravet Nov 3, 2021
a541366
dataschema on ods-adv-analysis and ods-aggregation
manondravet Nov 3, 2021
3abbdb4
dataschema on ods-analysis
manondravet Nov 3, 2021
16afd67
show data schema on ods-chart css hacks, ods-chart custom css, ods-co…
manondravet Nov 24, 2021
390095b
fix error on dataset name and domain
manondravet Nov 24, 2021
0cf7131
delete css fix for ods-legend
manondravet Nov 24, 2021
10b030a
data schema on date-range-slider
manondravet Nov 24, 2021
1cbeb17
data schema for ods-maps-css
manondravet Nov 24, 2021
31787bc
update for userclub domain
manondravet Nov 24, 2021
37dbfb9
wrong fieldid for rapworld
manondravet Nov 24, 2021
11b455b
genschema.js
fpassaniti Nov 30, 2021
b1fc0fb
ods-map-tricks
manondravet Dec 13, 2021
c2e9eef
ods-results
manondravet Dec 13, 2021
b666319
genschema.js
fpassaniti Dec 13, 2021
e3e81f7
Merge remote-tracking branch 'origin/dataschema-widget' into datasche…
fpassaniti Dec 13, 2021
070d5ff
ods-results
manondravet Dec 13, 2021
c6d6113
ods-simple-tabs
manondravet Dec 13, 2021
d1fa965
share-print
manondravet Dec 13, 2021
4821e26
svg-maps
manondravet Dec 13, 2021
120b9d5
Première passe de schéma pour Composants, Custom-views, Generator et …
fpassaniti Dec 13, 2021
d803142
Merge remote-tracking branch 'origin/dataschema-widget' into datasche…
fpassaniti Dec 13, 2021
b0b7544
Build et deploy !
fpassaniti Dec 14, 2021
0a68633
Merge pull request #74 from opendatasoft/dataschema-widget
fpassaniti Dec 14, 2021
c3c5f00
ods-map-tricks
manondravet Dec 13, 2021
6c6aa8c
ods-results
manondravet Dec 13, 2021
c57643c
Première passe de schéma pour Composants, Custom-views, Generator et …
fpassaniti Dec 13, 2021
0dc9ec9
ods-results
manondravet Dec 13, 2021
35c9aec
ods-simple-tabs
manondravet Dec 13, 2021
5982de4
share-print
manondravet Dec 13, 2021
3d5b423
svg-maps
manondravet Dec 13, 2021
22aa7d5
Build et deploy !
fpassaniti Dec 14, 2021
104c87a
listing gen v3
fpassaniti Jan 4, 2022
8e94d3e
listing gen v3 + deploy
fpassaniti Jan 4, 2022
de2bae1
Merge remote-tracking branch 'origin/master' into listing-gen-v3
fpassaniti Jan 4, 2022
42c1cf2
1ere version avec listing classic
manondravet Jan 5, 2022
b2736ef
ajout version map
manondravet Jan 5, 2022
87c3301
dataschema
manondravet Jan 5, 2022
cd46c6c
style index.md
manondravet Jan 5, 2022
9744342
correction index.md
manondravet Jan 5, 2022
c1dd02f
add date + deploy
fpassaniti Jan 7, 2022
efa5a9e
Merge pull request #76 from opendatasoft/listing-page
fpassaniti Jan 7, 2022
c9d9744
Dedicated page for listing generator documentation
fpassaniti Jan 19, 2022
6e04b12
premiere version
manondravet Jan 20, 2022
c58a979
New version, with doc and change log bellow code examples
fpassaniti Jan 21, 2022
ad8fabd
3 styles
manondravet Jan 24, 2022
2a7b283
clean code
manondravet Jan 24, 2022
cab9da2
Minor adjust. + deploy
fpassaniti Jan 25, 2022
6871469
fix date + resource height + deploy
fpassaniti Jan 25, 2022
f08e189
Merge pull request #78 from opendatasoft/toggle-actif
fpassaniti Jan 25, 2022
5469dad
Merge remote-tracking branch 'origin/listinggen-doc' into listing-gen-v3
fpassaniti Feb 10, 2022
1263ca4
final + deploy
fpassaniti Feb 10, 2022
0a0b33a
merge master + deploy
fpassaniti Feb 10, 2022
3ac6558
Merge remote-tracking branch 'origin/master' into listing-gen-v3
fpassaniti Feb 10, 2022
ca3cda3
merge master + deploy
fpassaniti Feb 10, 2022
0dbe125
minor review fixes + deploy
fpassaniti Feb 14, 2022
4eaab97
Merge pull request #75 from opendatasoft/listing-gen-v3
fpassaniti Feb 14, 2022
229bbc2
premiere version code
manondravet Feb 15, 2022
85f3f04
style et disabled
manondravet Feb 15, 2022
9c993e6
correction filtres communes disabled
manondravet Feb 16, 2022
2f9f9ed
change ods-analysis by ods-adv-analysis
manondravet Feb 21, 2022
1c0f5db
schema + note
manondravet Feb 21, 2022
4078347
fix code ods-adv-analysis
manondravet Feb 28, 2022
68bec8c
minor review fixes + deploy
fpassaniti Mar 2, 2022
75d3bee
Merge remote-tracking branch 'origin/master' into select-cascade
fpassaniti Mar 3, 2022
78e1c78
proposition d'opti et réorga du code
fpassaniti Mar 3, 2022
0777542
style of clear filter + explainations
manondravet Mar 8, 2022
818147a
+ deploy
fpassaniti Mar 9, 2022
9139b6a
Add custom views in algolia index
fpassaniti Mar 10, 2022
ed1f4bf
fix domain datasets doc link
fpassaniti Mar 10, 2022
6429fd4
premiers essai map + refine + aggreg
fpassaniti Mar 11, 2022
e42bc47
fix CV generator config
fpassaniti Mar 14, 2022
f35cfab
Merge pull request #79 from opendatasoft/select-cascade
manondravet Mar 15, 2022
d112060
exemple avec #search
manondravet Mar 16, 2022
74793be
schema
manondravet Mar 16, 2022
cfbf0b5
change example dataset
manondravet Mar 24, 2022
4e76af0
schema + desc
manondravet Mar 24, 2022
9ab931a
description + deploy
fpassaniti Mar 30, 2022
471d26f
first version with code
manondravet Mar 30, 2022
e9b05e3
ajout description
manondravet Mar 30, 2022
73ec9a9
feedbacks + deploy
fpassaniti Mar 30, 2022
23b7e31
.schema
fpassaniti Mar 30, 2022
0e456e2
.schema
fpassaniti Mar 30, 2022
013dba9
quelques modif :blush:
fpassaniti Mar 30, 2022
c228dd3
fix debounce
fpassaniti Mar 30, 2022
8b718c9
Merge remote-tracking branch 'origin/master' into map-refine-aggregation
fpassaniti Mar 30, 2022
9e2e1fd
Merge pull request #80 from opendatasoft/map-refine-aggregation
fpassaniti Mar 30, 2022
f36a5b3
fix dates for new resources
fpassaniti Mar 30, 2022
efd0aa1
fix flex layout + deploy
fpassaniti Mar 30, 2022
1ba0ca3
ajout schema
manondravet Mar 31, 2022
d42f2dd
derniers checks code
manondravet Mar 31, 2022
c59651e
modif description ressource
manondravet Mar 31, 2022
149cc5d
derniere modif description
manondravet Mar 31, 2022
6a88672
Merge remote-tracking branch 'origin/master' into comparaison-generator
fpassaniti Apr 1, 2022
3218a49
deploy listing gen
fpassaniti Apr 1, 2022
c25c1dc
Merge pull request #82 from opendatasoft/comparaison-generator
fpassaniti Apr 1, 2022
1c1fe9a
Merge remote-tracking branch 'origin/master' into search-update
fpassaniti Apr 1, 2022
8aaebfa
deploy
fpassaniti Apr 1, 2022
5756b96
Merge pull request #81 from opendatasoft/search-update
fpassaniti Apr 1, 2022
dfe47f9
fix imagePosition scope issue
fpassaniti May 9, 2022
04671ee
Merge remote-tracking branch 'origin/master'
fpassaniti May 9, 2022
3a91e59
3 premieres cards
manondravet May 24, 2022
7c684af
ajout version light
manondravet May 24, 2022
aa78a13
css cleaning
manondravet May 24, 2022
3166c7f
derniers fix et alignements css
manondravet May 24, 2022
8d2ded3
clean structure
manondravet May 24, 2022
5f7b14e
fix side effect with 1 out of 5 hide labels
fpassaniti Jun 1, 2022
e206aad
correction suite feedbacks
manondravet Jun 3, 2022
f2ea004
feedbacks 2e partie
manondravet Jun 3, 2022
8776ca1
Merge branch 'master' into access-card
fpassaniti Jun 8, 2022
0b0fb7a
final check and deploy
fpassaniti Jun 8, 2022
486fa55
Merge pull request #83 from opendatasoft/access-card
fpassaniti Jun 8, 2022
016b0e7
premiere version
manondravet Jun 29, 2022
872e849
suppr dataviz
manondravet Jun 29, 2022
14196b5
correction commentaires
manondravet Jun 29, 2022
a222aca
review commentaires pour qu'ils soient pareils que ceux déjà en place…
manondravet Jun 29, 2022
c000bf6
précisions commentaires
manondravet Jun 29, 2022
c106c97
proposition
fpassaniti Jun 30, 2022
635fc28
deploy
fpassaniti Jul 15, 2022
a038838
Merge pull request #84 from opendatasoft/page-accesscards
fpassaniti Jul 15, 2022
c16eb69
Apply new Help center branding
NTerpo Oct 13, 2022
b370ea1
deploy
fpassaniti Oct 28, 2022
cef51bb
Merge pull request #85 from opendatasoft/feature/sc-35723/re-brand-he…
fpassaniti Oct 28, 2022
719feb4
fix erreur algolia
manondravet Dec 20, 2022
9099490
add example with ods-adv-analysis
manondravet Dec 20, 2022
044220f
ajout exemples agg multiples
manondravet Dec 20, 2022
9ead0b1
ajout data schema
manondravet Dec 20, 2022
238e6ed
fix ressource print cassé (dataset deleted)
manondravet Dec 21, 2022
023d1cb
deploy
manondravet Dec 21, 2022
e0d7054
Update header with new userguide and favicon
NTerpo Jan 11, 2023
75c9433
all good, merci @terpo
fpassaniti Feb 9, 2023
38e65ef
Merge pull request #87 from opendatasoft/feature/sc-37957/add-new-use…
fpassaniti Feb 9, 2023
e912cf3
Merge remote-tracking branch 'origin/master' into kpi-adv-analysis
fpassaniti Feb 9, 2023
8448c53
all good, deploy
fpassaniti Feb 9, 2023
e21dd02
Merge pull request #86 from opendatasoft/kpi-adv-analysis
fpassaniti Feb 9, 2023
35d03e8
ajout template dataviz gallery
manondravet Mar 17, 2023
476dd93
deploy
manondravet Mar 17, 2023
eba77a4
Merge pull request #88 from opendatasoft/dataviz-gallery
fpassaniti Mar 20, 2023
a79b68e
Fix changement d'id et de schéma du jeu openagenda sur userclub
fpassaniti Mar 28, 2023
6b4fc70
squelette template
manondravet May 23, 2023
2c62772
exemple avec un seul contexte
manondravet May 29, 2023
e609ad3
dashboard with multiple contexts
manondravet May 29, 2023
20b6ca6
ajout 2eme exemples multi contextes
manondravet May 30, 2023
e68f871
ajustements
manondravet May 30, 2023
799a99d
changement dataset car données NOK
manondravet Jun 13, 2023
b74b18a
changement comptes en moyenne
manondravet Jun 13, 2023
fd728f6
ajout schema
manondravet Jun 13, 2023
0d1544a
commentaire et adaptation index.md
manondravet Jun 13, 2023
a312f0b
commentaire exemple 1
manondravet Jun 13, 2023
4450b19
changement icones
manondravet Jun 13, 2023
6614280
mise à jour schema template 1
manondravet Jun 15, 2023
6c9250b
clean css + modif dataset region et dep
manondravet Jul 17, 2023
cf84bf4
deploy
fpassaniti Aug 9, 2023
022cef7
Merge pull request #89 from opendatasoft/dashboard-filter
fpassaniti Aug 9, 2023
d5c895a
première version basique
fpassaniti Aug 10, 2023
cd8cf38
TODO: fiche à nettoyer
fpassaniti Aug 11, 2023
9a37c48
+ Apps
fpassaniti Sep 5, 2023
479233f
+ some apps
fpassaniti Sep 5, 2023
0d4d4de
+ some apps
fpassaniti Sep 5, 2023
4e3f260
+ some apps
fpassaniti Sep 5, 2023
43f2dd3
Hide vegalite resources
fpassaniti Sep 5, 2023
38b2468
apps + remove vegalite + deploy
fpassaniti Sep 5, 2023
6977c54
hide temporary resource advanced-search
fpassaniti Sep 5, 2023
dc98ee8
hide temporary resource advanced-search
fpassaniti Sep 5, 2023
23dc342
remove vega-lite ref. from CSS grid resources
fpassaniti Sep 5, 2023
67aa9d2
deploy
fpassaniti Sep 11, 2023
f876f23
Merge pull request #90 from opendatasoft/apps
fpassaniti Sep 11, 2023
13aab6a
fix bug search pour les ressources sans tag
fpassaniti Sep 11, 2023
3c739e8
add link to ods/kpi glossary
fpassaniti Nov 21, 2023
737bf31
keep-content=false to fix ods-table dimensions when the map is filtered
manondravet Apr 15, 2024
fb7cdde
Merge pull request #91 from opendatasoft/fix-ods-simple-tabs
manondravet Apr 16, 2024
864d92f
fix deps
fpassaniti Nov 19, 2024
a130954
rebranding
fpassaniti Sep 2, 2025
a8f9aa0
Merge pull request #93 from opendatasoft/rebranding
fpassaniti Sep 29, 2025
295ba81
Rebranding, changement des domaines ODS, et correction logo footer
fpassaniti Feb 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/package-lock.json
.env
.idea/
*.iml
*.iml
.vscode
File renamed without changes.
31 changes: 23 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This the Hugo site powering our [code library](https://codelibrary.opendatasoft.com/). The repo is mainly here for you to peak at the code. It's not intended to serve as a base for other projects. Should you have a question nevertheless, feel free to raise an issue.

### Cmds
If you want to test—and break !—the site locally:
If you want to run the site locally:

Install
```shell script
Expand All @@ -15,17 +15,16 @@ Run
hugo server -D
```

Deploy on GH Pages (if you pushed to a remote)
```shell script
hugo
git subtree push --prefix public origin gh-pages
```

Update Algolia index (see .env)
Update Algolia index (.env with private keys required, cf. 1password)
```shell script
npm run algolia
```

### To deploy

- Build (`hugo` cmd)
- git add/commit/push all the directory, but especially `/public` that contains the Code Library to deploy

### Add new Content
Using content archetype to create pages will automatically add date and title.

Expand All @@ -40,3 +39,19 @@ Add new content to an existing page:
```shell script
hugo new --kind content section/page/5 // Contents are ordered by the number of their folder
```

### Schema.md helper

To create a schema.md file automatically for a resource.
Use the helper :

```shell script
node genschema.js <domainid> <datasetid> <fields sep by ,>
```

ex:
```shell script
node genschema.js issy-les-moulineaux chrono_issy0 evenement,imagecsv,jour,mois,annee,coordonnees_geo,web
```

The expected output is a `schema.md` file in the root directory, that can be then moved to the resource.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Component 1"
date: {{ .Date }}
height: 70
external_url: "https://www.opendatasoft.com"
external_url: "https://www.huwise.com"
---

Text
File renamed without changes.
2 changes: 1 addition & 1 deletion archetypes/content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Content title"
date: {{ .Date }}
height: 70
external_url: "https://wwww.opendatasoft.com"
external_url: "https://www.huwise.com"
---

Text
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ date: {{ .Date }}
description: ""
tags: []
iframe: "https://discovery.opendatasoft.com/"
external_url: "https://discovery.opendatasoft.com/"
external_url: "https://discovery.opendatasoft.com/"
text: "#565656"
links: "#0086D6"
titles: "#000000"
Expand Down
9 changes: 9 additions & 0 deletions archetypes/portal-themes/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "My theme"
description: "A theme"
tags: []
resources:
- src: '*/'
name: folder-:counter
---

4 changes: 4 additions & 0 deletions assets/js/algolia.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@ export function initSearch() {
<p class="hit-summary">
${hit.print}
</p>
${hit._highlightResult.tags ? `
<span class="hit-tags">
Tags: ${hit._highlightResult.tags.map(tag => `${tag.value}`).join(', ')}
</span>
`
:
``}
</div>
</a>
`
Expand Down
17 changes: 11 additions & 6 deletions assets/js/show-code.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
const addToggleButton = box => {
const button = box.querySelector(".show-code .button");
const codeBox = box.querySelector(".box-code");
const addToggleButton = (box, name) => {
const button = box.querySelector(`button.show-${name}`);
const content = box.querySelector(`div.box-${name}`);

if (!button || !codeBox) { return }
if (!button || !content) { return }

button.addEventListener("click", () => {
codeBox.classList.toggle("is-hidden");
content.classList.toggle("is-hidden");
content.toggleAttribute("aria-hidden");
button.classList.toggle("is-active");
button.toggleAttribute("aria-selected");
});
};

export default () => {
const boxes = document.querySelectorAll(".box");
[...boxes].forEach(addToggleButton);
[...boxes].forEach((box) => {
addToggleButton(box, 'code');
addToggleButton(box, 'schema');
} );
};
98 changes: 98 additions & 0 deletions assets/scss/components/hubpost.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/* Bulma override / fix conflict */
.input {
padding: 0;
border: none;
box-shadow: none;
margin-right: 1em !important;
}

.input:active, .input:focus {
border: none;
box-shadow: none;
}

select {
height: 100%;
}

/***/

.hs-form {
margin: auto;
max-width: 500px;
}

div.hs-form-field {
padding: 10px 0 10px 0;
}

.hs-form input[name='firstname'], .hs-form input[name='lastname'] {
width: 100%;
}

.hs-input {
width: 100% !important;
}

.hs-form-field ul {
list-style-type: none;
padding: 0;
}

.hs-form-field > label {
color: $primary;
}

.hs-form-field ul label {
color: $danger;
font-weight: lighter;
font-size: 14px;
margin: 0;
}

.hs-form input, .hs-form textarea {
background-color: $body-background-color;
border: 1px solid $grey-light;
border-radius: 3px;
padding: 5px;
}

.hs-button {
padding: 8px 10px 8px 10px !important;
background-color: $info !important;
border: none !important;
color: white;
width: 200px;
height: 50px;
margin-top: 1em;
margin-left: auto;
margin-right: auto;
display: block;
font-weight: 500;
}

.hs-button:focus {
outline: none;
}

.hs-button:hover {
background-color: $primary !important;
cursor: pointer;
}

.submitted-message > p {
text-align: center;
color: $info;
font-weight: 500;
font-size: 20px;
}

.submitted-message > p:before {
content: "icon";
text-indent: -999em;
display: block;
width: 120px;
height: 120px;
background: url("/static/img/form_icon_success.svg") no-repeat;
margin: 0 auto 20px auto;
}
Loading