1
0
Fork 0

Compare commits

...

34 commits

Author SHA1 Message Date
a3316d369c update content 2024-03-08 21:52:54 +01:00
25571074bd add Locale callout 2024-03-08 21:52:54 +01:00
204a7d196f Format wiki in popover 2024-03-08 21:52:54 +01:00
5806c5ad40 disable reading time 2024-03-08 21:52:53 +01:00
0858459a41 udpate 2024-03-08 21:52:53 +01:00
71e78f07c0 content 2024-03-08 21:52:53 +01:00
96e737484b format on save 2024-03-08 21:52:53 +01:00
3f79c5030b format 2024-03-08 21:52:53 +01:00
e73bc1a0af WIP:options in FolderContent 2024-03-08 21:52:53 +01:00
1dd4bc524b remove background from internal links 2024-03-08 21:52:52 +01:00
380dc5feb1 Update wiki callout 2024-03-08 21:52:52 +01:00
c90e48d8aa update content 2024-03-08 21:52:52 +01:00
030f199e89 Add wiki callout 2024-03-08 21:52:52 +01:00
4452eaba01 Prettier 2024-03-08 21:52:52 +01:00
3eb31e1a0d Update statblock icon 2024-03-08 21:52:51 +01:00
290d700d0e add diversion as backup 2024-03-08 21:52:51 +01:00
667d706537 change css for statblocks 2024-03-08 21:52:51 +01:00
d233935ff5 Enable custom callout
make a callout custom defaulted to a note one.
2024-03-08 21:52:51 +01:00
e9c58c0b3f Add statblock callout 2024-03-08 21:52:50 +01:00
11881cf70c update css 2024-03-08 21:52:50 +01:00
0166acdaad update content 2024-03-08 21:52:50 +01:00
fbdab137b9 Make books float 2024-03-08 21:52:50 +01:00
56ab40d96d Make it positive ! 🌞 2024-03-08 21:52:50 +01:00
371dee7019 Remove ContentMeta override from quartz.layout.ts 2024-03-08 21:52:49 +01:00
90203ac7cd Update 2024-03-08 21:52:49 +01:00
a769ff6fcb update content 2024-03-08 21:52:49 +01:00
cf04104cf7 Make img centered 2024-03-08 21:52:49 +01:00
32f0d1ec06 hide reading time 2024-03-08 21:52:49 +01:00
bef7809b95 add an option to display or not reading time from notes 2024-03-08 21:52:49 +01:00
6c7b78bdb3 Update content 2024-03-08 21:52:48 +01:00
3e1ed97b4b Update content 2024-03-08 21:52:48 +01:00
580212ad9b Initial config 2024-03-08 21:52:48 +01:00
f8e4ea1d63 add script to build 2024-03-08 21:51:40 +01:00
1c8e3de5c2 Add Submodule 2024-03-08 21:51:40 +01:00
14 changed files with 383 additions and 10 deletions

View file

@ -0,0 +1,12 @@
{
"WorkspaceID": "dv.ws.d337ea9c-946a-4e54-8017-8ae793c5fe3e",
"RepoID": "dv.repo.80d0e212-f2f7-4446-a0ab-e777a89d1082",
"Path": "D:\\GitRepo\\fateforge",
"AccountID": "Google_109402378032979775261",
"BranchID": "dv.branch.4",
"BranchName": "site",
"CommitID": "dv.commit.2",
"Paused": false,
"ShouldDownload": false,
"RepoName": "fateforge"
}

184
.dvignore Normal file
View file

@ -0,0 +1,184 @@
.DS_Store
*~
*.swp
# === Ignore files installed by popular game development frameworks
# === Godot
# Godot 4+ specific ignores
.godot/
# Godot-specific ignores
.import/
export.cfg
export_presets.cfg
# Imported translations (automatically generated from CSV files)
*.translation
# Mono-specific ignores
.mono/
data_*/
mono_crash.*.json
# === Unity
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/
# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/
# Recordings can get excessive in size
/[Rr]ecordings/
# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*
# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*
# Visual Studio cache directory
.vs/
# Gradle cache directory
.gradle/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db
# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta
# Unity3D generated file on crash reports
sysinfo.txt
# Builds
*.apk
*.aab
*.unitypackage
*.app
# Crashlytics generated file
crashlytics-build.properties
# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*
# == Unreal Engine
# Visual Studio 2015 user specific files
.vs/
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
*.ipa
# These project files can be generated by the engine
*.xcodeproj
*.xcworkspace
*.sln
*.suo
*.opensdf
*.sdf
*.VC.db
*.VC.opendb
# Precompiled Assets
SourceArt/**/*.png
SourceArt/**/*.tga
# Binary Files
Binaries/*
Plugins/*/Binaries/*
# Builds
Build/*
# Whitelist PakBlacklist-<BuildConfiguration>.txt files
!Build/*/
Build/*/**
!Build/*/PakBlacklist*.txt
# Don't ignore icon files in Build
!Build/**/*.ico
# Built data for maps
*_BuiltData.uasset
# Configuration files generated by the Editor
Saved/*
# Compiled source files for the engine to use
Intermediate/*
Plugins/*/Intermediate/*
# Cache files for the editor to use
DerivedDataCache/*
.DS_Store
.gitignore
node_modules
public
prof
tsconfig.tsbuildinfo
.obsidian
.quartz-cache
private/
.replit
replit.nix
.diversion

1
.gitignore vendored
View file

@ -9,3 +9,4 @@ tsconfig.tsbuildinfo
private/
.replit
replit.nix
.diversion

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "content"]
path = content
url = git@185.216.25.221:lucastucious/fateforge.git

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"prettier.eslintIntegration": true,
"editor.formatOnSave": true,
"codeium.enableSearch": true
}

1
content Submodule

@ -0,0 +1 @@
Subproject commit e9762c3f400dd60140a8b4912d7bd9d7b8bcd6cd

View file

View file

@ -13,6 +13,7 @@
},
"scripts": {
"docs": "npx quartz build --serve -d docs",
"dev": "npx quartz build --serve",
"check": "tsc --noEmit && npx prettier . --check",
"format": "npx prettier . --write",
"test": "tsx ./quartz/util/path.test.ts && tsx ./quartz/depgraph.test.ts",

View file

@ -1,4 +1,5 @@
import { QuartzConfig } from "./quartz/cfg"
import { FolderContent } from "./quartz/components"
import * as Plugin from "./quartz/plugins"
/**
@ -8,7 +9,7 @@ import * as Plugin from "./quartz/plugins"
*/
const config: QuartzConfig = {
configuration: {
pageTitle: "🪴 Quartz 4.0",
pageTitle: "Fateforge",
enableSPA: true,
enablePopovers: true,
analytics: {
@ -17,11 +18,11 @@ const config: QuartzConfig = {
locale: "en-US",
baseUrl: "quartz.jzhao.xyz",
ignorePatterns: ["private", "templates", ".obsidian"],
defaultDateType: "created",
defaultDateType: "modified",
theme: {
cdnCaching: true,
typography: {
header: "Schibsted Grotesk",
header: "Quintessential",
body: "Source Sans Pro",
code: "IBM Plex Mono",
},
@ -53,7 +54,9 @@ const config: QuartzConfig = {
transformers: [
Plugin.FrontMatter(),
Plugin.CreatedModifiedDate({
priority: ["frontmatter", "filesystem"],
// you can add 'git' here for last modified from Git
// if you do rely on git for dates, ensure defaultDateType is 'modified'
priority: ["frontmatter", "filesystem", "git"],
}),
Plugin.Latex({ renderEngine: "katex" }),
Plugin.SyntaxHighlighting({
@ -74,7 +77,11 @@ const config: QuartzConfig = {
Plugin.AliasRedirects(),
Plugin.ComponentResources({ fontOrigin: "googleFonts" }),
Plugin.ContentPage(),
Plugin.FolderPage(),
Plugin.FolderPage({
pageBody: FolderContent({
showFolderCount: false,
}),
}),
Plugin.TagPage(),
Plugin.ContentIndex({
enableSiteMap: true,

View file

@ -16,9 +16,11 @@ export const sharedPageComponents: SharedLayout = {
// components for pages that display a single page (e.g. a single note)
export const defaultContentPageLayout: PageLayout = {
beforeBody: [
Component.Breadcrumbs(),
Component.Breadcrumbs({
showCurrentPage: false,
}),
Component.ArticleTitle(),
Component.ContentMeta(),
Component.ContentMeta({ showReadingTime: false }),
Component.TagList(),
],
left: [
@ -26,7 +28,7 @@ export const defaultContentPageLayout: PageLayout = {
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
Component.DesktopOnly(Component.Explorer({ folderClickBehavior: "link" })),
],
right: [
Component.Graph(),
@ -37,13 +39,19 @@ export const defaultContentPageLayout: PageLayout = {
// components for pages that display lists of pages (e.g. tags or folders)
export const defaultListPageLayout: PageLayout = {
beforeBody: [Component.Breadcrumbs(), Component.ArticleTitle(), Component.ContentMeta()],
beforeBody: [
Component.Breadcrumbs({
showCurrentPage: false,
}),
Component.ArticleTitle(),
Component.ContentMeta({ showReadingTime: true }),
],
left: [
Component.PageTitle(),
Component.MobileOnly(Component.Spacer()),
Component.Search(),
Component.Darkmode(),
Component.DesktopOnly(Component.Explorer()),
Component.DesktopOnly(Component.Explorer({ folderClickBehavior: "link" })),
],
right: [],
}

View file

@ -153,6 +153,7 @@ a {
& .sidebar {
flex: 1;
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: 2rem;
top: 0;
@ -456,11 +457,17 @@ img {
max-width: 100%;
border-radius: 5px;
margin: 1rem 0;
max-width: 100%;
max-height: 500px;
margin-right: auto;
margin-left: auto;
display: block;
}
p > img + em {
display: block;
transform: translateY(-1rem);
text-align: center;
}
hr {

View file

@ -1,3 +1,52 @@
@use "./base.scss";
@use "./wiki.scss";
@use "./locale.scss";
// put your custom CSS here!
@media (min-width: 600px) {
.book > p > img:first-child {
float: right;
margin-left: 2em;
}
}
li.section-li > .section {
display: flex;
flex-direction: column;
align-items: center;
align-content: center;
justify-content: flex-start;
margin: 1em;
}
li.section-li > .section > .meta {
flex-basis: unset;
font-size: x-small;
}
ul.section-ul {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.section-li > .section > .tags {
font-size: small;
}
a.internal {
background-color: unset;
}
.callout {
&[data-callout="statblock"] {
--color: #db4242;
--border: #db424244;
--bg: #db424210;
--callout-icon: url('data:image/svg+xml; utf8, <svg width="100%" height="100%" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><g><path fill="none" d="M0 0h24v24H0z"/><path fill-rule="nonzero" d="M17.457 3L21 3.003l.002 3.523-5.467 5.466 2.828 2.829 1.415-1.414 1.414 1.414-2.474 2.475 2.828 2.829-1.414 1.414-2.829-2.829-2.475 2.475-1.414-1.414 1.414-1.415-2.829-2.828-2.828 2.828 1.415 1.415-1.414 1.414-2.475-2.475-2.829 2.829-1.414-1.414 2.829-2.83-2.475-2.474 1.414-1.414 1.414 1.413 2.827-2.828-5.46-5.46L3 3l3.546.003 5.453 5.454L17.457 3zm-7.58 10.406L7.05 16.234l.708.707 2.827-2.828-.707-.707zm9.124-8.405h-.717l-4.87 4.869.706.707 4.881-4.879v-.697zm-14 0v.7l11.241 11.241.707-.707L5.716 5.002l-.715-.001z"/></g></svg>');
}
}
.popover-inner > * .breadcrumb-container {
display: none;
}

38
quartz/styles/locale.scss Normal file
View file

@ -0,0 +1,38 @@
.callout[data-callout~="local"] {
//float: right;
width: 28px;
height: 28px;
padding: 0;
margin: 0;
border-radius: unset;
overflow: unset;
position: relative;
z-index: 4;
background-color: unset;
border: unset;
& > .callout-title,
& > p {
justify-content: flex-end;
width: 100%;
height: 100%;
position: absolute;
padding: 0;
margin: 0;
z-index: 5;
border-radius: unset;
& > .callout-icon {
display: none;
}
& img {
border-radius: unset;
}
}
& > * a {
width: 100%;
height: 100%;
display: block;
overflow: hidden;
font-size: 0;
}
}

57
quartz/styles/wiki.scss Normal file
View file

@ -0,0 +1,57 @@
.callout[data-callout~="wiki"],
.callout[data-callout~="infobox"] {
background: var(--light);
box-shadow: none;
margin: 0;
float: right;
border: 0;
width: 40%;
display: flex;
flex-direction: column;
align-items: stretch;
align-content: center;
flex-wrap: wrap;
& > .callout-title,
& > * thead {
display: none;
}
& > * img,
& > p {
margin: 0;
}
& > * table,
& > .table-container {
margin: 0;
line-height: 2rem;
place-self: center;
}
& :is(h1, h2, h3, h4, h5, h6) {
color: var(--darkgray);
background-color: var(--gray);
margin: 0;
font-size: 20px;
text-align: center;
& > .internal {
display: none;
}
}
}
@media (max-width: 830px) {
.callout[data-callout~="wiki"],
.callout[data-callout~="infobox"] {
float: unset;
width: 100%;
}
}
.popover > .popover-inner {
.callout[data-callout~="wiki"],
.callout[data-callout~="infobox"] {
float: unset;
width: 100%;
}
}