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

Add a stub for a Downloads landing page #58

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
15 changes: 15 additions & 0 deletions content/getting-GNU-Radio/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
type: getting-GNU-Radio
title: "Getting GNU Radio"
description: "GNU Radio is easily installable on Windows, Linux, Mac OS X and other operating systems"
layout: os-selector
aliases: ["Getting GNU Radio", "download"]
operating-systems:
- linux
- osx
- win
- other
---

GNU Radio has preferred installation methods for most operating systems. Pick yours!

10 changes: 10 additions & 0 deletions content/getting-GNU-Radio/linux/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Linux
operating-system: linux
fa_icon: fab fa-linux
download-link: http://example.com
---

Linux is traditionally the best-supported operating system for GNU Radio. The preferred installation method hence is typically installation through your Linux distribution's own package manager.

Make sure your Linux distribution is up to date – outdated distributions ship outdated versions of GNU Radio. The **minimum supported version** of GNU Radio is 3.8. 3.7 and before are End-of-Life.
12 changes: 12 additions & 0 deletions content/getting-GNU-Radio/osx/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Mac OS X
longtitle: Mac OS X on x86_64-based Macs
operating-system: osx
fa_icon: fab fa-apple
downloadlinks:
- MacPorts: https://wiki.gnuradio.org/index.php/MacInstall#Via_MacPorts_.28recommended.29
- "radioconda for x86-based Macs (graphical installation)": https://glare.now.sh/ryanvolz/radioconda/radioconda-.*-MacOSX-x86_64.pkg
- "radioconda for x86-based Macs (command line)": https://glare.now.sh/ryanvolz/radioconda/radioconda-.*-MacOSX-x86_64.sh
---

The recommended method for OS X is …
6 changes: 6 additions & 0 deletions content/getting-GNU-Radio/others/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Other
longtitle: Other platforms
operating-system: other
fa_icon: far fa-question-circle
---
16 changes: 16 additions & 0 deletions content/getting-GNU-Radio/win/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: Microsoft Windows
longtitle: Microsoft Windows 8.1, 10 or 11
operating-system: win
fa_icon: fab fa-windows
downloadlinks:
- "radioconda (graphical installation)": https://glare.now.sh/ryanvolz/radioconda/radioconda-.*-Windows-x86_64.exe
---

After having installed radioconda, you'll find a "radioconda" start menu entry. There, you'll find

- GNU Radio Companion, the graphical interface to GNU Radio flow graph design
(you'll want to start here!), and
- Conda Prompt, a shell where all relevant settings are done, should you need or
decide to install additional software, or build GNU Radio Out-of-Tree (OOT)
Modules.
89 changes: 89 additions & 0 deletions layouts/getting-GNU-Radio/os-selector.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{{ define "header" }}
<div class="page-header">
<div class="about_header_img"></div>
<h1 class="offset-lg-2 col-lg-8 display-5">{{ .Title }}</h1>
</div>
{{ end }}
{{ define "main" }}
<main role="main">
<div class="container-fluid bg_gray">
<div class="row px-2">
<div class="offset-lg-2">
{{ .Content }}
</div>
<div class="offset-lg-2 col-lg-8 offset-md-1 col-md-10">
<div class="row">
{{ range $index, $os := (index .Params "operating-systems") }}
{{ range (where $.Pages.ByWeight "Params.operating-system" $os) }}
<div class="col">
<div class="card">
<a class="card-img-top" data-toggle="collapse" data-parent="#os-choices" href="#collapse{{ $index }}">
{{ with .Params.fa_icon }}
<p style="padding: 1em;"><i class="fab {{ . }} fa-10x fa-fw"></i></p>
{{ end }}
{{ with .Params.logo }}
<img src="{{$os}}/{{ . }}" alt="Logo of {{.Params.title}}" />
{{ end }}
</a>
<div class="card-body">
<h5 class="card-title">
<a data-toggle="collapse" data-parent="#os-choices" href="#collapse{{ $index }}">
<emph>{{ .Params.title }}</emph>
</a>
</h5>
<p class="card-text">
{{ with .Params.longtitle }}
{{ . }}
{{ else }}
&nbsp;
{{ end }}
</p>
</div>
</div>
</div>
{{ end }}
{{ end }}
</div>
<div id="os-choices" class="mb-2">
{{ range $index, $os := (index .Params "operating-systems") }}
{{ range (where $.Pages.ByWeight "Params.operating-system" $os) }}
<div class="card">
<div class="card-header">
<h3 class="mb-0">
<a data-toggle="collapse" data-parent="#os-choices" href="#collapse{{ $index }}"> {{ .Title }}</a>
</h3>
</div>
<div id="collapse{{ $index }}" class="card-body collapse">
<ul class="list-group list-group-flush">
{{ with .Params.downloadlinks }}
{{ $downloadlist := . }}
<li class="list-group-item">
<ul class="list-group">
{{ range $index, $dlmap := (index $downloadlist) }}
{{ range $key, $val := . }}
<a target="_blank" href="{{ $val }}">
<li class="list-group-item{{ if not $index }} active{{ end }}">
<i class="fas fa-download re pr-1"></i>
Download {{ $key }} installer
{{ if not $index }} (Recommended){{ end }}
</li>
</a>
{{ end }}
{{ end }}
</ul>
</li>
{{ end }}
<li class="list-group-item">
{{ .Content }}
</li>
{{ end }}
</ul>
</div>
</div>
{{ end }}
</div>
</div>
</div>
</div>
</main>
{{ end }}