A documentation site built with 11ty (Eleventy) and Web Awesome components, styled to match the Web Awesome demo page aesthetic.
npm install
npm run serve
The site will be available at http://localhost:8080
To build the static site:
npm run build
The output will be in the _site directory.
.
βββ src/ # Source files
β βββ _includes/ # Templates and layouts
β β βββ layouts/ # Layout templates
β βββ assets/ # CSS, JS, and other assets
β β βββ css/ # Stylesheets
β β βββ js/ # JavaScript files
β βββ *.html # Page files
βββ webawesome/ # Web Awesome assets (from dist-cdn)
βββ _site/ # Generated site (gitignored)
βββ .eleventy.js # 11ty configuration
βββ package.json # Dependencies and scripts
/ - Home page/getting-started - Getting started guide/colors - Color system documentation/typography - Typography guidelines/components - Component library/examples - Usage examplesCreate a new HTML file in the src/ directory with front matter:
---
layout: layouts/base.njk
title: Page Title
description: Page description
---
Your content here...
Edit src/assets/css/main.css to customize the siteβs appearance.
Web Awesome components are available throughout the site. Refer to the Web Awesome documentation for component usage.
Example:
<wa-button variant="primary">Click Me</wa-button>
<wa-card>
<h3>Card Title</h3>
<p>Card content</p>
</wa-card>
The site uses Web Awesomeβs CDN-ready distribution (dist-cdn), which doesnβt require a bundler. The assets are loaded via:
<link rel="stylesheet" href="/webawesome/styles/webawesome.css">
<script type="module" src="/webawesome/webawesome.loader.js" data-webawesome="/webawesome"></script>
MIT