Skip to content

Commit

Permalink
Add versioning (#7)
Browse files Browse the repository at this point in the history
* Initialize auto

* Use jsdelivr to serve CSS

* Include license in CSS file
  • Loading branch information
andrewh0 authored May 8, 2021
1 parent af67f54 commit 1814f9f
Show file tree
Hide file tree
Showing 9 changed files with 1,242 additions and 17 deletions.
7 changes: 7 additions & 0 deletions .autorc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"plugins": [
"git-tag"
],
"owner": "andrewh0",
"repo": "okcss",
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
ignore
_site
_site
.env
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
**OK.css** is a
[classless CSS framework](https://css-tricks.com/no-class-css-frameworks/). Dropping it into your HTML will make your page look decent — no need to reference documentation, think about responsiveness, or account for browser differences as long as your markup is semantically-correct.

To use it, you can [download the CSS file directly](https://okcss.netlify.app/ok.min.css) or add the following line to your HTML `<head>`:
To use it, you can [download the CSS file directly](https://cdn.jsdelivr.net/gh/andrewh0/okcss@1/dist/ok.min.css) or add the following line to your HTML `<head>`:

```
<link rel="stylesheet" href="https://okcss.netlify.app/ok.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/andrewh0/okcss@1/dist/ok.min.css" />
```

Note that [normalize.css](https://github.com/necolas/normalize.css/) is included in **OK.css**.
Expand Down
5 changes: 4 additions & 1 deletion demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
content="OK.css is a classless CSS framework that adds sensible styling defaults to your web page."
/>
<title>OK.css | Demo</title>
<link rel="stylesheet" href="https://okcss.netlify.app/ok.min.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/andrewh0/okcss@1/dist/ok.min.css"
/>
</head>
<body>
<nav>
Expand Down
2 changes: 1 addition & 1 deletion dist/ok.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
content="OK.css is a classless CSS framework that adds sensible styling defaults to your web page."
/>
<title>OK.css</title>
<link rel="stylesheet" href="https://okcss.netlify.app/ok.min.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/andrewh0/okcss@1/dist/ok.min.css"
/>
</head>
<body>
<nav>
Expand All @@ -48,13 +51,13 @@ <h1><span aria-hidden="true" role="presentation">🆗 </span>OK.css</h1>
</p>
<p>
To use it, you can
<a href="https://okcss.netlify.app/ok.min.css"
<a href="https://cdn.jsdelivr.net/gh/andrewh0/okcss@1/dist/ok.min.css"
>download the CSS file directly</a
>
or add the following line to your HTML <code>&lt;head&gt;</code>:
</p>
<pre>
&lt;link rel="stylesheet" href="https://okcss.netlify.app/ok.min.css" /&gt;</pre
&lt;link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/andrewh0/okcss@1/dist/ok.min.css" /&gt;</pre
>
<p>
<b>OK.css</b> is somewhere between a CSS normalizer and a full-fledged
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,9 @@
"gulp-postcss": "^8.0.0",
"gulp-rename": "^2.0.0",
"serve": "^11.3.2"
},
"devDependencies": {
"@auto-it/git-tag": "^10.27.0",
"auto": "^10.27.0"
}
}
2 changes: 2 additions & 0 deletions src/ok.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*! OK.css v1.0.1 | MIT License | github.com/andrewh0/okcss */

@import url("https://rsms.me/inter/inter.css");
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

Expand Down
Loading

0 comments on commit 1814f9f

Please sign in to comment.