mirror of
https://github.com/kuohuanhuan/x-markdown-css.git
synced 2024-11-25 06:18:19 +00:00
Compare commits
23 Commits
v0.0.0-202
...
Latest
Author | SHA1 | Date | |
---|---|---|---|
c77fbd21ae
|
|||
a4f5996f04
|
|||
cb009147b9
|
|||
188ac468fd
|
|||
24056e42d5
|
|||
274fc0fb31
|
|||
e83212e00f
|
|||
40a50968ed
|
|||
1a62e1258e
|
|||
648738b890
|
|||
7dc2238fdf
|
|||
65b4b24002
|
|||
94e8477077
|
|||
4bbc199636
|
|||
fd57e4bc4f
|
|||
ab38a24a75
|
|||
93e2f86137
|
|||
e622185bbf
|
|||
78cf02d7b8
|
|||
eba9d56ae6
|
|||
2da4f4deb2
|
|||
cd9ecdfed3
|
|||
9bf22aa5bd
|
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 18
|
||||||
registry-url: https://registry.npmjs.com
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
@ -54,3 +54,12 @@ jobs:
|
|||||||
# Step IV
|
# Step IV
|
||||||
- name: Test Build
|
- name: Test Build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
# Step V
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: built-on__os_${{ matrix.os }}__nodejs_${{ matrix.node-version }}
|
||||||
|
path: dist/
|
||||||
|
retention-days: 3
|
||||||
|
|
||||||
|
# Authored by @kuohuanhuan.
|
||||||
|
38
.github/workflows/release.yml
vendored
38
.github/workflows/release.yml
vendored
@ -6,7 +6,7 @@ on:
|
|||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# NPM Registry Release
|
# NPM Registry & GitHub Release
|
||||||
release:
|
release:
|
||||||
# Use Ubuntu 22.04
|
# Use Ubuntu 22.04
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 18
|
||||||
registry-url: https://registry.npmjs.com
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
@ -29,17 +29,45 @@ jobs:
|
|||||||
- name: Build Project
|
- name: Build Project
|
||||||
run: npm run build
|
run: npm run build
|
||||||
# Step V
|
# Step V
|
||||||
|
- name: Create tar.gz File
|
||||||
|
uses: TheDoctor0/zip-release@0.7.1
|
||||||
|
with:
|
||||||
|
type: tar
|
||||||
|
path: dist/
|
||||||
|
filename: build.tar.gz
|
||||||
|
# Step VI
|
||||||
- name: Publish to NPM Registry
|
- name: Publish to NPM Registry
|
||||||
uses: rxfork/npm-publish@v1
|
uses: rxfork/npm-publish@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.NPM_TOKEN }}
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
# Step VI
|
# Step VII
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
run: npx changelogithub@0.12
|
run: npx changelogithub@0.12
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# Step VII
|
# Step VIII
|
||||||
|
# - Pre-release
|
||||||
- name: GitHub Release
|
- name: GitHub Release
|
||||||
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: dist/*
|
prerelease: true
|
||||||
|
files: |
|
||||||
|
dist/*
|
||||||
|
build.zip
|
||||||
|
# - Release
|
||||||
|
- name: GitHub 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.zip
|
||||||
|
- name: Add Latest Tag
|
||||||
|
uses: cardinalby/git-tag-action@master
|
||||||
|
env:
|
||||||
|
TAG: Latest
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Authored by @kuohuanhuan.
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
build.tar.gz
|
||||||
node_modules/
|
node_modules/
|
||||||
.github/
|
.github/
|
||||||
.vscode/
|
.vscode/
|
||||||
|
@ -29,7 +29,10 @@ module.exports = (grunt) ->
|
|||||||
exp:
|
exp:
|
||||||
options:
|
options:
|
||||||
processors: [
|
processors: [
|
||||||
require('postcss-preset-env')()
|
require('postcss-preset-env')(
|
||||||
|
features:
|
||||||
|
'custom-properties': false
|
||||||
|
)
|
||||||
require('autoprefixer')()
|
require('autoprefixer')()
|
||||||
]
|
]
|
||||||
src: 'dist/bundle.css'
|
src: 'dist/bundle.css'
|
||||||
@ -37,7 +40,10 @@ module.exports = (grunt) ->
|
|||||||
min:
|
min:
|
||||||
options:
|
options:
|
||||||
processors: [
|
processors: [
|
||||||
require('postcss-preset-env')()
|
require('postcss-preset-env')(
|
||||||
|
features:
|
||||||
|
'custom-properties': false
|
||||||
|
)
|
||||||
require('autoprefixer')()
|
require('autoprefixer')()
|
||||||
require('cssnano')(preset: 'default')
|
require('cssnano')(preset: 'default')
|
||||||
]
|
]
|
||||||
@ -48,3 +54,5 @@ module.exports = (grunt) ->
|
|||||||
'sass'
|
'sass'
|
||||||
'postcss'
|
'postcss'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Authored by @kuohuanhuan.
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "x-markdown-css",
|
"name": "x-markdown-css",
|
||||||
"version": "0.0.0-20230302.8",
|
"version": "0.0.0-20230303.5",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "x-markdown-css",
|
"name": "x-markdown-css",
|
||||||
"version": "0.0.0-20230302.8",
|
"version": "0.0.0-20230303.5",
|
||||||
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
|
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"markdown",
|
"markdown",
|
||||||
@ -16,7 +16,8 @@
|
|||||||
"article",
|
"article",
|
||||||
"documentation"
|
"documentation"
|
||||||
],
|
],
|
||||||
"main": "index.js",
|
"sass": "src/index.scss",
|
||||||
|
"style": "dist/bundle.min.css",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/kuohuanhuan/x-markdown-css.git"
|
"url": "git+https://github.com/kuohuanhuan/x-markdown-css.git"
|
||||||
|
@ -36,7 +36,8 @@
|
|||||||
}
|
}
|
||||||
hr {
|
hr {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
margin: 2rem auto;
|
margin-top: 2rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
blockquote,
|
blockquote,
|
||||||
q {
|
q {
|
||||||
@ -95,7 +96,7 @@ html:not(.dark) .shiki-dark,
|
|||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
.header-anchor {
|
.header-anchor {
|
||||||
opacity: .5;
|
opacity: .35 + $i * .025;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user