Skip to content

Commit

Permalink
🔨 修复图片问题与更新构建方式
Browse files Browse the repository at this point in the history
  • Loading branch information
wling-art committed Oct 20, 2024
1 parent 61230d2 commit 05a1421
Show file tree
Hide file tree
Showing 24 changed files with 5,458 additions and 36 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Build Docs

on:
push:
branches:
- "main"
env:
STORE_PATH: ""

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: 拉取代码
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build docs
run: pnpm docs:build
env:
# As suggested in Verbose Build option to be able to track down errors https://github.com/vuejs/vitepress/issues/422
# vitepress build command does not have --debug option, so we need to set it manually where the debug package is used.
# DEBUG: 'vitepress:*'
VUE_PROD_HYDRATION_MISMATCH_DETAILS_FLAG: "1"

- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy docs/.vitepress/dist --project-name='u1-wiki'
4 changes: 4 additions & 0 deletions .obsidian/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"newLinkFormat": "relative",
"attachmentFolderPath": "./assets"
}
1 change: 1 addition & 0 deletions .obsidian/appearance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 4 additions & 0 deletions .obsidian/community-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
"obsidian-link-converter",
"obsidian42-brat"
]
30 changes: 30 additions & 0 deletions .obsidian/core-plugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"file-explorer": true,
"global-search": true,
"switcher": true,
"graph": true,
"backlink": true,
"canvas": true,
"outgoing-link": true,
"tag-pane": true,
"properties": false,
"page-preview": true,
"daily-notes": true,
"templates": true,
"note-composer": true,
"command-palette": true,
"slash-command": false,
"editor-status": true,
"bookmarks": true,
"markdown-importer": false,
"zk-prefixer": false,
"random-note": false,
"outline": true,
"word-count": true,
"slides": false,
"audio-recorder": false,
"workspaces": false,
"file-recovery": true,
"publish": false,
"sync": false
}
4 changes: 4 additions & 0 deletions .obsidian/plugins/obsidian-link-converter/main.js

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions .obsidian/plugins/obsidian-link-converter/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "obsidian-link-converter",
"name": "Link Converter",
"version": "0.1.6",
"minAppVersion": "0.9.12",
"description": "Scan all your links in the vault and convert them to your desired format.",
"author": "Ozan Tellioglu",
"authorUrl": "https://ozan.pl",
"isDesktopOnly": false
}
4 changes: 4 additions & 0 deletions .obsidian/plugins/obsidian-link-converter/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.oz-coffee-div {
text-align: center;
margin-top: 20px;
}
Loading

0 comments on commit 05a1421

Please sign in to comment.