At CommerceQuest, we're creating an increasing number of evergreen "community docs", e.g.:
- Hackathon/meetup blueprint;
- Guides on how to contribute to our Open Platform (Spryker/Propel/Oryx);
- Community Ranks (individual/company);
- Overview of community extensions;
- (historical) hackathon projects/logs;
- etcβ¦
Unfortunately these docs...
- ...don't really fit the available CQ forum format;
- ...can't go on other Spryker web properties like www.spryker.com or docs.spryker.com because either the content doesn't fit, or we can't integrate these in short term because those other properties are currently being reworked.
So we needed an (at minimum temporary) solution.
Create a new community website/landingpage that can host our (non Spryker/Propel/Oryx software related) community docs.
Prerequisites:
- Free & easy to host (e.g. Github);
- Easy to contribute to for Devs and Non-Devs (e.g. Markdown);
- Fast (SSG/ Flat file);
- CommerceQuest branded;
- Avoid confusion with other Spryker/Propel/Oryx websites;
- Some decent template available to get up-and running quickly.
So at our Turbine x Spryker hackathon in May 2024, this repo was created to make this happen π
- Astro
- TailwindCSS
- ScrewFast Monolingual template
- Turbine's Hamburgers π & Club-Mate π§ (as the first iteration of this site was made at the Spryker x Turbine hackathon)
Important
Note that this repo contains the website and the docs contained within that website, NOT the CommerceQuest forum.
See the open issues for a full list of known issues πͺ² and proposed features.
Contributions are what make our open community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated π.
If you simply want to update any of our existing docs:
- Go to the docs and browse to the article you want to adjust;
- On the bottom of the page, click "βοΈ Edit page"
- Make your edits, but leave the frontmatter (= the text on top of the page between the --- lines) intact;
- Click the green "Commit changes" button in the top right, add your commit message and click the green sign off button.
OR, if you want to create a new article:
- Go to /src/content/docs and create a new folder (these act as categories);
- In the new folder, create a new .MDX document by clicking "Add file > Create a new file" in the top right;
- Name your file (ideally the same as the label you use below);
- Create your new article, starting with the frontmatter code below:
---
title: Title of your new page
description: Description of your new page
sidebar:
label: Short name for your page
order: single or two digit number
---
Your article content goes here.
- Click the green "Commit changes" button in the top right, add your commit message and click the green sign off button.
Tip
If this is your first encounter with Markdown or you need a refresher, Check out this video and/or this Markdown Cheatsheet
If you feel the need to go the extra mile, Astro also has some bonus Markdown features and even MDX.
If you have a suggestion that would make our community website better, please fork the repo and create a pull request. You can also simply open an issue with the tag "bug" or "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project;
- Create your Feature Branch;
- Commit your Changes;
- Push to the Branch;
- Open a Pull Request.
Once your cloned the repository to your computer, open your terminal and navigate to the project's root directory.
Start by installing the project dependencies by executing:
npm ci
This command will install all the necessary dependencies defined in the package.lock
file.
To use Docker for setting up your local environment, follow these steps:
- Ensure Docker and Docker Compose are installed on your machine.
- Build and start the Docker container by running the following command from the project's root directory:
- Execute:
docker compose up
This will build the Docker image and start the container with all necessary dependencies.
If you need a copy of the node_modules
directory on your host machine you can run the following command: docker cp $(docker compose ps -q web):/app/node_modules .
;
With dependencies installed, you can utilize the following npm scripts to manage your project's development lifecycle:
npm run dev
: Starts a local development server with hot reloading enabled.npm run preview
: Serves your build output locally for preview before deployment.npm run build
: Bundles your site into static files for production.
For detailed help with Astro CLI commands, visit Astro's documentation.
To run these command you can either:
- Open a bash into the container by executing
docker compose run -p 4321:4321 web /bin/bash
- Use the command directly
docker compose run -p 4321:4321 web <INSERT NPM COMMAND HERE>
Before deployment, you need to create a production build:
npm run build
This creates a dist/
directory with your built site (configurable via outDir in Astro).
ScrewFast organizes modular components, content, and layouts to streamline development and content management.
src/
βββ components/ # Reusable components
β βββ Meta.astro # Meta component for SEO
β βββ sections/ # Components for various sections of the website
β βββ ThemeIcon.astro # Component for toggling light/dark themes
β βββ ui/ # UI components categorized by functionality
βββ content/ # Markdown files for blog posts, insights, products, and site configuration
β βββ blog/
β βββ docs/
β βββ insights/
β βββ config.ts # Contains site-wide configuration options
βββ data_files/ # Strings stored as JSON files
βββ images/ # Static image assets for use across the website
βββ layouts/ # Components defining layout templates
β βββ MainLayout.astro # The main wrapping layout for all pages
βββ pages/ # Astro files representing individual pages and website sections
β βββ 404.astro # Custom 404 page
β βββ blog/
β βββ fr/ # Localized content
β βββ contact.astro
β βββ index.astro # The landing/home page
β βββ insights/
β βββ products/
β βββ robots.txt.ts # Dynamically generates robots.txt
β βββ services.astro
βββ styles/ # CSS styles
βββ utils/ # Shared utility functions and helpers
Static files served directly to the browser are within the public
directory at the root of the project.
public/
βββ scripts/
βββ vendor/
βββ gsap/ # Animations powered by GSAP (GreenSock Animation Platform)
β βββ gsap.min.js
βββ lenis/ # Lenis script for smooth scrolling effects
β βββ lenis.js
βββ preline/ # Preline UI plugins
βββ accordion/
βββ collapse/
βββ dropdown/
βββ overlay/
βββ tabs/
The scripts in the public/scripts/vendor
directory are essential for the interactivity and aesthetic features of the website. Do not remove these unless you plan to replace their functionality.
Guido X Jansen
Global Business & Technology Evangelist @ Spryker
@gxjansen - [email protected]