Skip to content

Commit da4556a

Browse files
Update to bring nhsuk stylesheet dependency within the project (#4)
1 parent 45d276d commit da4556a

38 files changed

+67
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ out
55
*.md_
66
.vscode
77
bin
8+
.DS_Store

src/main/kotlin/nl/avisi/structurizr/site/generatr/site/SiteGenerator.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import java.util.concurrent.ConcurrentHashMap
1616

1717
fun copySiteWideAssets(exportDir: File) {
1818
copySiteWideAsset(exportDir, "/css/style.css")
19+
copySiteWideAsset(exportDir, "/nhsuk-frontend-9.6.3/css/nhsuk-9.6.3.min.css")
20+
copySiteWideAsset(exportDir, "/nhsuk-frontend-9.6.3/js/nhsuk-9.6.3.min.js")
1921
copySiteWideAsset(exportDir, "/js/header.js")
2022
copySiteWideAsset(exportDir, "/js/svg-modal.js")
2123
copySiteWideAsset(exportDir, "/js/modal.js")

src/main/kotlin/nl/avisi/structurizr/site/generatr/site/views/Page.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ private fun HTML.headFragment(viewModel: PageViewModel) {
2727
meta(name = "viewport", content = "width=device-width, initial-scale=1")
2828
title { +viewModel.pageTitle }
2929
link(rel = "stylesheet", href = viewModel.cdn.bulmaCss())
30-
link(rel = "stylesheet", href = "https://service-manual.nhs.uk/css/main.css")
30+
link(rel = "stylesheet", href = "../" + "/nhsuk-9.6.3.min.css".asUrlToFile(viewModel.url))
31+
link(rel = "stylesheet", href = "../" + "/style.css".asUrlToFile(viewModel.url))
3132
link(rel = "stylesheet", href = "../" + "/style.css".asUrlToFile(viewModel.url))
3233
link(rel = "stylesheet", href = "./" + "/style-branding.css".asUrlToFile(viewModel.url))
3334
script(type = ScriptType.textJavaScript, src = "../" + "/modal.js".asUrlToFile(viewModel.url)) { }
35+
script(type = ScriptType.textJavaScript, src = "../" + "/modal.js".asUrlToFile(viewModel.url)) { }
3436
script(type = ScriptType.textJavaScript, src = "../" + "/svg-modal.js".asUrlToFile(viewModel.url)) { }
3537
script(type = ScriptType.textJavaScript, src = viewModel.cdn.svgpanzoomJs()) { }
3638

3.02 KB
Loading
3.02 KB
Loading
3.16 KB
Loading
Binary file not shown.
3.02 KB
Loading
Lines changed: 3 additions & 0 deletions
Loading
5.32 KB
Loading

0 commit comments

Comments
 (0)