July 23rd, 2024

Hosting Static Content with Gitlab

Elmar Klausmeier's blog provides a guide for hosting static content on GitLab, detailing steps like creating a public repository, configuring deployment, and using a CI process with .gitlab-ci.yml.

Read original articleLink Icon
Hosting Static Content with Gitlab

Elmar Klausmeier's blog discusses the process of hosting static content using GitLab. The steps outlined include creating a public repository, configuring the deployment settings, and setting up a CI process with a .gitlab-ci.yml file. The repository name should be short, as it forms part of the URL. Users are instructed to add their static content to a designated 'public' directory, followed by committing and pushing the changes to the Git repository. This action triggers a job that generates the website, which can be accessed via a specific URL format. Klausmeier also mentions using the Simplified Saaze tool to generate static HTML pages, emphasizing the importance of speed in the process. The blog serves as a guide for those looking to utilize GitLab for hosting static sites, providing practical steps and insights into the setup and deployment process.

Related

Writing HTML by hand is easier than debugging your static site generator

Writing HTML by hand is easier than debugging your static site generator

The blog author discusses challenges of static site generators versus manual HTML coding, citing setup complexities and advocating for simplicity, stability, and control in website management. Emphasizes static data benefits.

Rendering Markdown Views in Rails

Rendering Markdown Views in Rails

Rails lacks native support for hosting static Markdown pages. Sebastian Rollén suggests using redcarpet gem to render Markdown files in Rails. Customizing routes and layouts based on URL paths enhances user experience. Parsing front-matter with ruby_matter gem embeds metadata for a seamless Markdown-to-HTML workflow.

Let's Treat Docs Like Code

Let's Treat Docs Like Code

Treating documentation like code involves using tools like GitHub, automation, and static site generators. Importance of learning these tools, best practices for efficient writing, protecting branches, case studies, and resources are discussed. Insights on building documentation sites are provided.

Wikimedia Gitlab Migration Status

Wikimedia Gitlab Migration Status

The Wikimedia movement supports Gerrit and GitLab for code hosting to reduce change fatigue. Challenges arose during migration to GitLab due to missing features, leading to the recommendation to keep deeply connected repositories on Gerrit.

Itsy-gitsy – A static site generator for Git repositories

Itsy-gitsy – A static site generator for Git repositories

Itsy-gitsy is a static site generator for Git repositories hosted on GitHub by Trevor Bentley. It simplifies creating static sites, updating changelogs, and managing project documentation efficiently.

Link Icon 2 comments
By @c0balt - 5 months
GitLab self-hosted is also capable of doing this. It's quite nice for self-hosting custom static pages with a CD pipeline. With just on wildcard domain it's fairly easy but you need a second public IP for abitray custom domains.
By @fabform123 - 5 months
Great idea. You can also add a static website form to your site with fabform