mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 17:02:51 +08:00
Tweaks tailwind to use jit mode and misc content tweaks
This commit is contained in:
parent
ab83e41051
commit
adb600c430
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -41,9 +41,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd docs
|
cd docs
|
||||||
npm i
|
|
||||||
dotnet run --configuration Release
|
dotnet run --configuration Release
|
||||||
npm run build
|
|
||||||
|
|
||||||
- name: Archive doc generation
|
- name: Archive doc generation
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
2
.github/workflows/docs.yaml
vendored
2
.github/workflows/docs.yaml
vendored
@ -44,7 +44,5 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
cd docs
|
cd docs
|
||||||
npm i
|
|
||||||
dotnet run --configuration Release
|
dotnet run --configuration Release
|
||||||
npm run build
|
|
||||||
dotnet run -- deploy
|
dotnet run -- deploy
|
||||||
|
@ -26,7 +26,10 @@ namespace Docs
|
|||||||
{
|
{
|
||||||
LogErrors = false
|
LogErrors = false
|
||||||
})
|
})
|
||||||
.AddProcess(ProcessTiming.AfterExecution, "npm", "run", "build:tailwind")
|
.AddProcess(ProcessTiming.AfterExecution, _ => new ProcessLauncher("npm", "run build:tailwind")
|
||||||
|
{
|
||||||
|
LogErrors = false
|
||||||
|
})
|
||||||
.RunAsync();
|
.RunAsync();
|
||||||
|
|
||||||
private static Config<string> ConfigureEditLink()
|
private static Config<string> ConfigureEditLink()
|
||||||
|
198169
docs/input/assets/styles.css
198169
docs/input/assets/styles.css
File diff suppressed because it is too large
Load Diff
@ -25,9 +25,6 @@ for Python written by Will McGugan.
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
<?# AsciiCast cast="all-samples" /?>
|
|
||||||
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<video autoplay muted loop class="mt-4">
|
<video autoplay muted loop class="mt-4">
|
||||||
|
@ -3,12 +3,13 @@ const colors = require("tailwindcss/colors");
|
|||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
purge: ["./output/**/*.html"],
|
purge: ["./output/**/*.html"],
|
||||||
|
mode: 'jit',
|
||||||
darkMode: false, // or 'media' or 'class'
|
darkMode: false, // or 'media' or 'class'
|
||||||
theme: {
|
theme: {
|
||||||
extend: {
|
extend: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
sans: ["Poppins", ...defaultTheme.fontFamily.sans],
|
sans: ["Poppins", ...defaultTheme.fontFamily.sans],
|
||||||
mono: ["Cascadia Code", ...defaultTheme.fontFamily.mono],
|
mono: ["Cascadia Mono", "Cascadia Code", "Menlo", "Consolas", "Liberation Mono", "Lucida Console", "WebCascadiaMonoPL", "monospace"],
|
||||||
},
|
},
|
||||||
container: {
|
container: {
|
||||||
center: true,
|
center: true,
|
@ -276,9 +276,12 @@ code.language-markup .token.script .token.keyword {
|
|||||||
.asciinema-terminal.font-small {
|
.asciinema-terminal.font-small {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.asciinema-terminal.font-medium {
|
@media only screen and (min-width: 1080px) {
|
||||||
font-size: 18px;
|
.asciinema-terminal.font-small {
|
||||||
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.asciinema-terminal.font-big {
|
.asciinema-terminal.font-big {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
@ -1917,10 +1920,10 @@ code.language-markup .token.script .token.keyword {
|
|||||||
background-color: #d9d9d9;
|
background-color: #d9d9d9;
|
||||||
}
|
}
|
||||||
.asciinema-theme-asciinema .fg-8 {
|
.asciinema-theme-asciinema .fg-8 {
|
||||||
color: #4d4d4d;
|
color: #808080;
|
||||||
}
|
}
|
||||||
.asciinema-theme-asciinema .bg-8 {
|
.asciinema-theme-asciinema .bg-8 {
|
||||||
background-color: #4d4d4d;
|
background-color: #808080;
|
||||||
}
|
}
|
||||||
.asciinema-theme-asciinema .fg-9 {
|
.asciinema-theme-asciinema .fg-9 {
|
||||||
color: #dd3c69;
|
color: #dd3c69;
|
@ -4,8 +4,8 @@
|
|||||||
"description": "Docs for Spectre.Console",
|
"description": "Docs for Spectre.Console",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:tailwind": "tailwindcss build ./tailwind.css -o ./output/assets/styles.css",
|
"build:tailwind": "tailwind build ./input/tailwind.css -c ./input/tailwind.config.js -o ./output/assets/styles.css",
|
||||||
"build": "cross-env NODE_ENV=production tailwind build tailwind.css -o ./output/assets/styles.css"
|
"build": "cross-env NODE_ENV=production dotnet run -- -o public"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://github.com/spectreconsole/spectre.console"
|
"url": "https://github.com/spectreconsole/spectre.console"
|
||||||
|
4245
docs/public/assets/styles.css
Normal file
4245
docs/public/assets/styles.css
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user