Skip to content
Closed
3 changes: 2 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -27,3 +27,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
destination_dir: ${{ github.ref_name }}
80 changes: 80 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Sample workflow for building and deploying a Hugo site to GitHub Pages
name: Deploy Hugo site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

# Default to bash
defaults:
run:
shell: bash

jobs:
# Build job
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.128.0
steps:
- uses: actions/checkout@v2
with:
ref: v2
# Put the checked out files inside the `symbiota-docs/v2` folder
path: symbiota-docs/v2
clean: false
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Install Node.js dependencies
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"
- name: Build with Hugo
env:
HUGO_CACHEDIR: ${{ runner.temp }}/hugo_cache
HUGO_ENVIRONMENT: production
run: |
hugo \
--minify \
--baseURL "${{ steps.pages.outputs.base_url }}/"
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
22 changes: 20 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################# Default configuration ###################
# provide your domain here
baseURL = "https://biokic.github.io/symbiota-docs/"
baseURL = "https://atticus29.github.io/symbiota-docs/"
# theme
theme = "dot"
# site title
Expand All @@ -18,7 +18,7 @@ unsafe = true

############################# Default Parameters ##########################
[params]
editURL = "https://github.com/BioKIC/symbiota-docs/edit/master/content/"
editURL = "https://github.com/atticus29/symbiota-docs/edit/master/content/"
# logo is for all page
logo = ""
# logo white is for homepage logo, you can use colorful logo too...
Expand Down Expand Up @@ -155,6 +155,24 @@ hasChildren = true
url = "coll_manager"
weight = 3

# Dropdown menu
[[Languages.en.menu.main]]
weight = 9
name = "Versions"
hasChildren = true

[[Languages.en.menu.main]]
parent = "Versions"
name = "v1.0.0"
url = "master"
weight = 1

[[Languages.en.menu.main]]
parent = "Versions"
name = "v2.0.0"
url = "v2"
weight = 2

################################ Spanish Language ######################
[Languages.es]
languageName = "Es"
Expand Down
2 changes: 1 addition & 1 deletion content/about/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
title: About

---
[Symbiota Docs](https://symbiota.org/docs) is a central repository for documentation regarding Symbiota-based data portals. This site is maintained by the Symbiota Support Hub, but all Symbiota users are encouraged to contribute. [Contact Us](https://biokic.github.io/symbiota-docs/contact/) to contribute or provide feedback on this site.
[Symbiota Docs v1](https://symbiota.org/docs) is a central repository for documentation regarding Symbiota-based data portals. This site is maintained by the Symbiota Support Hub, but all Symbiota users are encouraged to contribute. [Contact Us](https://biokic.github.io/symbiota-docs/contact/) to contribute or provide feedback on this site.

[Symbiota](https://symbiota.org/) is an open-source software for managing and mobilizing biodiversity data that serves over 2,000 natural history collections and publishes over 95 million occurrence (specimen or observation) records. Visit [Symbiota.org](https://symbiota.org/) to learn more. The core Symbiota code is developed at the Arizona State University Biodiversity Knowledge Integration Center. The central code for this version of Symbiota can be found in [GitHub](https://github.com/BioKIC/Symbiota).
1 change: 1 addition & 0 deletions v2/tmp.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test