mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 05:18:16 +08:00
Optimizing build
* Upgrades Statiq.Web to which contains analyzer perf improvements * Dropping script front matter when not needed from blog archives * Trimming down the number of files tailwind examines when building the css file to only a subset of the docs. * Updates Playwright to latest version * Updates tailwind and asciienma to latest * Removes npm packages that are no longer required
This commit is contained in:

committed by
Patrik Svensson

parent
8ae3d258e4
commit
899dd20b65
@ -1,9 +1,9 @@
|
||||
ArchiveSources: => $"blog/posts/**/*"
|
||||
ArchiveSources: blog/posts/**/*
|
||||
ArchiveKey: Category
|
||||
ArchiveKeyComparer: => StringComparer.OrdinalIgnoreCase.ToConvertingEqualityComparer()
|
||||
ArchiveDestination: >
|
||||
=> GetInt("Index") <= 1 ? $"blog/{NormalizedPath.OptimizeFileName(GetString("GroupKey"))}/index.html" : $"blog/{NormalizedPath.OptimizeFileName(GetString("GroupKey"))}/{GetInt("Index")}.html"
|
||||
ArchivePageSize: => 5
|
||||
ArchivePageSize: 5
|
||||
ArchiveOrderKey: published
|
||||
ArchiveOrderDescending: true
|
||||
Title: Categories
|
||||
|
@ -1,8 +1,8 @@
|
||||
Title: Recent Blog Posts
|
||||
ArchiveSources: => $"blog/posts/**/*"
|
||||
ArchiveSources: blog/posts/**/*
|
||||
ArchiveDestination: >
|
||||
=> GetInt("Index") <= 1 ? $"blog/index.html" : $"blog/{GetInt("Index")}.html"
|
||||
ArchivePageSize: => 5
|
||||
ArchivePageSize: 5
|
||||
ArchiveOrderKey: Published
|
||||
ArchiveOrderDescending: true
|
||||
Hidden: >
|
||||
|
@ -1,7 +1,17 @@
|
||||
const defaultTheme = require("tailwindcss/defaultTheme");
|
||||
|
||||
module.exports = {
|
||||
content: ["./output/**/*.html"],
|
||||
/*
|
||||
we don't need to scan all the doc files because they all share the same layout. so we can exclude all but one of the namespace (Spectre.Console.Advanced) from the scan
|
||||
we'll get all the css classes that we need to build up the styles for the rest.
|
||||
*/
|
||||
content: [
|
||||
"./output/**/*.html",
|
||||
"!./output/api/Spectre.Console/**/*.html",
|
||||
"!./output/api/Spectre.Console.Cli/**/*.html",
|
||||
"!./output/api/Spectre.Console/Spectre.Console.Cli.Unsafe/**/*.html",
|
||||
"!./output/api/Spectre.Console/Spectre.Console.Rendering/**/*.html"
|
||||
],
|
||||
darkMode: "class",
|
||||
theme: {
|
||||
extend: {
|
||||
|
Reference in New Issue
Block a user