diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2957305f..325be4f8 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -7,7 +7,7 @@ on: jobs: deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 with: @@ -27,3 +27,4 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public + destination_dir: ${{ github.ref_name }} diff --git a/.github/workflows/hugo.yml b/.github/workflows/hugo.yml new file mode 100644 index 00000000..2e0cb1c1 --- /dev/null +++ b/.github/workflows/hugo.yml @@ -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 diff --git a/config.toml b/config.toml index f5642b6b..207405b1 100644 --- a/config.toml +++ b/config.toml @@ -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 @@ -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... @@ -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" diff --git a/content/about/_index.en.md b/content/about/_index.en.md index 79a77aa0..1fc8ffc6 100644 --- a/content/about/_index.en.md +++ b/content/about/_index.en.md @@ -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). diff --git a/v2/tmp.txt b/v2/tmp.txt new file mode 100644 index 00000000..9daeafb9 --- /dev/null +++ b/v2/tmp.txt @@ -0,0 +1 @@ +test