Skip to content

Commit 391ebdd

Browse files
Antonio-Lagunaromainmenkejonathantneal
authored
Up to date (#68)
* Bumping all to 4 It's already on all browser engines * Adding color module level 5 functions Fixes #61 * Adding container queries * Fixing title and description for container queries * Some updates * Some updates * Adding code of conduct * Astro WIP * Fixing badges * feedback (#71) * Linting * Adding Dark Mode Toggler * Undoing * patch for #68 (#70) * Housekeeping * Enabling tests with GH Actions * Updating CI on the README * Unneeded file * Exporting ESM too * Adding build * Preparing deploy Co-authored-by: Romain Menke <[email protected]> Co-authored-by: Jonathan Neal <[email protected]>
1 parent d917390 commit 391ebdd

Some content is hidden

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

56 files changed

+18274
-558
lines changed

.github/workflows/deploy.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v2
16+
with:
17+
node-version: '16'
18+
19+
- name: Cache dependencies
20+
uses: actions/cache@v2
21+
with:
22+
path: ~/.npm
23+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
24+
restore-keys: |
25+
${{ runner.os }}-node-
26+
27+
- run: npm ci
28+
- run: npm run build
29+
- name: Deploy
30+
uses: peaceiris/actions-gh-pages@v3
31+
if: ${{ github.ref == 'refs/heads/main' }}
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./dist
35+
cname: 'cssdb.org'

.github/workflows/test.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: test
2+
on:
3+
push:
4+
5+
concurrency:
6+
group: branch-node-${{ github.ref }}
7+
cancel-in-progress: true
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node: [12, 14, 16]
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ matrix.node }}
20+
21+
- run: npm ci --ignore-scripts
22+
- run: npm run test --if-present

.gitignore

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
gh-pages
22
node_modules
3-
.*
4-
!.editorconfig
5-
!.gitignore
6-
!.travis.yml
7-
*.log*
3+
dist
4+
public/images/badges
5+
cssdb.mjs

.travis.yml

-6
This file was deleted.

CODE_OF_CONDUCT.md

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

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ developed outside the [CSSWG] have appeared in browsers behind flags. This is
2626
too ambiguous for the web development community, and a more accountable process
2727
is desired.
2828

29-
[cli-img]: https://img.shields.io/travis/csstools/cssdb.svg
30-
[cli-url]: https://travis-ci.org/csstools/cssdb
29+
[cli-img]: https://github.com/csstools/cssdb/actions/workflows/test.yml/badge.svg
30+
[cli-url]: https://github.com/csstools/cssdb/actions/workflows/test.yml
3131
[cssdb]: https://github.com/csstools/cssdb
3232
[CSSWG]: https://wiki.csswg.org/spec
3333
[inside view of the CSSWG]: http://fantasai.inkedblade.net/weblog/2011/inside-csswg/process

astro.config.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export default {
2+
// projectRoot: '.', // Where to resolve all URLs relative to. Useful if you have a monorepo project.
3+
// pages: './src/pages', // Path to Astro components, pages, and data
4+
// dist: './dist', // When running `astro build`, path to final static output
5+
// public: './public', // A folder of static files Astro will copy to the root. Useful for favicons, images, and other files that don’t need processing.
6+
buildOptions: {
7+
site: 'https://cssdb.org'
8+
}
9+
};

0 commit comments

Comments
 (0)