From: Pieter De Praetere Date: Wed, 13 Jan 2021 20:43:58 +0000 (+0100) Subject: Add themes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21b1a4f3b20739327c1943cbafe9bfc56484d659;p=stands-website.git Add themes --- diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f9c3496 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,32 @@ +[submodule "checkmk-static"] +path = content/stands/Checkmk +url = https://github.com/tribe29/checkmk-fosdem-static.git + +[submodule "checkmk-code"] +path = static/stands/Checkmk +url = https://github.com/tribe29/checkmk-fosdem-content.git + +[submodule "free software foundation europe-static"] +path = content/stands/Free Software Foundation Europe +url = https://git.fsfe.org/FSFE/fosdem21-static.git + +[submodule "free software foundation europe-code"] +path = static/stands/Free Software Foundation Europe +url = https://git.fsfe.org/FSFE/fosdem21-content.git + +[submodule "kiwi tcms-static"] +path = content/stands/Kiwi TCMS +url = https://github.com/kiwitcms/fosdem-2021-stand-static.git + +[submodule "kiwi tcms-code"] +path = static/stands/Kiwi TCMS +url = https://github.com/kiwitcms/fosdem-2021-stand-content.git + +[submodule "pharo-static"] +path = content/stands/Pharo +url = https://github.com/pharo-divulgation/pharo-fosdem-static.git + +[submodule "pharo-code"] +path = static/stands/Pharo +url = https://github.com/pharo-divulgation/pharo-fosdem-content.git + diff --git a/README.md b/README.md index 2fd001b..3d571c4 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,11 @@ We use Bootstrap (4.5) for styling, so you can as well. jQuery is included (for Please not that you cannot load any assets (images, css or js) from any other domain than stands.fosdem.org. +## Local development environment +To test your changes locally, this is what you can do. + + + ## Feedback We realise this is certainly not the best possible option, but while we are fairly confident we can organise a physical edition, going virtual is new for us as well. If you have any ideas for improvements, feedback or anything else, please contact us diff --git a/content/themes/database-engines/_index.md b/content/themes/database-engines/_index.md new file mode 100644 index 0000000..53e82d6 --- /dev/null +++ b/content/themes/database-engines/_index.md @@ -0,0 +1,6 @@ +--- +title: Database engines +description: | + None +logo: img/lib/material-icons/database-engines.svg +--- diff --git a/content/themes/desktop-environments/_index.md b/content/themes/desktop-environments/_index.md new file mode 100644 index 0000000..8a64fed --- /dev/null +++ b/content/themes/desktop-environments/_index.md @@ -0,0 +1,6 @@ +--- +title: Desktop environments +description: | + None +logo: img/lib/material-icons/desktop-environments.svg +--- diff --git a/content/themes/developer-environment/_index.md b/content/themes/developer-environment/_index.md new file mode 100644 index 0000000..ef49685 --- /dev/null +++ b/content/themes/developer-environment/_index.md @@ -0,0 +1,6 @@ +--- +title: Developer environment +description: | + None +logo: img/lib/material-icons/developer-environment.svg +--- diff --git a/content/themes/education/_index.md b/content/themes/education/_index.md new file mode 100644 index 0000000..dd809eb --- /dev/null +++ b/content/themes/education/_index.md @@ -0,0 +1,6 @@ +--- +title: Education +description: | + None +logo: img/lib/material-icons/education.svg +--- diff --git a/content/themes/gaming/_index.md b/content/themes/gaming/_index.md new file mode 100644 index 0000000..4d52c59 --- /dev/null +++ b/content/themes/gaming/_index.md @@ -0,0 +1,6 @@ +--- +title: Gaming +description: | + None +logo: img/lib/material-icons/gaming.svg +--- diff --git a/content/themes/ham-radio/_index.md b/content/themes/ham-radio/_index.md new file mode 100644 index 0000000..9d9edf1 --- /dev/null +++ b/content/themes/ham-radio/_index.md @@ -0,0 +1,6 @@ +--- +title: HAM Radio +description: | + None +logo: img/lib/material-icons/ham-radio.svg +--- diff --git a/content/themes/hardware/_index.md b/content/themes/hardware/_index.md new file mode 100644 index 0000000..b0892be --- /dev/null +++ b/content/themes/hardware/_index.md @@ -0,0 +1,6 @@ +--- +title: Hardware +description: | + None +logo: img/lib/material-icons/hardware.svg +--- diff --git a/content/themes/iot/_index.md b/content/themes/iot/_index.md new file mode 100644 index 0000000..3cbea07 --- /dev/null +++ b/content/themes/iot/_index.md @@ -0,0 +1,6 @@ +--- +title: IoT +description: | + None +logo: img/lib/material-icons/iot.svg +--- diff --git a/content/themes/multimedia-and-graphics/_index.md b/content/themes/multimedia-and-graphics/_index.md new file mode 100644 index 0000000..52123e8 --- /dev/null +++ b/content/themes/multimedia-and-graphics/_index.md @@ -0,0 +1,6 @@ +--- +title: Multimedia and graphics +description: | + None +logo: img/lib/material-icons/multimedia-and-graphics.svg +--- diff --git a/content/themes/office-suites-and-productivity/_index.md b/content/themes/office-suites-and-productivity/_index.md new file mode 100644 index 0000000..07f8551 --- /dev/null +++ b/content/themes/office-suites-and-productivity/_index.md @@ -0,0 +1,6 @@ +--- +title: Office suites and productivity +description: | + None +logo: img/lib/material-icons/office-suites-and-productivity.svg +--- diff --git a/content/themes/programming-languages/_index.md b/content/themes/programming-languages/_index.md new file mode 100644 index 0000000..7035a18 --- /dev/null +++ b/content/themes/programming-languages/_index.md @@ -0,0 +1,6 @@ +--- +title: Programming languages +description: | + None +logo: img/lib/material-icons/programming-languages.svg +--- diff --git a/content/themes/system-administration/_index.md b/content/themes/system-administration/_index.md new file mode 100644 index 0000000..b199aa3 --- /dev/null +++ b/content/themes/system-administration/_index.md @@ -0,0 +1,6 @@ +--- +title: System administration +description: | + None +logo: img/lib/material-icons/system-administration.svg +--- diff --git a/scripts/create_skeleton_for_accepted_stands.py b/scripts/create_skeleton_for_accepted_stands.py index e1ace44..2ef3f04 100644 --- a/scripts/create_skeleton_for_accepted_stands.py +++ b/scripts/create_skeleton_for_accepted_stands.py @@ -2,6 +2,7 @@ import requests from os import mkdir from os.path import exists, isfile, isdir +import configparser def fetch(): @@ -10,6 +11,19 @@ def fetch(): return result.json() +def create_submodule_config(stand_o, config): + if stand_o['submission']['digital_edition']['stand_website_static']: + config['submodule "{0}-static"'.format(stand_o['submission']['project']['name'].lower())] = { + 'path': 'content/stands/{0}'.format(stand_o['submission']['project']['name']), + 'url': stand_o['submission']['digital_edition']['stand_website_static'] + } + if stand_o['submission']['digital_edition']['stand_website_static']: + config['submodule "{0}-code"'.format(stand_o['submission']['project']['name'].lower())] = { + 'path': 'static/stands/{0}'.format(stand_o['submission']['project']['name']), + 'url': stand_o['submission']['digital_edition']['stand_website_code'] + } + + def create_skeleton(stand_o): path = '../content/stands/{0}'.format(stand_o['submission']['project']['name'].lower()) static_path = '../static/stands/{0}'.format(stand_o['submission']['project']['name'].lower()) @@ -51,6 +65,7 @@ Welcome to the {0} stand! def main(): print('Fetching list of accepted stands ... ', end=None) + submodule_config = configparser.ConfigParser() try: accepted_stands = fetch() except Exception as e: @@ -66,8 +81,17 @@ def main(): except Exception as e: print('[FAILED]') print('\t\t {0}'.format(e)) + + try: + create_submodule_config(stand, submodule_config) + except Exception as e: + print('[FAILED]') + print('\t\t {0}'.format(e)) else: print('[OK]') + + with open('../.gitmodules', 'w') as configfile: + submodule_config.write(configfile) return 0 diff --git a/scripts/playbook/fetch_stand_code.yml b/scripts/playbook/fetch_stand_code.yml deleted file mode 100644 index 960df48..0000000 --- a/scripts/playbook/fetch_stand_code.yml +++ /dev/null @@ -1,16 +0,0 @@ ---- -hosts: localhost -tasks: - - name: Fetch list of accepted stands - uri: - url: https://stands.fosdem.org/submission/api/accepted/ - return_content: yes - register: accepted_stands - - name: Create stands content directories - file: - path: "/var/opt/app/fosdem_stands/html/content/stands/{{item['submission']['project']['name']}}" - state: directory - with_items: "{{accepted_stands.json}}" - - name: Download content files - git: - \ No newline at end of file