Skip to content

Commit 23e80d6

Browse files
authored
Theme bump (#165)
* Theme bump
1 parent 88ea995 commit 23e80d6

15 files changed

Lines changed: 129 additions & 105 deletions

assets/css/docusaurus.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/* Custom styles for the Interactive Map docs site */
2+
3+
.app-section {
4+
padding: 40px 0;
5+
}
6+
7+
.govuk-template__body.app-homepage .govuk-template__body-inner {
8+
background-color: #f4f8fb;
9+
}
10+
11+
.app-section {
12+
background-color: #ffffff;
13+
}
14+
15+
.app-section--features {
16+
background-color: #f4f8fb;
17+
border-bottom: 1px solid #8eb8dc;
18+
}
19+
20+
.app-prose-scope .app-section--features p {
21+
@media (min-width: 40.0625em) {
22+
margin-bottom: 0 !important;
23+
}
24+
}
25+

demo/DemoMapButton.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function MapInner ({ mapStyles }) {
103103
})
104104
})
105105
}, [])
106-
return <div id='demo-map-button'></div>
106+
return <div id='demo-map-button' className='app-no-prose'></div>
107107
}
108108

109109
export default function DemoMapButton () {

demo/DemoMapInline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function MapInner ({ mapStyles }) {
113113
@media (prefers-reduced-motion: reduce) { .map-loading-dots::after { animation: none; content: '...'; } }
114114
`}</style>
115115

116-
<div id='demo-map-inline'>
116+
<div id='demo-map-inline' className='app-no-prose'>
117117
<div className='map-loading-overlay' aria-hidden='true'>
118118
Loading<span className='map-loading-dots' />
119119
</div>

docs/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The `InteractiveMap` object represents an instance of an InteractiveMap on your
66

77
You create an instance of a InteractiveMap by specifying a `container` and `options` in the `constructor`. An InteractiveMap is then initialized on the page and returns an instance of an InteractiveMap object.
88

9-
## Getting started
9+
## Getting started <!-- no-sidebar -->
1010

1111
For installation and setup instructions, see the [Getting started](./getting-started.md) guide.
1212

docs/architecture.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ At its core, it provides:
77
* A plugin system for extending functionality
88
* An abstraction layer over multiple mapping engines
99

10-
The system is designed so that **the core controls rendering and layout**, while **plugins declaratively contribute behaviour and UI.** ---
10+
The system is designed so that **the core controls rendering and layout**, while **plugins declaratively contribute behaviour and UI.**
11+
12+
---
1113

1214
## High-level Structure
1315

docs/demo.mdx renamed to docs/examples.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import DemoMapInline from '../demo/DemoMapInline.js'
22
import DemoMapButton from '../demo/DemoMapButton.js'
33

4-
# Demo
4+
# Examples
55

66
See [Getting started](getting-started) for installation and full configuration options.
77

docs/getting-started.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,4 @@ Each plugin distributes its own CSS. Import or copy only the CSS for the plugins
111111

112112
Following installation the InteractiveMap plugin will be added to your prototype. You can now create pages with a map, and configure for specific use cases.
113113

114-
See [Install and use plugins](https://prototype-kit.service.gov.uk/docs/install-and-use-plugins).
115-
116-
See [Configuring InteractiveMap in a GOVUK Prototype](./govuk-prototype.md).
114+
See [GOV.UK Prototype Kit - Install and use plugins](https://prototype-kit.service.gov.uk/docs/install-and-use-plugins).

docs/govuk-prototype.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

docs/index.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/index.mdx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import Link from '@docusaurus/Link';
2+
3+
<div className="app-section app-section--features">
4+
<div className="govuk-width-container">
5+
<div className="govuk-grid-row">
6+
<div className="govuk-grid-column-one-third">
7+
<h2>Inclusive and accessible</h2>
8+
<p>Designed for everyone, including people using touch, keyboard navigation and assistive technologies. Compliant with WCAG standards for public-facing services.</p>
9+
</div>
10+
<div className="govuk-grid-column-one-third">
11+
<h2>Consistent with GOV.UK</h2>
12+
<p>Built with the GOV.UK Design System, providing a predictable mapping interface and ensuring a consistent experience across all government services.</p>
13+
</div>
14+
<div className="govuk-grid-column-one-third">
15+
<h2>Open source and flexible</h2>
16+
<p>Open source and free from proprietary dependencies. Configurable and extensible, with plugin support and compatibility with multiple mapping libraries.</p>
17+
</div>
18+
</div>
19+
</div>
20+
</div>
21+
<div className="app-section">
22+
<div className="govuk-width-container">
23+
<div className="govuk-grid-row">
24+
<div className="govuk-grid-column-two-thirds">
25+
<h2>Documentation</h2>
26+
<h3><Link to="/getting-started" className="govuk-link">Getting Started</Link></h3>
27+
<p>How to install and configure the component. Covers setup, initialisation options, and integration with common build tools.</p>
28+
<h3><Link to="/examples" className="govuk-link">Examples</Link></h3>
29+
<p>Live interactive demos showing the component in action, including inline maps, button-triggered maps, and various configuration options.</p>
30+
<h3><Link to="/api" className="govuk-link">API Reference</Link></h3>
31+
<p>Full reference for all configuration options, events, methods, and plugin interfaces exposed by the component.</p>
32+
<h3><Link to="/plugins" className="govuk-link">Plugins</Link></h3>
33+
<p>Extend the component with built-in plugins for search, map styles, drawing tools, and more. Includes a guide to building your own.</p>
34+
<h3><Link to="/architecture" className="govuk-link">Architecture</Link></h3>
35+
<p>Technical overview of how the component is structured, including the plugin system, rendering pipeline, and integration patterns.</p>
36+
<hr className="govuk-section-break govuk-section-break--visible govuk-section-break--xl" />
37+
<h2>Support</h2>
38+
<p>For issues and feature requests, visit our <a href="https://github.com/DEFRA/interactive-map" className="govuk-link">GitHub repository</a>.</p>
39+
</div>
40+
</div>
41+
</div>
42+
</div>

0 commit comments

Comments
 (0)