Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing dev branch #3

Merged
merged 4 commits into from
Aug 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ params:
path: "/riak/kv"
archived_path: "/riak"
github_path: "https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/"
download_root: "https://files.tiot.jp/riak/kv/"
releases:
- ["2.0.0", "2.0.1", "2.0.2", "2.0.4", "2.0.5", "2.0.6", "2.0.7", "2.0.8", "2.0.9"]
- ["2.1.1", "2.1.3", "2.1.4"]
Expand All @@ -112,6 +113,7 @@ params:
path: "/riak/cs"
archived_path: "/riakcs"
github_path: "https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/"
download_root: "https://files.tiot.jp/riak/cs/"
releases:
- ["2.0.0", "2.0.1"]
- ["2.1.0", "2.1.1", "2.1.2"]
Expand All @@ -123,6 +125,7 @@ params:
project_name_html: 'Riak<span class="product__title-highlight">TS</span>'
path: "/riak/ts"
github_path: "https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/"
download_root: "https://files.tiot.jp/riak/ts/"
archived_path: "/riakts"
releases:
- ["1.0.0"]
Expand All @@ -132,7 +135,7 @@ params:
- ["1.4.0"]
- ["1.5.0", "1.5.1", "1.5.2"]
latest: "1.5.2"
lts: ["1.5"]
lts: ["1.5"]
archive_below: "1.3"
dataplatform:
project_name: "DataPlatform"
Expand Down
949 changes: 935 additions & 14 deletions data/download_info.yaml

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions data/os_metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@ debian:
title: "Debian"
image_src: "images/shared/operating_system_branding/debian.png"
installing_instructions_page: "debian-ubuntu/"
versions:
"6": "6 (Squeeze)"
"7": "7 (Wheezy)"
"8": "8 (Jessie)"
"9": "9 (Stretch)"
"10": "10 (Buster)"
"11": "11 (Bullseye)"
"12": "12 (Bookworm)"
squeeze: "6 (Squeeze)"
wheezy: "7 (Wheezy)"
jessie: "8 (Jessie)"
stretch: "9 (Stretch)"
buster: "10 (Buster)"
bullseye: "11 (Bullseye)"
bookworm: "12 (Bookworm)"
fedora:
title: "Fedora"
image_src: "images/shared/operating_system_branding/fedora.png"
Expand All @@ -27,14 +42,40 @@ osx:
title: "Mac OS X"
image_src: "images/shared/operating_system_branding/mac.png"
installing_instructions_page: "mac-osx/"
versions:
"10.8": "10.8 (Mountain Lion)"
"10.9": "10.9 (Mavericks)"
"10.10": "10.10 (Yosemite)"
"10.11": "10.11 (El Capitan)"
"10.12": "10.12 (Sierra)"
"10.13": "10.13 (High Sierra)"
"10.14": "10.14 (Mojave)"
"10.15": "10.15 (Catalina)"
raspbian:
title: "Raspbian"
image_src: "images/shared/operating_system_branding/raspbian.png"
# installing_instructions_page: "raspbian/"
versions:
"6": "6 (Squeeze)"
"7": "7 (Wheezy)"
"8": "8 (Jessie)"
"9": "9 (Stretch)"
"10": "10 (Buster)"
"11": "11 (Bullseye)"
"12": "12 (Bookworm)"
squeeze: "6 (Squeeze)"
wheezy: "7 (Wheezy)"
jessie: "8 (Jessie)"
stretch: "9 (Stretch)"
buster: "10 (Buster)"
bullseye: "11 (Bullseye)"
bookworm: "12 (Bookworm)"
rhel:
title: "RHEL & CentOS"
image_src: "images/shared/operating_system_branding/redhat.png"
installing_instructions_page: "rhel-centos/"
versions:
"6-broken-builds-do-not-use": "6 (broken builds, do not use)"
oracle:
title: "Oracle Linux"
image_src: "images/shared/operating_system_branding/oracle.png"
Expand All @@ -56,12 +97,21 @@ ubuntu:
image_src: "images/shared/operating_system_branding/ubuntu.png"
installing_instructions_page: "debian-ubuntu/"
versions:
lucid: "Lucid Lynx (10.04)"
precise: "Precise Pangolin (12.04)"
trusty: "Trusty Tahr (14.04)"
xenial: "Xenial Xerus (16.04)"
bionic: "Bionic Beaver (18.04)"
focal: "Focal Fossa (20.04)"
jammy: "Jammy Jellyfish (22.04)"
precise64: "Precise Pangolin (12.04)"
trusty64: "Trusty Tahr (14.04)"
xenial64: "Xenial Xerus (16.04)"
bionic64: "Bionic Beaver (18.04)"
focal64: "Focal Fossa (20.04)"
jammy64: "Jammy Jellyfish (22.04)"
artful64: "Artful Aardvark (17.10)"
artful: "Artful Aardvark (17.10)"
source:
image_src: "images/shared/operating_system_branding/targz.png"
installing_instructions_page: "source/"
7 changes: 7 additions & 0 deletions layouts/_default/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
{{ $download_metadata := $HugoNode.Site.Data.download_info }}
{{ $os_metadata := $HugoNode.Site.Data.os_metadata }}

{{ $download_root := $HugoNode.Scratch.Get "download_root" }}
{{ $series := $HugoNode.Scratch.Get "series" }}
{{ $download_root_path := (print $download_root $series "/" $version) }}
{{ $menu_title := (printf "%s-%s" $project $version) }} {{/* ex; "riak_kv-2.1.4" */}}
-->

Expand Down Expand Up @@ -80,6 +83,10 @@
{{/*<h2/>*/}} {{ (printf "## %s %s" $target_title $target_version) | markdownify }}

<p>You should be able to find your operating system in the choices below.</p>
<!-- {{ if $download_root }} -->
<p>All files are available on our <a href="{{ $download_root_path }}">the file store</a>.</p>
<!-- {{ end }} -->

<!-- Range Over OSs Per Project
=============================== -->
{{ range $os_map := (sort (where $target_download_metadata "os" "!=" "source") "os") }}
Expand Down
2 changes: 2 additions & 0 deletions layouts/partials/common-variables.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
{{ $is_lts := (in $lts_versions $series) }} {{/* ex; false */}}
{{ $archived_url := $project_description.archived_url }} {{/* ex; {{ .Site.BaseURL }}riak/kv/2.9.0p5/ */}}
{{ $archived_path := $project_description.archived_path }} {{/* ex; riak */}}
{{ $download_root := $project_description.download_root }} {{/* ex: https://files.tiot.jp/riak/kv/3.0/3.0.10/ */}}

{{ $github_path := $project_description.github_path | default "https://github.com/TI-Tokyo/riak-docs-fork/edit/master/content/" }} {{/* ex; https://github.com/TI-Tokyo/riak-docs-fork/edit/master/content */}}

Expand Down Expand Up @@ -76,6 +77,7 @@
{{ .Scratch.Add "is_lts" $is_lts }}
{{ .Scratch.Add "archived_url" $archived_url }}
{{ .Scratch.Add "archived_path" $archived_path }}
{{ .Scratch.Add "download_root" $download_root }}
{{ .Scratch.Add "site_relative_path" $site_relative_path }}
{{ .Scratch.Add "project_relative_path" $project_relative_path }}

Expand Down
1 change: 1 addition & 0 deletions rake_libs/projects_metadata_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def generate_projects_metadata()
project_hash[:project_name] = description["project_name"]
project_hash[:path] = description["path"]
project_hash[:github_path] = description["github_path"]
project_hash[:download_root] = description["download_root"]
project_hash[:archived_path] = description["archived_path"]
project_hash[:releases] = description["releases"]
project_hash[:latest] = description["latest"]
Expand Down
2 changes: 1 addition & 1 deletion static/data/project_descriptions.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__comment":"This file was automatically generated using `rake generate_projects_metadata`. See the Project Descriptions entry in config.yaml for more information.","riak_kv":{"project_name":"Riak KV","path":"/riak/kv","github_path":"https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/","archived_path":"/riak","releases":[["2.0.0","2.0.1","2.0.2","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"],["2.1.1","2.1.3","2.1.4"],["2.2.0","2.2.1","2.2.2","2.2.3","2.2.6"],["2.9.0p5","2.9.1","2.9.2","2.9.4","2.9.7","2.9.8","2.9.9","2.9.10"],["3.0.1","3.0.2","3.0.3","3.0.4"]],"latest":"3.0.4","lts":["2.9","3.0"],"archive_below":"2.2"},"riak_cs":{"project_name":"Riak CS","path":"/riak/cs","github_path":"https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/","archived_path":"/riakcs","releases":[["2.0.0","2.0.1"],["2.1.0","2.1.1","2.1.2"]],"latest":"2.1.2","lts":["2.1"]},"riak_ts":{"project_name":"Riak TS","path":"/riak/ts","github_path":"https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/","archived_path":"/riakts","releases":[["1.0.0"],["1.1.0"],["1.2.0"],["1.3.0","1.3.1"],["1.4.0"],["1.5.0","1.5.1","1.5.2"]],"latest":"1.5.2","lts":["1.5"],"archive_below":"1.3"},"dataplatform":{"project_name":"DataPlatform","path":"/dataplatform","github_path":null,"archived_path":"/dataplatform","releases":[["1.0.0"]],"latest":"1.0.0"}}
{"__comment":"This file was automatically generated using `rake generate_projects_metadata`. See the Project Descriptions entry in config.yaml for more information.","riak_kv":{"project_name":"Riak KV","path":"/riak/kv","github_path":"https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/","download_root":"https://files.tiot.jp/riak/kv/","archived_path":"/riak","releases":[["2.0.0","2.0.1","2.0.2","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"],["2.1.1","2.1.3","2.1.4"],["2.2.0","2.2.1","2.2.2","2.2.3","2.2.6"],["2.9.0p5","2.9.1","2.9.2","2.9.4","2.9.7","2.9.8","2.9.9","2.9.10"],["3.0.1","3.0.2","3.0.3","3.0.4"]],"latest":"3.0.4","lts":["2.9","3.0"],"archive_below":"2.2"},"riak_cs":{"project_name":"Riak CS","path":"/riak/cs","github_path":"https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/","download_root":"https://files.tiot.jp/riak/cs/","archived_path":"/riakcs","releases":[["2.0.0","2.0.1"],["2.1.0","2.1.1","2.1.2"]],"latest":"2.1.2","lts":["2.1"]},"riak_ts":{"project_name":"Riak TS","path":"/riak/ts","github_path":"https://github.com/TI-Tokyo/riak-docs-fork/tree/master/content/","download_root":"https://files.tiot.jp/riak/ts/","archived_path":"/riakts","releases":[["1.0.0"],["1.1.0"],["1.2.0"],["1.3.0","1.3.1"],["1.4.0"],["1.5.0","1.5.1","1.5.2"]],"latest":"1.5.2","lts":["1.5"],"archive_below":"1.3"},"dataplatform":{"project_name":"DataPlatform","path":"/dataplatform","github_path":null,"download_root":null,"archived_path":"/dataplatform","releases":[["1.0.0"]],"latest":"1.0.0"}}