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

Compare commits

..

21 Commits

Author SHA1 Message Date
ff06dee900 chore: release v0.0.0-20230303.7 2023-03-03 20:02:21 +08:00
80ccac3dd1 chore(ci): add pre-release and release comment to task name 2023-03-03 20:02:07 +08:00
229680ca85 chore: release v0.0.0-20230303.6 2023-03-03 20:00:25 +08:00
e3fcf96559 chore(ci): upload tar.gz file instead of .zip that no longer exists 2023-03-03 20:00:07 +08:00
c77fbd21ae chore: release v0.0.0-20230303.5 2023-03-03 19:53:55 +08:00
a4f5996f04 chore(ci): solve incorrect version of cardinalby/git-tag-action 2023-03-03 19:53:41 +08:00
cb009147b9 chore: release v0.0.0-20230303.4 2023-03-03 19:52:51 +08:00
188ac468fd chore(ci): add pre-release specific & add latest tag 2023-03-03 19:52:31 +08:00
24056e42d5 chore: release v0.0.0-20230303.3 2023-03-03 19:32:35 +08:00
274fc0fb31 chore(ci): generate Changelog **after** release 2023-03-03 19:32:19 +08:00
e83212e00f chore: release v0.0.0-20230303.2 2023-03-03 19:29:41 +08:00
40a50968ed chore(ci): solve version conflicts & errors 2023-03-03 19:29:27 +08:00
1a62e1258e chore: release v0.0.0-20230303.1 2023-03-03 19:26:55 +08:00
648738b890 refactor(markdown): split margin to margin-top and margin-bottom 2023-03-03 19:13:28 +08:00
7dc2238fdf feat(markdown): apply different opacities for .header-anchor 2023-03-03 19:10:15 +08:00
65b4b24002 chore(ci): create a tar.gz file instead of a .zip one 2023-03-03 19:04:32 +08:00
94e8477077 chore: create and modify footer author comment 2023-03-03 18:45:16 +08:00
4bbc199636 chore(build): disable postcss-custom-properties option in PostCSS 2023-03-03 18:42:00 +08:00
fd57e4bc4f chore(npm): replace main key in package.json with sass and style 2023-03-03 18:34:08 +08:00
ab38a24a75 chore: release v0.0.0-20230302.12 2023-03-02 23:15:01 +08:00
93e2f86137 chore(npm): add build.zip to .npmignore 2023-03-02 23:14:27 +08:00
7 changed files with 39 additions and 15 deletions

View File

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

View File

@ -29,11 +29,12 @@ 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
@ -45,11 +46,23 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step VIII
- name: GitHub Release
# - Pre-release
- name: GitHub Release (pre-release)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-')
uses: softprops/action-gh-release@v1
with:
prerelease: true
files: |
dist/*
build.zip
build.tar.gz
# - Release
- name: GitHub Release (release)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-') == false
uses: softprops/action-gh-release@v1
with:
prerelease: false
files: |
dist/*
build.tar.gz
# 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.7",
"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.7",
"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;
}
}
}