Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["fb/community"]

# 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

jobs:
# Build job
build:
runs-on: ubuntu-latest
container: ruby:3.3
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build site
run: bundle install && bundle exec jekyll build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# 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
74 changes: 74 additions & 0 deletions _data/new-data/community/page-data.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
headline: Swift Community
read-more: Read more
hero-cards:
- image:
light: /assets/images/community/community-hero.png
dark: /assets/images/community/community-hero-dark.png
alt: Community Hero image
- image:
light: /assets/images/community/community-showcase@2x.png
dark: /assets/images/community/community-showcase-dark@2x.png
alt: Community Showcase image
label: Community Showcase
link: https://forums.swift.org
- image:
light: /assets/images/community/featured-packages@2x.png
dark: /assets/images/community/featured-packages-dark@2x.png
alt: Featured Package image
label: Featured Package
link: /packages/
section2:
headline: Explore the forums
text: The community's official channel for answering questions and discussing the development of Swift
cards:
- title: Using Swift
text: This area is intended for users to get help with or ask questions about Swift or its related tools and is not for discussion about work being done to the language itself.
link: /
- title: Swift development
text: Topics related to development and implementation of Swift.
link: /
- title: Swift evolution
text: Topics related to the Swift Evolution Process. Another line here.
link: /
- title: Related projects
text: Dedicated to open source projects within the Swift community that are separate from the Swift language itself.
link: /
section3:
headline: Contribute to Swift
text: Swift is open to code and non-code contributions, get involved today
cards:
- title: Open pull requests and issues
text: Contributions are welcome! Each Swift project has a contributing file that describes its best practices.
link: /
- title: Paticipate in language design
text: Major Swift language features are openly developed as part of the Swift Evolution process.
link: /
- title: Answers questions on Swift Forums
text: Help others by answering each others questions. Another line here.
link: /
- title: Learn about workgroups
text: Community groups coordinating focused efforts within the Swift project.
link: /
section4:
headline: Follow Swift
links:
- image: /
label: Bluesky
link: /
alt: Bluesky icon
- image: /
label: Mastodon
link: /
alt: Mastodon icon
- image: /
label: Twitter/X
link: /
alt: Twitter/X icon
- image: /
label: Swift blog
link: /
alt: Swift blog icon
- image: /
label: GitHub
link: /
alt: GitHub icon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/community/community-dark@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/community/community-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/stylesheets/new-stylesheets/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
@use 'pages/get-started';
@use 'pages/blog';
@use 'pages/post';
@use 'pages/community';
4 changes: 4 additions & 0 deletions assets/stylesheets/new-stylesheets/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@
--dropdown-check-icon: url('/assets/images/icon-check-dark.svg');
--dropdown-check-icon-inverse: url('/assets/images/icon-check-light.svg');
--dropdown-all-background: #384ff0;

--community-featured-image-1: url('/assets/images/community/community-bg-hero@2x.png');
}

@mixin dark-theme() {
Expand Down Expand Up @@ -251,4 +253,6 @@
--dropdown-check-icon: url('/assets/images/icon-check-light.svg');
--dropdown-check-icon-inverse: url('/assets/images/icon-check-dark.svg');
--dropdown-all-background: #1dc2fe;

--community-featured-image-1: url('/assets/images/community/community-dark@2x.png');
}
Loading
Loading