Compare commits

..
28 Commits
Author SHA1 Message Date
jakob.scheid 503a39aa03 feat(legal): use HTML template at build to ensure an entire HTML document 2026-07-29 22:13:19 +02:00
jakob.scheid 8be1e48615 feat(legal): minify imprint HTML when building 2026-07-29 22:09:23 +02:00
jakob.scheid ce1f34dd3e chore(dependencies): add html-minifier-terser 2026-07-29 21:57:20 +02:00
jakob.scheid 0b56422985 feat(fonts): add fonts build artifact 2026-07-29 21:52:46 +02:00
jakob.scheid 8e46c41e18 feat(legal): add name to legal build artifact 2026-07-29 21:52:46 +02:00
jakob.scheid 9a76acafc0 feat(build): implement artifact names 2026-07-29 21:52:46 +02:00
jakob.scheid 4062eb4e82 feat(build): implement implicit artifact copy source path 2026-07-29 21:52:45 +02:00
jakob.scheid b74c3aef3a fix(build): add check whether artifact has options 2026-07-29 21:52:45 +02:00
jakob.scheid 4a080ce374 feat(build): make permissions checks less strict 2026-07-29 21:52:45 +02:00
jakob.scheid 60e02ebcf7 feat(build): allow to copy directories recursively 2026-07-29 21:52:44 +02:00
jakob.scheid c44eb2f15c chore(cd)!: update production deployment workflow to use build 2026-07-29 21:52:44 +02:00
jakob.scheid 55e92d31b8 feat(legal): add build plugin for legal assets 2026-07-29 21:52:44 +02:00
jakob.scheid 38c5a70f2a chore(dependencies): add markdown-it 2026-07-29 21:52:06 +02:00
jakob.scheid 11ba5cd6d8 feat(build): implement dist and src paths customization 2026-07-29 21:51:35 +02:00
jakob.scheid 66d5cd34e4 feat(build): implement artifact processor 2026-07-29 21:51:34 +02:00
jakob.scheid 74f9ed2e6a feat(build): add file access utility 2026-07-29 21:51:34 +02:00
jakob.scheid c164a9e1e3 refactor(build): restructure plugin processing 2026-07-29 21:51:34 +02:00
jakob.scheid 2fa67d7930 feat(build): add build script 2026-07-29 21:51:29 +02:00
jakob.scheid 7841ba2723 chore: set up Node.js project 2026-07-29 21:51:28 +02:00
jakob.scheid e4ac9027ee feat(legal): add imprint 2026-07-29 21:51:20 +02:00
jakob.scheidandGitea e2e064008a Merge pull request 'Chore(cd): workflow to deploy on production' (#2) from chore/prod-deployment-cd-pipeline into main
Reviewed-on: #2
Reviewed-by: Jakob Gregory
2026-07-29 17:45:10 +02:00
jakob.scheidandGitea bedadf1d12 chore(cd): add workflow to deploy on production 2026-07-29 17:44:57 +02:00
jakob.scheidandGitea 0713d6827e Merge pull request 'Chore(licenses): update license to original Apache License 2.0 text' (#4) from chore/correct-license into main
Reviewed-on: #4
Reviewed-by: Jakob Gregory
2026-07-29 17:31:23 +02:00
jakob.scheidandGitea 9df916af2d chore(licenses): update license to original Apache License 2.0 text 2026-07-29 17:31:08 +02:00
jakob.scheidandGitea 89b2c918bd Merge pull request 'Feat(fonts): Inter font' (#6) from feature/inter-font into main
Reviewed-on: #6
Reviewed-by: Jakob Gregory
2026-07-29 17:30:53 +02:00
jakob.scheid ff2d3199ed chore(fonts): add Inter font license 2026-07-29 17:21:43 +02:00
jakob.scheid 39bc6632f8 feat(fonts): add Inter font files
Added the Inter variable and italic variable variants in both TrueType and WOFF2.
2026-07-29 17:20:34 +02:00
SeekraandGitea c1b265a49a Initial commit 2026-07-25 13:43:55 +02:00
12 changed files with 11 additions and 101 deletions
-18
View File
@@ -1,18 +0,0 @@
*.ttf filter=lfs diff=lfs merge=lfs -text
*.woff2 filter=lfs diff=lfs merge=lfs -text
*.woff filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.tiff filter=lfs diff=lfs merge=lfs -text
*.jfif filter=lfs diff=lfs merge=lfs -text
*.bmp filter=lfs diff=lfs merge=lfs -text
*.pbm filter=lfs diff=lfs merge=lfs -text
*.pgm filter=lfs diff=lfs merge=lfs -text
*.ppm filter=lfs diff=lfs merge=lfs -text
*.ogg filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.m4a filter=lfs diff=lfs merge=lfs -text
*.wav filter=lfs diff=lfs merge=lfs -text
*.mp4 filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
-8
View File
@@ -1,8 +0,0 @@
# ------------------------------------------------ SUBJECT AREA
# ---------------------------------------------------------------------- DETAIL AREA
# Please enter a subject that is not longer than 50 characters.
# If you enter a detailed description, each line should not be longer
# than 72 characters. Break the line as soon as you reach this limit.
+2 -22
View File
@@ -1,23 +1,3 @@
# frontend-assets # repository-template
The assets for the frontend of the search engine *Seekra* The template for repositories
## Setup
Please execute the setup script in `scripts/` for your platform when cloning the repository.
## Project structure
All assets are located in subfolders for their asset type in `src/`. Assets types are:
- Fonts (`fonts`)
- Images (`images`)
- Videos (`videos`)
- Audio (`audio`)
- Icons (`icons`)
There are also some special `src/` subfolders like those for legal content.
## Setup
Please execute the setup script in `scripts/` for your platform when cloning the repository.
+9 -10
View File
@@ -21,33 +21,32 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises';
export default async function build () { export default async function build () {
const md = MarkdownIt(); const md = MarkdownIt();
const legalNoticeMd = await readFile('./src/legal/legal_notice.md', { encoding: 'utf-8' }); const imprintMd = await readFile('./src/legal/imprint.md', { encoding: 'utf-8' });
const legalNoticeHtml = md.render(legalNoticeMd); const imprintHtml = md.render(imprintMd);
const fullLegalNoticeHTML = ` const fullImprintHTML = `
<html lang="de"> <html lang="de">
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> <title>
Legal Notice Imprint
</title> </title>
</head> </head>
<body> <body>
<header> <header>
<h1> <h1>
Legal Notice Imprint
</h1> </h1>
</header> </header>
<main> <main>
${legalNoticeHtml} ${imprintHtml}
</main> </main>
</body> </body>
</html>`; </html>`;
const legalNoticeHtmlMinified = await minify(fullLegalNoticeHTML, { const imprintHtmlMinified = await minify(fullImprintHTML, {
collapseWhitespace: true, collapseWhitespace: true,
conservativeCollapse: true,
collapseInlineTagWhitespace: true, collapseInlineTagWhitespace: true,
removeComments: true removeComments: true
}); });
@@ -56,10 +55,10 @@ export default async function build () {
artifacts: [ artifacts: [
{ {
name: 'legal', name: 'legal',
path: 'legal/legal_notice.html', path: 'legal/imprint.html',
type: 'text', type: 'text',
options: { options: {
content: legalNoticeHtmlMinified, content: imprintHtmlMinified,
encoding: 'utf-8' encoding: 'utf-8'
} }
} }
-9
View File
@@ -1,9 +0,0 @@
# Changelog
## [Unreleased]
### Added
- *Inter* font
- Legal notice
- Build system for building the assets
-17
View File
@@ -1,17 +0,0 @@
#!/usr/bin/env pwsh
# Copyright 2026 Seekra
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
git config --local commit.template .gitmessage
-17
View File
@@ -1,17 +0,0 @@
#!/usr/bin/bash
# Copyright 2026 Seekra
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
git config --local commit.template .gitmessage
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.