This repo contains the Azure Health public marketing site. It is built with Eleventy for static site generation, Sass for styling, and Decap CMS (Netlify CMS) for updating content through a browser-based admin UI.
netlify.toml
)Install dependencies once your runtime matches:
npm install
Start local dev server with live reload:
npm run start
This runs sass --watch
and eleventy --serve
, serving the site at http://localhost:8080/ by default.
Build for production / Netlify deploy preview:
npm run build
Output is written to the _site
directory.
Regenerate CSS only:
npm run sass
ℹ️
npm run build
currently prints a Sass deprecation warning about globalmap-get
. It does not break the build and will be addressed when Sass 3.0 lands.
_includes/ Reusable Nunjucks templates (header, footer, etc.)
_data/ Global data fed into Eleventy & Decap CMS (`site-data.json`)
pages/ Page templates (compiled into routes like /, /refer, /patients)
scss/ Sass source; compiled into `css/style.css`
css/ Generated CSS (committed so Netlify can serve it as-is)
admin/ Decap CMS configuration (`config.yml`) and admin UI shell
js/ Front-end behaviour (currently just `app.js` for nav toggle)
netlify.toml Netlify build instructions
/admin/
and log in with your Netlify Identity account./practitioners/
/refer/
.Edits made through Decap CMS create commits in the master
branch via Git Gateway. Remember that some fields allow limited HTML (body | safe
in templates) for links or formatting.
npm run start
for a local preview while updating templates, Sass, or scripts.css/style.css
and css/style.css.map
so Netlify deploys the updated assets.npm run build
automatically.The site is configured for Netlify. Pushes to master
trigger Netlify builds using the command npm run build
, publishing the _site
directory. Environment-specific URLs are automatically handled in _data/site.js
, which swaps site.url
with Netlify preview URLs when appropriate.
_mixins.scss
to use map.get
.npm ci
to install exact lockfile versions if discrepancies persist.