From d64a2c6b129e3e96a91864622ac1d9080c96fcfb Mon Sep 17 00:00:00 2001 From: polyester Date: Thu, 16 May 2024 12:57:01 +0200 Subject: [PATCH] cutting a 2023 branch that can be deployed --- .../{build_deploy.yml => build_deploy_2023.yml} | 10 +++++----- README.md | 8 ++------ docs/conf.py | 15 ++++++++------- 3 files changed, 15 insertions(+), 18 deletions(-) rename .github/workflows/{build_deploy.yml => build_deploy_2023.yml} (89%) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy_2023.yml similarity index 89% rename from .github/workflows/build_deploy.yml rename to .github/workflows/build_deploy_2023.yml index ae8930209..7002c5980 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy_2023.yml @@ -3,15 +3,15 @@ name: build/deploy training.plone.org on: push: branches: - - "main" + - "2023" workflow_dispatch: jobs: build_deploy: runs-on: ubuntu-latest - environment: - name: training.plone.org - url: https://training.plone.org + environment: + name: 2023.training.plone.org + url: https://2023.training.plone.org steps: - uses: actions/checkout@v4 @@ -19,7 +19,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.12" - cache: 'pip' + cache: "pip" - name: Install dependencies run: | diff --git a/README.md b/README.md index dbf2deb99..8a395cc0d 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,21 @@ -[![Testing Status](https://github.com/plone/training/actions/workflows/test.yml/badge.svg?branch=main "Testing Status")](https://github.com/plone/training/actions/workflows/test.yml) +[![Testing Status](https://github.com/plone/training/actions/workflows/test.yml/badge.svg?branch=2023 "Testing Status")](https://github.com/plone/training/actions/workflows/test.yml) # Training [training.plone.org](https://training.plone.org/) is a collection of different trainings, developed and created by the Plone Community. - ## Contribute A guide on how to contribute to the trainings can be found in [Contributing to Plone Trainings Documentation](https://training.plone.org/contributing/). - ## Support If you have issues, please open an issue in our [Issue Tracker](https://github.com/plone/training/issues) or ask a question on our [Community Forum, Training category](https://community.plone.org/c/training/46). - ## License The project is licensed under the [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/) by the [Plone Foundation](https://plone.org). - ## The landing page -The code for the landing page at https://training.plone.org is in another repository at https://github.com/plone/training.plone.org. +The code for the landing page at is in another repository at . diff --git a/docs/conf.py b/docs/conf.py index 1bd5ac58d..c92777efb 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,7 @@ # -- Project information ----------------------------------------------------- -project = "Plone Training" +project = "Plone Training 2023" copyright = """The text and illustrations in this website are licensed by the Plone Foundation under a Creative Commons Attribution 4.0 International license""" @@ -31,9 +31,9 @@ # built documents. # # The short X.Y version. -version = year +version = 2023 # The full version, including alpha/beta/rc tags. -release = year +release = 2023 # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -162,7 +162,7 @@ ] # Used by sphinx_sitemap to generate a sitemap -html_baseurl = "https://training.plone.org/" +html_baseurl = "https://2023.training.plone.org/" # https://sphinx-sitemap.readthedocs.io/en/latest/advanced-configuration.html#customizing-the-url-scheme sitemap_url_scheme = "{link}" @@ -172,6 +172,7 @@ html_static_path = ["_static"] html_theme_options = { + "announcement": "⚠️ You are viewing the 2023 version of Plone Training. View the latest version. ⚠️", "logo": { "text": "Plone Training 2023", }, @@ -211,10 +212,10 @@ # -- OpenGraph configuration ---------------------------------- -ogp_site_url = "https://training.plone.org/" +ogp_site_url = "https://2023.training.plone.org/" ogp_description_length = 200 -ogp_image = "https://training.plone.org/_static/Plone_logo_square.png" -ogp_site_name = "Plone Training" +ogp_image = "https://2023.training.plone.org/_static/Plone_logo_square.png" +ogp_site_name = "Plone Training 2023" ogp_type = "website" ogp_custom_meta_tags = [ '',