Skip to content

Commit 7d8cc45

Browse files
author
Scott Straughan
committed
Initial commit.
0 parents  commit 7d8cc45

File tree

270 files changed

+32151
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+32151
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: 'npm'
5+
directory: ''/'
6+
schedule:
7+
interval: 'weekly'

.github/workflows/build.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Build Website
2+
3+
on:
4+
push:
5+
branches: [ 'main' ]
6+
pull_request:
7+
branches: [ 'main' ]
8+
schedule:
9+
- cron: '0 0 * * *'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
env:
18+
SITE_URL: https://codeplaysoftware.github.io/sycl.tech-website/
19+
CONTENT_URL: https://codeplaysoftware.github.io/sycl.tech-content
20+
21+
jobs:
22+
# Generates a series of routes that Angular can then use to pre-render
23+
generate-routes:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
27+
- name: Set up Python 3.11
28+
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
29+
with:
30+
python-version: '3.11'
31+
cache: 'pip'
32+
- name: Install Dependencies
33+
run: pip install -r ./scripts/routes/requirements.txt --require-hashes --no-deps
34+
- run: python ./scripts/routes/generate.py "$CONTENT_URL" >> routes.txt
35+
- name: Upload to GitHub Artifacts
36+
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b
37+
with:
38+
name: routes
39+
path: routes.txt
40+
41+
# Build the Angular site
42+
build:
43+
needs: generate-routes
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
47+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
48+
with:
49+
name: routes
50+
merge-multiple: true
51+
- run: ls -a
52+
- name: Setup Node.js 22
53+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
54+
with:
55+
node-version: 22
56+
cache: 'npm'
57+
- name: Install Dependencies
58+
run: npm ci
59+
- name: Build
60+
run: npm run build -- --base-href "$SITE_URL" --configuration=production
61+
- name: Upload to GitHub Artifacts
62+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa
63+
with:
64+
path: ./dist/sycl.tech-front-end/browser
65+
66+
# Deployment the site to GitHub Pages
67+
deploy:
68+
if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'workflow_dispatch'
69+
environment:
70+
name: github-pages
71+
url: ${{ steps.deployment.outputs.page_url }}
72+
runs-on: ubuntu-latest
73+
needs: build
74+
steps:
75+
- name: Deploy to GitHub Pages
76+
id: deployment
77+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e

.github/workflows/scorecard.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Scorecard Supply-Chain Security
2+
3+
on:
4+
branch_protection_rule:
5+
schedule:
6+
- cron: '27 15 * * 0'
7+
push:
8+
branches: [ 'main' ]
9+
workflow_dispatch:
10+
11+
# Declare default permissions as read only.
12+
permissions: read-all
13+
14+
jobs:
15+
analysis:
16+
name: Scorecard analysis
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write
20+
id-token: write
21+
22+
steps:
23+
- name: 'Checkout code'
24+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25+
with:
26+
persist-credentials: false
27+
28+
- name: 'Run Analysis'
29+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
30+
with:
31+
results_file: results.sarif
32+
results_format: sarif
33+
publish_results: true
34+
35+
- name: 'Upload Artifact'
36+
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
37+
with:
38+
name: SARIF file
39+
path: results.sarif
40+
retention-days: 5
41+
42+
- name: 'Upload to Code-Scanning'
43+
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
44+
with:
45+
sarif_file: results.sarif

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.idea
2+
.angular
3+
node_modules
4+
.DS_Store
5+
dist
6+
src/environments/environment.development.ts

CODE_OF_CONDUCT.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making
6+
participation in our project and our community a harassment-free experience for everyone, regardless of age, body size,
7+
disability, ethnicity, sex characteristics, gender identity and expression , level of experience, education,
8+
socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
9+
10+
## Our Standards
11+
12+
Examples of behavior that contributes to creating a positive environment include:
13+
14+
* Using welcoming and inclusive language
15+
* Being respectful of differing viewpoints and experiences
16+
* Gracefully accepting constructive criticism
17+
* Focusing on what is best for the community
18+
* Showing empathy towards other community members
19+
20+
Examples of unacceptable behavior by participants include:
21+
22+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
23+
* Trolling, insulting/derogatory comments, and personal or political attacks
24+
* Public or private harassment
25+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
26+
* Other conduct which could reasonably be considered inappropriate in a professional setting
27+
28+
## Our Responsibilities
29+
30+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take
31+
appropriate and fair corrective action in response to any instances of unacceptable behavior.
32+
33+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits,
34+
issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any
35+
contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
36+
37+
## Scope
38+
39+
This Code of Conduct applies within all project spaces, and it also applies when an individual is representing the
40+
project or its community in public spaces. Examples of representing a project or community include using an official
41+
project e-mail address, posting via an official social media account, or acting as an appointed representative at an
42+
online or offline event. Representation of a project may be further defined and clarified by project maintainers.
43+
44+
## Enforcement
45+
46+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team
47+
at <info@codeplay.com>. All complaints will be reviewed and investigated and will result in a response that is deemed
48+
necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to
49+
the reporter of an incident. Further details of specific enforcement policies may be posted separately.
50+
51+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent
52+
repercussions as determined by other members of the project's leadership.
53+
54+
## Attribution
55+
56+
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), version 1.4,
57+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
58+
59+
---
60+
61+
If there are any issues or suggestions relating to the current set of rules, you can reach us at <info@codeplay.com>.

CONTRIBUTING.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Contributing to sycl.tech Website
2+
3+
## Pull requests
4+
5+
We really appreciate all pull requests to this project, but we also have a few guidelines in place to help keep the
6+
project consistent and reduce the noise in commits, pull requests and code. Hopefully these guidelines are clear and
7+
easy to follow, if not then feel free to add an issue to address this.
8+
9+
Before starting any development please make an issue to communicate your intent and ensure that you are not duplicating
10+
work.
11+
12+
### Formatting
13+
14+
Please ensure that any contributions are formatted using the following guidelines:
15+
16+
* Empty line at the end of each plaintext file
17+
* Use "LF" line endings
18+
* Use 2 character spaces as much as possible
19+
* Following the naming conventions of the files currently in the repository
20+
* For images, webp is preferred although for larger images you can use JPEG.
21+
* For source files, a line length of 120 is encouraged
22+
* Following the same formatting as currently in use
23+
24+
### Pull request guidelines
25+
26+
* Submit any pull request to the `main` branch, unless you are really sure you need to push your changes elsewhere.
27+
28+
* Unless your pull request is trivial, expect comments and suggestions on your pull request. We will provide feedback as
29+
soon as possible.
30+
31+
* We cannot accept or test any pull request with merge conflicts, so please fix these before submitting your pull
32+
request.
33+
34+
* Please ensure pull requests are small and focussed. This means that they should only address a single feature, change
35+
or bug fix. Larger pull requests trying to fix multiple things at once should be split into smaller pull requests.
36+
37+
* All tests must pass before a pull request is accepted.
38+
39+
* If your pull request adds a new feature, please make sure that you add new test cases to cover this feature.
40+
41+
### Commit guidelines
42+
43+
* In your commit messages, the first line should be a short summary of the changes. Following this should be an empty
44+
line, then the remaining commit message explaining the changes in more detail.
45+
46+
* Use the present tense to say what the commit changes.
47+
48+
* Check for any unnecessary whitespace changes with `git diff --check` before committing your changes.

0 commit comments

Comments
 (0)