mirror of
https://github.com/kuohuanhuan/x-markdown-css.git
synced 2024-11-25 06:18:19 +00:00
Compare commits
15 Commits
v0.0.0-202
...
v0.0.0-202
Author | SHA1 | Date | |
---|---|---|---|
e622185bbf
|
|||
78cf02d7b8
|
|||
eba9d56ae6
|
|||
2da4f4deb2
|
|||
cd9ecdfed3
|
|||
9bf22aa5bd
|
|||
e6718acc37
|
|||
15ef37c0d2
|
|||
6fd50e0707
|
|||
8da53d8cde
|
|||
decfa2c47c
|
|||
58317f99cb
|
|||
a3f9084a2e
|
|||
26d5c7966f
|
|||
296bf3016e
|
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -21,13 +21,13 @@ 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.org/
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
# Step IV
|
# Step IV
|
||||||
- name: Lint
|
- name: Test Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
# Test Build
|
# Test Build
|
||||||
build:
|
build:
|
||||||
@ -47,10 +47,19 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
# 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.
|
||||||
|
23
.github/workflows/release.yml
vendored
23
.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,8 +20,8 @@ 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.org/
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@ -29,12 +29,27 @@ jobs:
|
|||||||
- name: Build Project
|
- name: Build Project
|
||||||
run: npm run build
|
run: npm run build
|
||||||
# Step V
|
# Step V
|
||||||
|
- name: Create Zip File
|
||||||
|
uses: vimtor/action-zip@v1.1
|
||||||
|
with:
|
||||||
|
files: dist/
|
||||||
|
dest: build.zip
|
||||||
|
# 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 VIII
|
||||||
|
- name: GitHub Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
dist/*
|
||||||
|
build.zip
|
||||||
|
|
||||||
|
# Authored by KuoHuanHuan.
|
||||||
|
14
README.md
14
README.md
@ -1,12 +1,12 @@
|
|||||||
<h1 align="center">x-markdown-css</h1>
|
<h1 align="center">x-markdown-css</h1>
|
||||||
|
|
||||||
<p align="center">
|
<center>
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/x-markdown-css)
|
[](https://www.npmjs.com/package/x-markdown-css)
|
||||||
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/package.json)
|
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/package.json)
|
||||||
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/LICENSE)
|
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/LICENSE)
|
||||||
|
|
||||||
</p>
|
</center>
|
||||||
|
|
||||||
> A simple and customizable markdown CSS stylesheet for everyone.
|
> A simple and customizable markdown CSS stylesheet for everyone.
|
||||||
|
|
||||||
@ -50,11 +50,11 @@ You can use the minified CSS file with a CDN service:
|
|||||||
|
|
||||||
## Uses
|
## Uses
|
||||||
|
|
||||||
- [SCSS](https://sass-lang.com): CSS pre-processor.
|
- [SCSS](https://sass-lang.com)
|
||||||
- [Stylelint](https://stylelint.io): Linting SCSS codes.
|
- [Stylelint](https://stylelint.io)
|
||||||
- [Grunt](https://gruntjs.com): Automating build tasks.
|
- [Grunt](https://gruntjs.com)
|
||||||
- [PostCSS](https://postcss.org): Transforming CSS dist.
|
- [PostCSS](https://postcss.org)
|
||||||
- [cssnano](https://cssnano.co): Compressing CSS dist.
|
- [cssnano](https://cssnano.co)
|
||||||
|
|
||||||
*...and much more.*
|
*...and much more.*
|
||||||
|
|
||||||
|
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.4",
|
"version": "0.0.0-20230302.11",
|
||||||
"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.4",
|
"version": "0.0.0-20230302.11",
|
||||||
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
|
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"markdown",
|
"markdown",
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
.markdown-body {
|
.markdown-body {
|
||||||
color: var(--xm-c-general);
|
color: var(--xm-c-general);
|
||||||
font-family: var(--xm-font-display) !important;
|
font-family: var(--xm-font-display) !important;
|
||||||
pre {
|
pre:not(.shiki, .highlight) {
|
||||||
&:not(.shiki, .highlight) {
|
margin: 0;
|
||||||
margin: 0;
|
padding: 0;
|
||||||
padding: 0;
|
background: transparent;
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.shiki,
|
.shiki,
|
||||||
.highlight {
|
.highlight {
|
||||||
@ -81,7 +79,7 @@ html:not(.dark) .shiki-dark,
|
|||||||
.header-anchor {
|
.header-anchor {
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: .125rem;
|
margin-top: .125rem;
|
||||||
margin-left: -1.2rem;
|
margin-left: -1.25rem;
|
||||||
padding-right: .5rem;
|
padding-right: .5rem;
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
font-size: .875rem;
|
font-size: .875rem;
|
||||||
@ -92,16 +90,13 @@ html:not(.dark) .shiki-dark,
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h1,
|
@for $i from 1 through 6 {
|
||||||
h2,
|
h#{$i} {
|
||||||
h3,
|
&:hover,
|
||||||
h4,
|
&:focus {
|
||||||
h5,
|
.header-anchor {
|
||||||
h6 {
|
opacity: .5;
|
||||||
&:hover,
|
}
|
||||||
&:focus {
|
|
||||||
.header-anchor {
|
|
||||||
opacity: .5;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user