diff --git a/website/static/fonts/OFL-IBMPlex.txt b/website/static/fonts/OFL-IBMPlex.txt new file mode 100644 index 00000000..c35c4c61 --- /dev/null +++ b/website/static/fonts/OFL-IBMPlex.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/static/fonts/OFL-SchibstedGrotesk.txt b/website/static/fonts/OFL-SchibstedGrotesk.txt new file mode 100644 index 00000000..ba41e114 --- /dev/null +++ b/website/static/fonts/OFL-SchibstedGrotesk.txt @@ -0,0 +1,93 @@ +Copyright 2023 The Schibsted-Grotesk Project Authors (https://github.com/schibsted/schibsted-grotesk) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/static/fonts/archivo.woff2 b/website/static/fonts/archivo.woff2 deleted file mode 100644 index 716d4abd..00000000 Binary files a/website/static/fonts/archivo.woff2 and /dev/null differ diff --git a/website/static/fonts/ibm-plex-mono-400.woff2 b/website/static/fonts/ibm-plex-mono-400.woff2 new file mode 100644 index 00000000..937b4853 Binary files /dev/null and b/website/static/fonts/ibm-plex-mono-400.woff2 differ diff --git a/website/static/fonts/ibm-plex-sans-400.woff2 b/website/static/fonts/ibm-plex-sans-400.woff2 new file mode 100644 index 00000000..8a82bbf5 Binary files /dev/null and b/website/static/fonts/ibm-plex-sans-400.woff2 differ diff --git a/website/static/fonts/ibm-plex-sans-500.woff2 b/website/static/fonts/ibm-plex-sans-500.woff2 new file mode 100644 index 00000000..d2ee431d Binary files /dev/null and b/website/static/fonts/ibm-plex-sans-500.woff2 differ diff --git a/website/static/fonts/schibsted-grotesk-600.woff2 b/website/static/fonts/schibsted-grotesk-600.woff2 new file mode 100644 index 00000000..61ef5fd7 Binary files /dev/null and b/website/static/fonts/schibsted-grotesk-600.woff2 differ diff --git a/website/static/fonts/schibsted-grotesk-800.woff2 b/website/static/fonts/schibsted-grotesk-800.woff2 new file mode 100644 index 00000000..5ff40a30 Binary files /dev/null and b/website/static/fonts/schibsted-grotesk-800.woff2 differ diff --git a/website/static/hero/hero-ending.jpg b/website/static/hero/hero-ending.jpg new file mode 100644 index 00000000..5833f604 Binary files /dev/null and b/website/static/hero/hero-ending.jpg differ diff --git a/website/static/hero/hero-poster.jpg b/website/static/hero/hero-poster.jpg new file mode 100644 index 00000000..4605d8ce Binary files /dev/null and b/website/static/hero/hero-poster.jpg differ diff --git a/website/static/hero/hero-scrub.mp4 b/website/static/hero/hero-scrub.mp4 new file mode 100644 index 00000000..48a07573 Binary files /dev/null and b/website/static/hero/hero-scrub.mp4 differ diff --git a/website/static/hero/hero-sheet.webp b/website/static/hero/hero-sheet.webp new file mode 100644 index 00000000..3afc8129 Binary files /dev/null and b/website/static/hero/hero-sheet.webp differ diff --git a/website/static/img/fenster.webp b/website/static/img/fenster.webp new file mode 100644 index 00000000..63c5ecf2 Binary files /dev/null and b/website/static/img/fenster.webp differ diff --git a/website/static/img/gelaende.webp b/website/static/img/gelaende.webp new file mode 100644 index 00000000..5604369c Binary files /dev/null and b/website/static/img/gelaende.webp differ diff --git a/website/static/img/lage.webp b/website/static/img/lage.webp new file mode 100644 index 00000000..bec1ae57 Binary files /dev/null and b/website/static/img/lage.webp differ diff --git a/website/static/img/schnitt/grundriss-eg.webp b/website/static/img/schnitt/grundriss-eg.webp new file mode 100644 index 00000000..2d1ad1bb Binary files /dev/null and b/website/static/img/schnitt/grundriss-eg.webp differ diff --git a/website/static/img/schnitt/schnitt-00.webp b/website/static/img/schnitt/schnitt-00.webp new file mode 100644 index 00000000..c592b40d Binary files /dev/null and b/website/static/img/schnitt/schnitt-00.webp differ diff --git a/website/static/img/schnitt/schnitt-01.webp b/website/static/img/schnitt/schnitt-01.webp new file mode 100644 index 00000000..11f1fe70 Binary files /dev/null and b/website/static/img/schnitt/schnitt-01.webp differ diff --git a/website/static/img/schnitt/schnitt-02.webp b/website/static/img/schnitt/schnitt-02.webp new file mode 100644 index 00000000..3e8f10dd Binary files /dev/null and b/website/static/img/schnitt/schnitt-02.webp differ diff --git a/website/static/img/schnitt/schnitt-03.webp b/website/static/img/schnitt/schnitt-03.webp new file mode 100644 index 00000000..4c87e791 Binary files /dev/null and b/website/static/img/schnitt/schnitt-03.webp differ diff --git a/website/static/img/schnitt/schnitt-04.webp b/website/static/img/schnitt/schnitt-04.webp new file mode 100644 index 00000000..cb54609e Binary files /dev/null and b/website/static/img/schnitt/schnitt-04.webp differ diff --git a/website/static/img/schnitt/schnitt-05.webp b/website/static/img/schnitt/schnitt-05.webp new file mode 100644 index 00000000..16b98795 Binary files /dev/null and b/website/static/img/schnitt/schnitt-05.webp differ diff --git a/website/static/img/schnitt/schnitt-06.webp b/website/static/img/schnitt/schnitt-06.webp new file mode 100644 index 00000000..bdeee46f Binary files /dev/null and b/website/static/img/schnitt/schnitt-06.webp differ diff --git a/website/static/img/schnitt/schnitt-07.webp b/website/static/img/schnitt/schnitt-07.webp new file mode 100644 index 00000000..52eab166 Binary files /dev/null and b/website/static/img/schnitt/schnitt-07.webp differ diff --git a/website/static/img/schnitt/schnitt-08.webp b/website/static/img/schnitt/schnitt-08.webp new file mode 100644 index 00000000..f8631597 Binary files /dev/null and b/website/static/img/schnitt/schnitt-08.webp differ diff --git a/website/static/img/schnitt/schnitt-09.webp b/website/static/img/schnitt/schnitt-09.webp new file mode 100644 index 00000000..ae026049 Binary files /dev/null and b/website/static/img/schnitt/schnitt-09.webp differ diff --git a/website/static/img/schnitt/schnitt-10.webp b/website/static/img/schnitt/schnitt-10.webp new file mode 100644 index 00000000..05c994a1 Binary files /dev/null and b/website/static/img/schnitt/schnitt-10.webp differ diff --git a/website/static/img/schnitt/schnitt-11.webp b/website/static/img/schnitt/schnitt-11.webp new file mode 100644 index 00000000..9d29a53a Binary files /dev/null and b/website/static/img/schnitt/schnitt-11.webp differ diff --git a/website/themes/hextra/.devcontainer/devcontainer.json b/website/themes/hextra/.devcontainer/devcontainer.json deleted file mode 100644 index d8a32b88..00000000 --- a/website/themes/hextra/.devcontainer/devcontainer.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "image": "mcr.microsoft.com/devcontainers/go:1", - "features": { - "ghcr.io/devcontainers/features/hugo:1": { - "extended": true, - "version": "0.161.1" - }, - "ghcr.io/devcontainers/features/node:1": {} - }, - "customizations": { - "vscode": { - "extensions": ["mhutchie.git-graph", "esbenp.prettier-vscode", "tamasfe.even-better-toml", "budparr.language-hugo-vscode"] - } - }, - "postCreateCommand": "npm install", - "forwardPorts": [1313] -} diff --git a/website/themes/hextra/.gitattributes b/website/themes/hextra/.gitattributes deleted file mode 100644 index 0820376f..00000000 --- a/website/themes/hextra/.gitattributes +++ /dev/null @@ -1,3 +0,0 @@ -# Mark generated files so they are collapsed by default in GitHub diffs -assets/css/compiled/main.css linguist-generated=true -docs/hugo_stats.json linguist-generated=true diff --git a/website/themes/hextra/.gitignore b/website/themes/hextra/.gitignore deleted file mode 100644 index 7377a08b..00000000 --- a/website/themes/hextra/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -node_modules/ -public/ -resources/ - -.hugo_build.lock - -# Playwright -playwright-report/ -test-results/ diff --git a/website/themes/hextra/.prettierrc b/website/themes/hextra/.prettierrc deleted file mode 100644 index 28eaa1e6..00000000 --- a/website/themes/hextra/.prettierrc +++ /dev/null @@ -1,21 +0,0 @@ -{ - "plugins": [ - "prettier-plugin-go-template" - ], - "goTemplateBracketSpacing": true, - "htmlWhitespaceSensitivity": "css", - "printWidth": 200, - "singleQuote": false, - "tabWidth": 2, - "trailingComma": "es5", - "overrides": [ - { - "files": [ - "*.html" - ], - "options": { - "parser": "go-template" - } - } - ] -} diff --git a/website/themes/hextra/.vscode/settings.json b/website/themes/hextra/.vscode/settings.json deleted file mode 100644 index 4f3bc8d9..00000000 --- a/website/themes/hextra/.vscode/settings.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "editor.tabSize": 2, - "markdown.extension.toc.levels": "2..6" -} diff --git a/website/themes/hextra/AGENTS.md b/website/themes/hextra/AGENTS.md deleted file mode 100644 index c0bbe14c..00000000 --- a/website/themes/hextra/AGENTS.md +++ /dev/null @@ -1,193 +0,0 @@ -# AGENTS.md - -This file provides guidance to AI coding agents when working with code in this repository. - -## Project Overview - -Hextra is a modern, responsive Hugo theme designed for creating documentation websites, technical blogs, and static sites. Built with Tailwind CSS, it offers features like full-text search, dark mode, multi-language support, and extensive customization options. - -## Development Commands - -### Initial Setup - -When working in a new worktree or fresh clone without `node_modules`, run `npm install` first to install dependencies: - -```bash -npm install -``` - -### Development Server - -```bash -# Start development server with theme reloading (recommended for theme development) -npm run dev:theme -``` - -### Building - -```bash -# Build the example site -npm run build - -# Build CSS assets only -npm run build:css -``` - -## Architecture Overview - -### Hugo Theme Structure - -- **Base Layout**: `layouts/baseof.html` wraps all pages -- **Specialized Layouts**: `layouts/docs/`, `layouts/blog/`, `layouts/hextra-home.html` -- **Partials**: Reusable components in `layouts/_partials/` - - Core UI: `navbar.html`, `sidebar.html`, `footer.html`, `breadcrumb.html`, `toc.html` - - Utilities: `layouts/_partials/utils/` for helper functions - - Custom overrides: `layouts/_partials/custom/` for user customizations -- **Shortcodes**: Custom Markdown extensions in `layouts/_shortcodes/` -- **Render Hooks**: Custom Markdown rendering in `layouts/_markup/` for codeblocks, headings, images, and links - -### Asset Organization - -``` -assets/ -├── css/ -│ ├── styles.css # Main stylesheet (Tailwind entry point) -│ ├── compiled/main.css # Built CSS output (generated) -│ ├── components/ # Component-specific styles -│ ├── chroma/ # Syntax highlighting themes -│ └── custom.css # User customization entry point -└── js/ - ├── core/ # Core JS components - └── flexsearch.js # Search functionality -``` - -### Key Components - -- **Search**: FlexSearch-powered full-text search (`assets/js/flexsearch.js`) -- **Navigation**: Responsive navbar and auto-generated sidebar -- **Theme Toggle**: Dark/light mode switching -- **Internationalization**: 20+ language support in `i18n/` - -### Content Features - -- **Shortcodes**: `callout`, `card`, `cards`, `tabs`, `tab`, `details`, `steps`, `filetree`, `jupyter`, `badge`, `icon`, `pdf`, `include`, `asciinema`, `term` -- **Code Features**: Syntax highlighting (Chroma), copy buttons, line numbers via render hooks -- **SEO**: Open Graph, Twitter Cards, structured data -- **Performance**: Minimal JavaScript, optimized CSS with Tailwind - -## Development Workflow - -### Example Site Development - -The `docs/` directory serves as both documentation and testing ground: - -- Test new features here before releasing -- Configuration examples in `docs/hugo.yaml` showing multi-language setup -- Content examples demonstrate all theme capabilities -- Run from docs with: `hugo server --themesDir=../..` - -### CSS Development Workflow - -- Source: `assets/css/styles.css` (main stylesheet) -- Build process: Tailwind CSS → PostCSS → `assets/css/compiled/main.css` -- Component styles organized in `assets/css/components/` -- Chroma syntax highlighting themes in `assets/css/chroma/` -- CSS compilation requires Node.js dependencies (PostCSS, Tailwind CSS v4+) - -#### Rebuilding CSS after template changes - -Tailwind CSS relies on `docs/hugo_stats.json` to know which HTML tags, classes, and IDs are actually used in the built site, so it can tree-shake unused styles. When you modify layouts, partials, or shortcodes you must **regenerate `hugo_stats.json` first**, then rebuild the CSS: - -1. **Generate `docs/hugo_stats.json`** — Run Hugo with the `dev.toml` config (which sets `build.buildStats.enable = true`): - - ```bash - # Using npm (starts a dev server that writes hugo_stats.json on every rebuild): - npm run dev:theme - - # Or a one-shot build using the raw Hugo command: - hugo --config=hugo.yaml,../dev.toml --themesDir=../.. --source=docs - ``` - -2. **Build the CSS** — With an up-to-date `hugo_stats.json` in place, compile the stylesheet: - - ```bash - npm run build:css - ``` - -> **Why two steps?** `dev.toml` mounts `docs/hugo_stats.json` into the Hugo asset pipeline (`assets/notwatching/hugo_stats.json`) and configures a cache-buster so that changes to the stats file trigger a CSS recompile during `dev:theme`. When running outside the dev server you need to perform these steps manually in order. - -### Customization Points - -- Custom partials: `layouts/_partials/custom/` -- Custom CSS: `assets/css/custom.css` -- Site-specific overrides: Copy any layout to your site's `layouts/` directory - -## Configuration & Requirements - -### Theme Requirements - -- Hugo minimum version: 0.146.0 (extended version required - see `theme.toml`) -- Go 1.20+ (as specified in `go.mod`) -- Node.js for CSS compilation (PostCSS, Tailwind CSS v4+) - -### Key Configuration Files - -- `docs/hugo.yaml` - Example Hugo configuration with multi-language setup -- `postcss.config.mjs` - PostCSS configuration for CSS processing -- `package.json` - Node.js dependencies and build scripts - -### Development Environment - -- Default Hugo development server: Port 1313 -- Development server runs with `--disableFastRender -D` for better development experience -- Theme development uses `--logLevel=debug` for detailed logging - -### Multi-language Support - -- Configure languages in `hugo.yaml` (supports 20+ languages including RTL) -- Translation files in `i18n/` directory (e.g., `en.yaml`, `fa.yaml`, `ja.yaml`, `zh-cn.yaml`) -- Example supports English, Persian (RTL), Japanese, and Simplified Chinese - -## Theme Development Guidelines - -### Hugo Theme Conventions - -- Theme files in this repository override Hugo defaults -- Follow Hugo's theme development guidelines for compatibility -- Maintain backward compatibility with existing configurations - -### JavaScript & Performance - -- All JavaScript components are designed to have minimal footprint -- Core JS components in `assets/js/core/`: `theme.js`, `nav-menu.js`, `code-copy.js`, `sidebar.js`, `tabs.js`, etc. -- FlexSearch powers offline full-text search (`assets/js/flexsearch.js`) - -### CSS Architecture - -- Uses Tailwind CSS v4+ with PostCSS processing -- Component-based CSS organization in `assets/css/components/` -- Compiled output goes to `assets/css/compiled/main.css` -- Prettier formatting for Go templates and code consistency - -### Accessibility (WCAG Compliance) - -All new features and UI changes must follow the [Web Content Accessibility Guidelines (WCAG) 2.2](https://www.w3.org/TR/WCAG22/) at the **AA** conformance level. Key requirements: - -- **Semantic HTML**: Use appropriate elements (`