Skip to content

Add initial site template#333

Draft
gyro2009 wants to merge 1 commit into
mainfrom
11ty-display
Draft

Add initial site template#333
gyro2009 wants to merge 1 commit into
mainfrom
11ty-display

Conversation

@gyro2009

Copy link
Copy Markdown
Contributor

This pull request introduces a full Eleventy-based static site generator setup for documentation, including configuration, layout, navigation, and styling. The main changes establish Eleventy as the build system, provide a custom navigation sidebar grouped by documentation sections, and apply UKHO branding and styling.

Eleventy configuration and build setup:

  • Added eleventy.config.js with custom configuration: integrates the @11ty/eleventy-img plugin, defines filters (like prettyTitle), passthrough copy for static assets, and collections for docs grouped by section. Also sets global site data and computed properties for page titles and permalinks.
  • Updated package.json to add Eleventy and @11ty/eleventy-img as dependencies, set module type, and include a serve script for local development.

Layout and navigation:

  • Added a new base layout template (static/_layouts/base.njk) that structures the HTML, includes UKHO/Admiralty branding, and implements a sidebar navigation grouped by documentation section using the new Eleventy collections.

Styling:

  • Introduced a basic CSS file (static/assets/css/site.css) to handle page layout, flexbox structure, and content padding.

@snyk-io-eu

snyk-io-eu Bot commented Jun 10, 2026

Copy link
Copy Markdown

⚠️ Snyk checks are incomplete.

Status Scan Engine Critical High Medium Low Total (8)
⚠️ Open Source Security 0 0 0 0 See details
⚠️ Licenses 0 0 8 0 See details

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant