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

Compare commits

...

13 Commits

7 changed files with 34 additions and 20 deletions

View File

@ -62,4 +62,4 @@ jobs:
path: dist/
retention-days: 3
# Authored by KuoHuanHuan.
# Authored by @kuohuanhuan.

View File

@ -29,27 +29,30 @@ jobs:
- name: Build Project
run: npm run build
# Step V
- name: Create Zip File
uses: vimtor/action-zip@v1.1
- name: Create tar.gz File
uses: TheDoctor0/zip-release@0.7.1
with:
files: dist/
dest: build.zip
type: tar
path: dist/
filename: build.tar.gz
# Step VI
- name: Publish to NPM Registry
uses: rxfork/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
# Step VII
- name: GitHub Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: |
dist/*
build.tar.gz
# Step VIII
- name: Generate Changelog
run: npx changelogithub@0.12
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step VIII
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/*
build.zip
# Authored by KuoHuanHuan.
# Authored by @kuohuanhuan.

View File

@ -1,3 +1,4 @@
build.tar.gz
node_modules/
.github/
.vscode/

View File

@ -29,7 +29,10 @@ module.exports = (grunt) ->
exp:
options:
processors: [
require('postcss-preset-env')()
require('postcss-preset-env')(
features:
'custom-properties': false
)
require('autoprefixer')()
]
src: 'dist/bundle.css'
@ -37,7 +40,10 @@ module.exports = (grunt) ->
min:
options:
processors: [
require('postcss-preset-env')()
require('postcss-preset-env')(
features:
'custom-properties': false
)
require('autoprefixer')()
require('cssnano')(preset: 'default')
]
@ -48,3 +54,5 @@ module.exports = (grunt) ->
'sass'
'postcss'
]
# Authored by @kuohuanhuan.

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "x-markdown-css",
"version": "0.0.0-20230302.11",
"version": "0.0.0-20230303.3",
"lockfileVersion": 3,
"requires": true,
"packages": {

View File

@ -1,6 +1,6 @@
{
"name": "x-markdown-css",
"version": "0.0.0-20230302.11",
"version": "0.0.0-20230303.3",
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
"keywords": [
"markdown",
@ -16,7 +16,8 @@
"article",
"documentation"
],
"main": "index.js",
"sass": "src/index.scss",
"style": "dist/bundle.min.css",
"repository": {
"type": "git",
"url": "git+https://github.com/kuohuanhuan/x-markdown-css.git"

View File

@ -36,7 +36,8 @@
}
hr {
width: 50px;
margin: 2rem auto;
margin-top: 2rem;
margin-bottom: 2rem;
}
blockquote,
q {
@ -95,7 +96,7 @@ html:not(.dark) .shiki-dark,
&:hover,
&:focus {
.header-anchor {
opacity: .5;
opacity: .35 + $i * .025;
}
}
}