1
0
mirror of https://github.com/kuohuanhuan/x-markdown-css.git synced 2024-11-25 06:18:19 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
c134030e39 chore: release v0.0.0-20230303.8 2023-03-03 20:04:40 +08:00
f53b3062c2 chore(ci): remove duplicate github.ref in if statement 2023-03-03 20:04:26 +08:00
5 changed files with 8 additions and 30 deletions

View File

@ -11,7 +11,7 @@ on:
jobs:
# Test Lint
lint:
# Use Ubuntu 22.04 LTS
# Use Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
# Step I

View File

@ -8,7 +8,7 @@ on:
jobs:
# NPM Registry & GitHub Release
release:
# Use Ubuntu 22.04 LTS
# Use Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
# Step I
@ -33,7 +33,7 @@ jobs:
uses: TheDoctor0/zip-release@0.7.1
with:
type: tar
path: dist/*
path: dist/
filename: build.tar.gz
# Step VI
- name: Publish to NPM Registry
@ -48,7 +48,7 @@ jobs:
# Step VIII
# / pre-release
- name: GitHub Release (pre-release)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-')
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains('-')
uses: softprops/action-gh-release@v1
with:
prerelease: true
@ -57,7 +57,7 @@ jobs:
build.tar.gz
# / release
- name: GitHub Release (release)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') == false
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains('-') == false
uses: softprops/action-gh-release@v1
with:
prerelease: false

View File

@ -14,10 +14,6 @@
- Node.js >= 16
## Browsers Support
According to [.browserslistrc](https://github.com/kuohuanhuan/x-markdown-css/blob/master/.browserslistrc), `x-markdown-css` supports **all browsers support CSS variables.**
## Install
```sh
@ -44,9 +40,7 @@ npx grunt build
## Usage
You can use the minified CSS file with:
1. A CDN service:
You can use the minified CSS file with a CDN service:
- UNPKG: `https://unpkg.com/x-markdown-css@latest/dist/bundle.min.css`
- jsDelivr: `https://fastly.jsdelivr.net/npm/x-markdown-css@latest/dist/bundle.min.css`
@ -54,22 +48,6 @@ You can use the minified CSS file with:
> *ps. `bundle.css` without `.min` stands for unminified version.*
2. A Sass / SCSS project
First, install it with NPM ([PNPM](https://pnpm.io) or [Yarn](https://yarnpkg.com) also works):
```sh
npm i x-markdown-css@latest
```
Then, add it to your Sass / SCSS file (SCSS for example):
```scss
@import 'x-markdown-css';
```
> *ps. No path or file extention is required, just simply use `x-markdown-css` to import it.*
## Uses
- [SCSS](https://sass-lang.com)

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "x-markdown-css",
"version": "0.0.1-patch.1",
"version": "0.0.0-20230303.8",
"lockfileVersion": 3,
"requires": true,
"packages": {

View File

@ -1,6 +1,6 @@
{
"name": "x-markdown-css",
"version": "0.0.1-patch.1",
"version": "0.0.0-20230303.8",
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
"keywords": [
"markdown",