Skip to content

Commit

Permalink
Update release documents PoC
Browse files Browse the repository at this point in the history
  • Loading branch information
knomepasi committed Jan 26, 2024
1 parent 19a2511 commit 24d3d0e
Show file tree
Hide file tree
Showing 27 changed files with 952 additions and 32 deletions.
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ghp.knome.fi
ghp.knome.fi
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ source "https://rubygems.org"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
#gem "jekyll-remote-theme"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
Expand All @@ -36,3 +37,5 @@ gem "wdm", "~> 0.1.0", :platforms => [:mingw, :x64_mingw, :mswin]
# kramdown v1, comment out this line.
gem "kramdown-parser-gfm"


gem "webrick", "~> 1.8"
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ GEM
unf_ext (0.0.9.1)
unicode-display_width (1.8.0)
uri (0.13.0)
webrick (1.8.1)

PLATFORMS
x86_64-linux
Expand All @@ -273,6 +274,7 @@ DEPENDENCIES
tzinfo (~> 1.2)
tzinfo-data
wdm (~> 0.1.0)
webrick (~> 1.8)

BUNDLED WITH
2.3.5
9 changes: 7 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ title: Xubuntu Release Notes
email: [email protected]
description: Xubuntu Release Notes
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://xubuntu.org" # the base hostname & protocol for your site, e.g. http://example.com
url: "http://localhost:4000" # the base hostname & protocol for your site, e.g. http://example.com
github_username: Xubuntu

# Build settings
markdown: kramdown
theme: jekyll-theme-cayman
theme: minima
#remote_theme: knomepasi/jekyll-xubuntu
plugins:
- jekyll-feed

collections:
release_documents:
output: true

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
Expand Down
12 changes: 12 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{%- seo -%}
<link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/assets/xubuntu.css" | relative_url }}">
{%- feed_meta -%}
{%- if jekyll.environment == 'production' and site.google_analytics -%}
{%- include google-analytics.html -%}
{%- endif -%}
</head>
15 changes: 15 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
{%- include head.html -%}
<body>

<header>
<h1><img src="{{ "/assets/logo.png" | relative_url }}" alt="Xubuntu" /></h1>
</header>

<main>
{{ content }}
</main>

</body>
</html>
25 changes: 25 additions & 0 deletions _layouts/document.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
layout: default
---
<article>
<h1>{{page.release | escape}} {{ page.title | escape }}</h1>

<p class="post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
{%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
{{ page.date | date: date_format }}
</time>
{%- if page.author -%}
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">{{ page.author }}</span></span>
{%- endif -%}</p>

<div class="post-content e-content" itemprop="articleBody">
{{ content }}
</div>

{%- if site.disqus.shortname -%}
{%- include disqus_comments.html -%}
{%- endif -%}

<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
33 changes: 33 additions & 0 deletions _layouts/releases.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
layout: default
---

{%- if page.title -%}
<h1>{{ page.title }}</h1>
{%- endif -%}

{{ content }}

{%- if site.posts.size > 0 -%}
<ul class="post-list">
{%- for post in site.posts -%}
<li>
<a class="button" href="{{ post.url | relative_url }}">
{{ post.release | escape }}
</a>
</li>
{%- endfor -%}
</ul>
{%- endif -%}

{%- if site.release_documents.size > 0 -%}
{% assign releases = site.release_documents | group_by: 'release' | reverse %}
{%- for release in releases -%}
<h2>{{ release.name }}</h2>
<div class="release_documents">
{%- for document in release.items -%}
<a class="button" href="{{ document.url | relative_url }}">{{ document.title }}</a>
{%- endfor -%}
</div>
{%- endfor -%}
{%- endif -%}
5 changes: 5 additions & 0 deletions _release_documents/23.04/release-notes.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: document
release: "Xubuntu 23.04"
title: "Release Notes"
---
7 changes: 7 additions & 0 deletions _release_documents/23.04/upgrading.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: document
release: "Xubuntu 23.04"
title: "Upgrading"
---

...
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
layout: post
title: "Xubuntu 23.10 Release Notes"
date: 2023-10-12 02:23:44 +0200
categories: 2310
layout: document
release: "Xubuntu 23.10"
title: "Release Notes"
---
**Welcome to the Xubuntu 23.10 Mantic Minotaur release notes!**
**Welcome to the Xubuntu 23.10 "Mantic Minotaur" release notes!**

Xubuntu 23.10 was released on Thursday, October 12, 2023, and will be supported for nine months until July 2024. For general information and the latest updates for Xubuntu 23.10, check out the [release page on](https://xubuntu.org/release/23-10) xubuntu.org.

Expand Down
7 changes: 7 additions & 0 deletions _release_documents/23.10/upgrading.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
layout: document
release: "Xubuntu 23.10"
title: "Upgrading"
---

...
54 changes: 54 additions & 0 deletions _site/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"><!-- Begin Jekyll SEO tag v2.8.0 -->
<title>Xubuntu Release Notes | Xubuntu Release Notes</title>
<meta name="generator" content="Jekyll v3.9.3" />
<meta property="og:title" content="Xubuntu Release Notes" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Xubuntu Release Notes" />
<meta property="og:description" content="Xubuntu Release Notes" />
<link rel="canonical" href="http://localhost:4000/404.html" />
<meta property="og:url" content="http://localhost:4000/404.html" />
<meta property="og:site_name" content="Xubuntu Release Notes" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Xubuntu Release Notes" />
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"WebPage","description":"Xubuntu Release Notes","headline":"Xubuntu Release Notes","url":"http://localhost:4000/404.html"}</script>
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/xubuntu.css"><link type="application/atom+xml" rel="alternate" href="http://localhost:4000/feed.xml" title="Xubuntu Release Notes" /></head>
<body>

<header>
<h1><img src="/assets/logo.png" alt="Xubuntu" /></h1>
</header>

<main>
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>

<div class="container">
<h1>404</h1>

<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>

</main>

</body>
</html>
Binary file added _site/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 24d3d0e

Please sign in to comment.