Skip to content

Commit

Permalink
Merge pull request #91 from matterhorn103/downloads
Browse files Browse the repository at this point in the history
Reorganized downloads grid
  • Loading branch information
ghutchis authored Sep 16, 2024
2 parents c3ca098 + b4744e6 commit f3df0cc
Show file tree
Hide file tree
Showing 2 changed files with 238 additions and 29 deletions.
11 changes: 10 additions & 1 deletion source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,16 @@
"macurl": f"https://github.com/OpenChemistry/avogadrolibs/releases/download/{version}/Avogadro2-{version}-Darwin.dmg",
"macarmurl": f"https://github.com/OpenChemistry/avogadrolibs/releases/download/{version}/Avogadro2-{version}-Darwin-arm64.dmg",
"winurl": f"https://github.com/OpenChemistry/avogadrolibs/releases/download/{version}/Avogadro2-{version}-win64.exe",
"appurl": f"https://github.com/OpenChemistry/avogadrolibs/releases/download/{version}/Avogadro2-x86_64.AppImage"
"appurl": f"https://github.com/OpenChemistry/avogadrolibs/releases/download/{version}/Avogadro2-x86_64.AppImage",
"sourceurl": f"https://github.com/OpenChemistry/avogadrolibs/archive/refs/tags/{version}.zip",
}

myst_url_schemes = {
"http": None,
"https": None,
"release": f"https://github.com/OpenChemistry/avogadrolibs/releases/download/{version}/Avogadro2-{version}-" + "{{file}}",
"release-no-version": f"https://github.com/OpenChemistry/avogadrolibs/releases/download/{version}/Avogadro2-" + "{{file}}",
"source": f"https://github.com/OpenChemistry/avogadrolibs/archive/refs/tags/{version}" + "{{file}}",
}

# List of patterns, relative to source directory, that match files and
Expand Down
256 changes: 228 additions & 28 deletions source/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,246 @@

# Install

In addition to installing the latest release ({{release}}), there are nightly builds and anyone can build Avogadro from source code.
Most users will want to use the current official release ({{release}}).

:::{card}
If you have problems using the current release or want to use the latest features, try out one of the **"nightly" builds** created every night from the current source code, which contains all improvements and bug fixes since the last release.

We're open-source, so if you would like to compile Avogadro yourself from the code, you can -- see [Building Source Code](install-build) for more on how.


::::::{grid}
:gutter: 0

% Title row
::::{grid-item}
:columns: 4 4 2 2
% Empty
::::


::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none
:class-card: sd-font-weight-bold sd-bg-light sd-text-dark
Current Release ({{release}})
::::


::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:class-header: sd-font-weight-bold sd-bg-light
{fab}`apple;fa-2x` MacOS
^^^
{{ '<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="' + macurl + '"><span>Download DMG</span></a>'}}
++++
<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="https://nightly.link/OpenChemistry/avogadrolibs/workflows/build_cmake/master/macOS.dmg.zip"><span>Download Nightly Build</span></a>
:shadow: none
:class-card: sd-font-weight-bold sd-bg-light sd-text-dark
Nightly Build
::::


% Mac row
::::{grid-item-card}
:columns: 4 4 2 2
:text-align: center
:shadow: none
:class-card: sd-font-weight-bold sd-bg-light sd-text-dark
{fab}`apple;fa-2x`

macOS
::::


::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none

:::{button-link} https://github.com/OpenChemistry/avogadrolibs/releases/latest/download/Avogadro2-1.99.0-Darwin-arm64.dmg
:ref-type: myst
:color: primary
:outline:
Download DMG (Apple Silicon)
:::

:::{button-link} https://github.com/OpenChemistry/avogadrolibs/releases/latest/download/Avogadro2-1.99.0-Darwin.dmg
:color: primary
:outline:
Download DMG (Intel)
:::
::::


:::{card}
::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:class-header: sd-font-weight-bold sd-bg-light
{fab}`windows;fa-2x` Windows
^^^
{{ '<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="' + winurl + '"><span>Download Installer</span></a>'}}
++++
<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="https://nightly.link/OpenChemistry/avogadrolibs/workflows/build_cmake/master/Win64.exe.zip"><span>Download Nightly Build</span></a>
:shadow: none

:::{button-link} https://nightly.link/OpenChemistry/avogadrolibs/workflows/build_cmake/master/macOS.dmg.zip
:color: secondary
:outline:
Download Nightly Build (Intel)
:::
::::

:::{card}

% Windows row
::::{grid-item-card}
:columns: 4 4 2 2
:text-align: center
:class-header: sd-font-weight-bold sd-bg-light
{fab}`linux;fa-2x` Linux
^^^
{{ '<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="' + appurl + '"><span>Download AppImage</span></a>'}} <a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="https://dl.flathub.org/repo/appstream/org.openchemistry.Avogadro2.flatpakref"><span>Download Flatpak</span></a>
++++
<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="https://nightly.link/OpenChemistry/avogadrolibs/workflows/build_cmake/master/Avogadro2.AppImage.zip"><span>Download Nightly AppImage</span></a>
<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="build.html"><span>Build from source</span></a>
:shadow: none
:class-card: sd-font-weight-bold sd-bg-light sd-text-dark
{fab}`windows;fa-2x`

Windows
::::


::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none

:::{button-link} https://github.com/OpenChemistry/avogadrolibs/releases/latest/download/Avogadro2-1.99.0-win64.exe
:color: primary
:outline:
Download Installer
:::
::::

:::{card}

::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:class-header: sd-font-weight-bold sd-bg-light sd-text-danger
{fab}`freebsd;fa-2x` FreeBSD
^^^
<a class="sd-sphinx-override sd-btn sd-text-wrap sd-btn-outline-primary reference external" href="https://www.freshports.org/science/avogadro2/"><span>`pkg install avogadro2`</span></a>
:shadow: none

:::{button-link} https://nightly.link/OpenChemistry/avogadrolibs/workflows/build_cmake/master/Win64.exe.zip
:color: secondary
:outline:
Download Nightly Build
:::
::::


% Linux row
::::{grid-item-card}
:columns: 4 4 2 2
:text-align: center
:shadow: none
:class-card: sd-font-weight-bold sd-bg-light sd-text-dark
{fab}`linux;fa-2x`

Linux
::::

::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none

:::{button-link} https://github.com/OpenChemistry/avogadrolibs/releases/latest/download/Avogadro2-x86_64.AppImage
:color: primary
:outline:
Download AppImage
:::

:::{button-link} https://flathub.org/apps/org.openchemistry.Avogadro2
:color: primary
:outline:
Download Flatpak
:::

:::{button-link} https://repology.org/project/avogadro2/versions
:color: primary
:outline:
Check your distro's repositories
:::
::::


::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none

:::{button-link} https://nightly.link/OpenChemistry/avogadrolibs/workflows/build_cmake/master/Avogadro2.AppImage.zip
:color: secondary
:outline:
Nightly AppImage
:::
::::


% BSD row
::::{grid-item-card}
:columns: 4 4 2 2
:text-align: center
:shadow: none
:class-card: sd-font-weight-bold sd-bg-light sd-text-dark
{fab}`freebsd;fa-2x`

FreeBSD
::::

::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none

:::{button-link} https://www.freshports.org/science/avogadro2/
:color: primary
:outline:
`pkg install avogadro2`
:::
::::

::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none
% Empty
::::


% Source code row
::::{grid-item-card}
:columns: 4 4 2 2
:text-align: center
:shadow: none
:class-card: sd-font-weight-bold sd-bg-light sd-text-dark
{fas}`code;fa-2x`

Source Code
::::

::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none

:::{button-link} https://github.com/OpenChemistry/avogadrolibs/releases/latest/
:color: primary
:outline:
`avogadrolibs`
:::
:::{button-link} https://github.com/OpenChemistry/avogadroapp/releases/latest/
:color: primary
:outline:
`avogadroapp`
:::
::::

::::{grid-item-card}
:columns: 4 4 5 5
:text-align: center
:shadow: none

:::{button-link} https://github.com/OpenChemistry/avogadrolibs
:color: secondary
:outline:
Avogadro on GitHub {fab}`github;fa-1x`
:::
::::

::::::


```{toctree}
---
Expand Down

0 comments on commit f3df0cc

Please sign in to comment.