Eleventy-based static site generator that creates a FAQ website for ORC WG's CRA Hub. The site consumes FAQ content from an external GitHub repository and generates a categorized FAQ website.
- Node.js
- npm
git clone https://github.com/orcwg/cra.orcwg.org.git
cd cra.orcwg.org
npm install
npm run serve
- Start development server with live reload and cache updatenpm run watch
- Watch for file changes and rebuild (no cache update)npm run build
- Build the production site with cache updatenpm run update-cache
- Manually update external content cache
This is an Eleventy site that acts as a content processor and renderer for external FAQ content rather than managing content locally.
- External Content - FAQ content is maintained in the
orcwg/cra-faq
repository - Cache Update - The
update-cache.sh
script clones/updates external content into_cache/
- Data Processing - Eleventy data files (
src/_data/*.js
) parse cached markdown files into structured data - Template Rendering - Nunjucks templates render structured data into HTML pages
- Site Generation - Final site is output to
_site/
for deployment
- FAQ content comes from markdown files in the external
orcwg/cra-faq
repository - Content is organized by directory structure and processed by
src/_data/faq.js
- Questions are extracted from markdown
#
headings - Answers are content following the first heading
- Status tracking:
draft
,approved
,pending-guidance
- YAML files in
src/_lists/
define curated FAQ collections - Each YAML file creates a new list page at
/lists/{filename}/
- Lists reference specific FAQs by category and filename
- Automatic quality control filters incomplete/draft content
- Global site settings in
src/_data/site.json
- Footer content and navigation configured via JSON data
- Repository:
orcwg/cra-faq
- Purpose: Contains all FAQ content in markdown format
- Update: Automatically pulled during builds via
update-cache.sh
- Static Site Generator: Eleventy 3.x
- Template Engine: Nunjucks
- Markdown Processing: markdown-it
- Diagram Support: Mermaid.js
The site is designed to be deployed as a static site. The build process:
- Updates external content cache
- Processes FAQ data from cached repository
- Generates static HTML pages
- Outputs complete site to
_site/
directory
This project is licensed under the terms of the Apache License Version 2.0.
SPDX-License-Identifier: Apache-2.0