2.2 KiB
2.2 KiB
Website Documentation (fun-lang.xyz)
This document describes the structure and maintenance of the website for the Fun programming language, located in the ./web/ directory. The website is hosted at https://fun-lang.xyz.
Technology Stack
The website is built using Jekyll, a static site generator written in Ruby.
- Markdown Engine: kramdown (configured for GFM)
- Syntax Highlighting: Rouge
- Plugins:
jekyll-paginatejekyll-sitemapjekyll-tocjekyll-seo-tag(available in Gemfile)
Directory Structure
The ./web/ directory follows the standard Jekyll structure:
_config.yml: Main configuration file for Jekyll._data/: YAML/JSON data files used by the site._includes/: Reusable HTML snippets (headers, footers, etc.)._layouts/: Page templates (e.g.,page,post)._posts/: Blog posts and news updates._sass/: SCSS files for styling._site/: The generated static website (usually excluded from version control).assets/: Images, JavaScript, and CSS (if not in_sass).css/,js/,images/,fonts/: Static assets.about/,community/,faq/,documentation/, etc.: Static pages and subdirectories.Gemfile: Ruby dependencies for building the site.
Local Development
To run the website locally for development:
- Prerequisites: Ensure you have Ruby and Bundler installed.
- Install dependencies:
cd web/ bundle install - Run the development server:
The website will be available atbundle exec jekyll servehttp://localhost:4000.
Content Management
- Blog Posts: Add new
.mdfiles to_posts/following theYYYY-MM-DD-title.mdnaming convention. - Pages: Create new
.mdor.htmlfiles in the root of the./web/directory or in subdirectories. - Configuration: Update
_config.ymlfor site-wide settings, navigation, or social media links.
Deployment
The website is automatically built and deployed to fun-lang.xyz (details depend on the hosting environment, but typically involve running jekyll build and uploading the _site/ directory).