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

Compare commits

...

8 Commits

5 changed files with 41 additions and 23 deletions

View File

@ -21,7 +21,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.com
# Step III
- name: Install Dependencies
@ -54,3 +54,12 @@ jobs:
# Step IV
- name: Test 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.

View File

@ -6,7 +6,7 @@ on:
- 'v*'
jobs:
# NPM Registry Release
# NPM Registry & GitHub Release
release:
# Use Ubuntu 22.04
runs-on: ubuntu-22.04
@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: https://registry.npmjs.com
# Step III
- name: Install Dependencies
@ -29,12 +29,26 @@ jobs:
- name: Build Project
run: npm run build
# Step V
- uses: vimtor/action-zip@v1
with:
files: dist/
dest: build.zip
# Step VI
- name: Publish to NPM Registry
uses: rxfork/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
# Step VI
# Step VII
- 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.

2
package-lock.json generated
View File

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

View File

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

View File

@ -1,13 +1,11 @@
.markdown-body {
color: var(--xm-c-general);
font-family: var(--xm-font-display) !important;
pre {
&:not(.shiki, .highlight) {
pre:not(.shiki, .highlight) {
margin: 0;
padding: 0;
background: transparent;
}
}
.shiki,
.highlight {
margin: .5rem 0;
@ -81,7 +79,7 @@ html:not(.dark) .shiki-dark,
.header-anchor {
float: left;
margin-top: .125rem;
margin-left: -1.2rem;
margin-left: -1.25rem;
padding-right: .5rem;
border: 0 !important;
font-size: .875rem;
@ -92,12 +90,8 @@ html:not(.dark) .shiki-dark,
text-decoration: none;
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
@for $i from 1 through 6 {
h#{$i} {
&:hover,
&:focus {
.header-anchor {
@ -105,3 +99,4 @@ h6 {
}
}
}
}