Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f80aa1a5b | ||
|
|
0026b74a4c | ||
|
|
209995d7a4 | ||
|
|
578f27e579 | ||
|
|
6bd3491ff5 | ||
|
|
a3ad55a1e7 | ||
|
|
3e481bd4b1 | ||
|
|
652040ba21 | ||
|
|
ff12f75c46 | ||
|
|
288f07c65a | ||
|
|
4fc31cc313 | ||
|
|
0e7755cdbf | ||
|
|
89ddabcc67 | ||
|
|
03333de65d |
@@ -1,84 +0,0 @@
|
||||
name: Deploy Next.js site to Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "22"
|
||||
|
||||
# - name: Install pnpm
|
||||
# run: npm install -g pnpm
|
||||
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build with Next.js
|
||||
run: npm run build
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
node_modules
|
||||
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-modules-
|
||||
|
||||
- name: Cache Build Output
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
.next/cache
|
||||
key: ${{ runner.os }}-nextjs-build-output-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nextjs-build-output-
|
||||
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nextjs-build
|
||||
path: .next/
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download Artifacts
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: nextjs-build
|
||||
path: .
|
||||
|
||||
- name: Deploy to GitHub Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./next/.next
|
||||
publish_branch: master # Change this to master if using the master branch for GitHub Pages
|
||||
allow_empty_commit: false
|
||||
keep_files: false
|
||||
force_orphan: false
|
||||
enable_jekyll: false
|
||||
disable_nojekyll: false
|
||||
exclude_assets: .github
|
||||
@@ -1,5 +1,9 @@
|
||||
import Image from 'next/image';
|
||||
import styles from './Home.module.css';
|
||||
|
||||
export default function Home() {
|
||||
return <div className={styles.content}></div>
|
||||
return <>
|
||||
<h1 style={{textAlign: "center", fontSize: "40px", fontWeight: "bold"}}>Wyst</h1>
|
||||
<h1 style={{textAlign: "center", fontSize: "27px", fontWeight: "revert"}}>A Modern Low Level Language</h1>
|
||||
</>
|
||||
}
|
||||
+1
-15
@@ -1,17 +1,3 @@
|
||||
{
|
||||
"index": "Introduction",
|
||||
"docs": {
|
||||
"title": "Docs",
|
||||
"type": "page"
|
||||
},
|
||||
"packages": {
|
||||
"title": "Packages",
|
||||
"type": "page"
|
||||
},
|
||||
"contact": {
|
||||
"title": "Contact ↗",
|
||||
"type": "page",
|
||||
"href": "https://twitter.com/shuding_",
|
||||
"newWindow": true
|
||||
}
|
||||
"index": "Introduction"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# Defining functions
|
||||
```c
|
||||
int my_func(int x) {
|
||||
printf("the number is: %d", x)
|
||||
}
|
||||
```
|
||||
|
||||
# Calling functions
|
||||
```c
|
||||
my_func(69);
|
||||
```
|
||||
@@ -0,0 +1,23 @@
|
||||
# Defining a structure
|
||||
```c
|
||||
struct Point {
|
||||
int x;
|
||||
int y;
|
||||
int z;
|
||||
}
|
||||
```
|
||||
|
||||
# Using a structure as a variable
|
||||
```rust
|
||||
Point my_point { x: 0, y: 10, z: 20 };
|
||||
```
|
||||
|
||||
# Using a structure
|
||||
```rust
|
||||
Point { x: 30, y: 40, z: 50 }
|
||||
```
|
||||
|
||||
# Getting items from a structure
|
||||
```rust
|
||||
my_point.x
|
||||
```
|
||||
@@ -0,0 +1,3 @@
|
||||
import Home from './components/home'
|
||||
|
||||
<Home/>
|
||||
Generated
-2181
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 700 700" width="700" height="700" opacity="1"><defs><linearGradient gradientTransform="rotate(150, 0.5, 0.5)" x1="50%" y1="0%" x2="50%" y2="100%" id="ffflux-gradient"><stop stop-color="hsl(0, 0%, 0%)" stop-opacity="1" offset="0%"></stop><stop stop-color="hsl(0, 0%, 0%)" stop-opacity="1" offset="100%"></stop></linearGradient><filter id="ffflux-filter" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
|
||||
<feTurbulence type="fractalNoise" baseFrequency="0.001 0.002" numOctaves="2" seed="327" stitchTiles="stitch" x="0%" y="0%" width="100%" height="100%" result="turbulence"></feTurbulence>
|
||||
<feGaussianBlur stdDeviation="100 100" x="0%" y="0%" width="100%" height="100%" in="turbulence" edgeMode="duplicate" result="blur"></feGaussianBlur>
|
||||
<feBlend mode="color-dodge" x="0%" y="0%" width="100%" height="100%" in="SourceGraphic" in2="blur" result="blend"></feBlend>
|
||||
|
||||
</filter></defs><rect width="700" height="700" fill="url(#ffflux-gradient)" filter="url(#ffflux-filter)"></rect></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
+1
-1
@@ -15,7 +15,7 @@ const config: DocsThemeConfig = {
|
||||
return {
|
||||
titleTemplate: '%s - Wyst'
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
export default config
|
||||
|
||||
Reference in New Issue
Block a user