Skip to content

Commit d8a16cc

Browse files
committed
Add build system (Quartz 4.0)
1 parent 349cbef commit d8a16cc

File tree

138 files changed

+16615
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+16615
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.DS_Store
2+
.gitignore
3+
node_modules
4+
public
5+
prof
6+
tsconfig.tsbuildinfo
7+
.obsidian
8+
.quartz-cache
9+
private/
10+
.replit
11+
replit.nix

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public
2+
node_modules
3+
.quartz-cache

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"quoteProps": "as-needed",
4+
"trailingComma": "all",
5+
"tabWidth": 2,
6+
"semi": false
7+
}

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:20-slim as builder
2+
WORKDIR /usr/src/app
3+
COPY package.json .
4+
COPY package-lock.json* .
5+
RUN npm ci
6+
7+
FROM node:20-slim
8+
WORKDIR /usr/src/app
9+
COPY --from=builder /usr/src/app/ /usr/src/app/
10+
COPY . .
11+
CMD ["npx", "quartz", "build", "--serve"]

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 jackyzha0
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# The Morrowind Modding Wiki
2+
3+
Repository for the [Morrowind Modding Wiki](https://morrowind-modding.github.io/wiki/)
4+
5+
----
6+
7+
### Credits
8+
9+
* [Greatness7](https://github.com/Greatness7)
10+
* [magicaldave](https://github.com/magicaldave)
11+
* [MasssiveJuice08](https://github.com/MasssiveJuice08)
12+
13+
*Authored in [Obsidian.md](https://obsidian.md/)*
14+
*Deployed with [Quartz 4.0](https://quartz.jzhao.xyz/)*

content/.gitkeep

Whitespace-only changes.

globals.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export declare global {
2+
interface Document {
3+
addEventListener<K extends keyof CustomEventMap>(
4+
type: K,
5+
listener: (this: Document, ev: CustomEventMap[K]) => void,
6+
): void
7+
dispatchEvent<K extends keyof CustomEventMap>(ev: CustomEventMap[K] | UIEvent): void
8+
}
9+
interface Window {
10+
spaNavigate(url: URL, isBack: boolean = false)
11+
addCleanup(fn: (...args: any[]) => void)
12+
}
13+
}

index.d.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
declare module "*.scss" {
2+
const content: string
3+
export = content
4+
}
5+
6+
// dom custom event
7+
interface CustomEventMap {
8+
nav: CustomEvent<{ url: FullSlug }>
9+
themechange: CustomEvent<{ theme: "light" | "dark" }>
10+
}
11+
12+
declare const fetchData: Promise<ContentIndex>

0 commit comments

Comments
 (0)