This repository contains the source code of my personal homepage hosted at https://till-knollmann.com.
The project uses GitHub Actions workflows for automated building and deployment:
On push to the develop branch or pull requests to develop, a GitHub workflow validates that:
-
Localized pages are generated successfully
-
JavaScript, CSS and HTML files can be minified
-
JavaScript and CSS can be inlined into HTML
-
All required files are present for deployment
This ensures that changes can be deployed before merging to main.
On commit to the main branch, a GitHub workflow is activated that:
-
Generates localized pages
-
Minifies JavaScript, CSS and HTML files
-
Inlines JavaScript and CSS into the HTML
-
Pushes an incremental update to the webspace at https://till-knollmann.com
Pull the repository in a VSCode Devcontainer. The container configures itself and provides launch configurations for local development.
The project includes launch configurations and tasks for local development:
Use the launch configuration "Run: generate + php + open browser" to:
-
Generate localized pages from JSON files
-
Start a local PHP development server
-
Automatically open the homepage in your default browser
To generate localizations of the page, run /generator/generate.py.
The localization process:
-
Reads text content from language-specific JSON files in
/generator/(de.json,en.json) -
Inserts the content into
/generator/template.html -
Matches placeholders for each language
-
Outputs localized HTML pages in language-specific directories (
de/,en/)
Bootstrap version is centrally managed in .bootstrap-version (currently: 5.3.8).
To update Bootstrap:
-
Update
.bootstrap-versionwith the new version number -
Run:
python3 update-bootstrap.py -
This downloads and updates
styles/bootstrap-full.cssandscripts/bootstrap-full.js
This project uses a dual licensing approach:
The source code, build scripts, and technical implementation are licensed under the MIT License.
MIT License
Copyright (c) 2023 Till Knollmann
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.All website content, design elements, graphics, text, and personal materials are:
Copyright © 2023 Till Knollmann. All rights reserved.
No part of the website content or design may be reproduced, distributed, or transmitted in any form without prior written permission.