@gouvfr/dsfr-roller 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gouvfr/dsfr-roller",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Le module `dsfr-roller` permet de publier le site de documentation du Système de Design de l’État - DSFR",
5
5
  "keywords": [
6
6
  "Système de Design de l'État",
@@ -48,13 +48,15 @@
48
48
  "files": [
49
49
  "index.js",
50
50
  "src",
51
+ "static",
52
+ "env",
51
53
  "legal",
52
54
  "SECURITY.md",
53
55
  "LICENSE.md"
54
56
  ],
55
57
  "main": "./index.js",
56
58
  "dependencies": {
57
- "@gouvfr/dsfr-forge": "=1.0.5",
59
+ "@gouvfr/dsfr-forge": "=1.0.7",
58
60
  "@gouvfr/dsfr-publisher": "npm:@gouvfr/dsfr@1.13.1",
59
61
  "deepmerge": "^4.3.1",
60
62
  "ejs": "^3.1.10",
@@ -46,6 +46,7 @@ class Sidemenu extends Component {
46
46
  label: menu.label ?? menu.text,
47
47
  href: menu.url,
48
48
  active: menu.isCurrent,
49
+ isExpanded: menu.isCurrent,
49
50
  items: menu.items.map(item => this._formatItem(item))
50
51
  }
51
52
  }
@@ -5,12 +5,24 @@ import path from 'path'
5
5
  import fs from 'fs'
6
6
 
7
7
  class Bundler {
8
- constructor (dest) {
8
+ constructor (dest, env) {
9
9
  this._dest = dest;
10
+ this._env = env;
10
11
  }
11
12
 
12
- async copy () {
13
+ async copy (context = 'local') {
13
14
  await copyDir(path.join(ROLLER_MODULE, 'static'), path.join(this._dest, 'static'));
15
+
16
+ switch (context) {
17
+ case 'archive':
18
+ await copyDir(path.join(ROLLER_MODULE, 'env'), this._env);
19
+ break;
20
+
21
+ case 'local':
22
+ default:
23
+ await copyDir(path.join(ROLLER_MODULE, 'env/local'), this._dest);
24
+ break;
25
+ }
14
26
  }
15
27
 
16
28
  async compile () {
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M24 12L18.3431 17.6569L16.9289 16.2426L21.1716 12L16.9289 7.75736L18.3431 6.34315L24 12ZM2.82843 12L7.07107 16.2426L5.65685 17.6569L0 12L5.65685 6.34315L7.07107 7.75736L2.82843 12ZM9.78845 21H7.66009L14.2116 3H16.3399L9.78845 21Z"></path></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M15.936 2.50098L21.501 8.06595V15.936L15.936 21.501H8.06595L2.50098 15.936V8.06595L8.06595 2.50098H15.936ZM15.1076 4.50098H8.89437L4.50098 8.89437V15.1076L8.89437 19.501H15.1076L19.501 15.1076V8.89437L15.1076 4.50098ZM11.0002 15.0002H13.0002V17.0002H11.0002V15.0002ZM11.0002 7.00024H13.0002V13.0002H11.0002V7.00024Z"></path></svg>