From 106a877ce3815ffd5d79ebea41a129a14be4e4cb Mon Sep 17 00:00:00 2001 From: Don Naro Date: Mon, 29 Jan 2024 15:00:09 +0000 Subject: [PATCH] improve training page responsiveness (#413) --- conf.py | 1 + data/training.yaml | 23 +++++++++ pages/ansible-community-training.md | 45 +---------------- templates/training.tmpl | 24 ++++++++++ .../sass/_ansible-content.scss | 23 --------- themes/ansible-community/sass/_training.scss | 48 +++++++++++++++++++ themes/ansible-community/sass/main.scss | 1 + 7 files changed, 99 insertions(+), 66 deletions(-) create mode 100644 data/training.yaml create mode 100644 templates/training.tmpl create mode 100644 themes/ansible-community/sass/_training.scss diff --git a/conf.py b/conf.py index 35ef9033..d640901d 100644 --- a/conf.py +++ b/conf.py @@ -1436,6 +1436,7 @@ "meta": load_data('data/meta.yaml'), "ecosystem": load_data('data/ecosystem.yaml'), "homepage": load_data('data/homepage.yaml'), + "training": load_data('data/training.yaml'), } except ImportError: diff --git a/data/training.yaml b/data/training.yaml new file mode 100644 index 00000000..0401e523 --- /dev/null +++ b/data/training.yaml @@ -0,0 +1,23 @@ +community_cards: + create_collection: + heading: Creating an Ansible collection + description: Learn how to create your own Ansible collection. + lab_url: https://play.instruqt.com/embedv2/redhat/tracks/ansible-community-creating-your-own-collection?token=em_zcnbza2ex66zqptw + test_pr: + heading: Testing a pull request locally + description: Learn how to test a pull request locally with Ansible. + lab_url: https://play.instruqt.com/embedv2/redhat/tracks/ansible-community-testing-pull-request-locally?token=em_6ke967cktu5m9cww + develop_module: + heading: Developing an Ansible module + description: Learn how to develop an Ansible module. + lab_url: https://play.instruqt.com/embedv2/redhat/tracks/ansible-community-developing-ansible-module?token=em_W1mnN4dZouYAhFBI + fix_collection_bug: + heading: Fixing bugs in collections + description: Learn how to fix a bug in your Ansible code. + lab_url: https://play.instruqt.com/embedv2/redhat/tracks/community-fixing-a-bug?token=em_l4flalsa12evd97a + add_integration_test: + heading: Adding integration tests + description: Learn how to add integration tests to your Ansible collections. + lab_url: https://play.instruqt.com/embedv2/redhat/tracks/adding-integration-tests-to-ansible-collections?token=em_6uMp_ZmBv4Fuug-z +labels: + launch: Launch the self-paced lab diff --git a/pages/ansible-community-training.md b/pages/ansible-community-training.md index dee16d9c..1a1434a3 100644 --- a/pages/ansible-community-training.md +++ b/pages/ansible-community-training.md @@ -1,48 +1,7 @@ --- +description: '' slug: ansible-community-training title: Ansible Community Training type: text +template: training.tmpl --- - -Experiment, learn, and solve real-world problems with pre-configured Ansible environments that run in your browser and at your convenience. - - -
-
-

Creating an Ansible collection

-

Learn how to create your own Ansible collection.

-
- Launch the self-paced lab