Skip to content

Commit

Permalink
chore(website): Using the existing ECL_VERSION to dynamically refer t…
Browse files Browse the repository at this point in the history
…o the proper url of the CDN
  • Loading branch information
planctus committed Oct 29, 2024
1 parent cd4e9ff commit d0efb4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/website/src/pages/ec/getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ There are also other optional css files distributed that can be used, pikaday is
ECL is also distributing its presets on a CDN, all the files distributed in the package mentioned before are also available there, this is the pattern to reach them:
`https://cdn{1,2,3 or 4}.fpfis.tech.ec.europa.eu/ecl/{tag}/{system}/{path/to/the/asset}`

Ex: https://cdn1.fpfis.tech.ec.europa.eu/ecl/v3.9.1/ec/styles/optional/ecl-ec-default.css
Ex: https://cdn1.fpfis.tech.ec.europa.eu/ecl/{process.env.ECL_VERSION}/ec/styles/optional/ecl-ec-default.css

Download a `preset-ec` package from the release page to see all the files available so to know how to reach them in the CDN, the file system is the same.

Expand Down
2 changes: 1 addition & 1 deletion src/website/src/pages/eu/getting-started/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ There are also other optional css files distributed that can be used, moment.js
ECL is also distributing its presets on a CDN, all the files distributed in the package mentioned before are also available in the CDN, this is the pattern to reach them:
`https://cdn{1,2,3 or 4}.fpfis.tech.ec.europa.eu/ecl/{tag}/{system}/{path/to/the/asset}`

Ex: https://cdn1.fpfis.tech.ec.europa.eu/ecl/v3.9.1/eu/styles/optional/ecl-eu-default.css
Ex: https://cdn1.fpfis.tech.ec.europa.eu/ecl/{process.env.ECL_VERSION}/eu/styles/optional/ecl-eu-default.css

Download a `preset-eu` package to see all the files available to know how to reach them in the CDN, the file system is the same.

Expand Down

0 comments on commit d0efb4a

Please sign in to comment.