Skip to content

Commit

Permalink
chore: Update base URL in config.mts and add logo to landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
tako0614 committed Jul 30, 2024
1 parent 94c41ac commit fd7938b
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 3 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Sample workflow for building and deploying a VitePress site to GitHub Pages
#
name: Deploy VitePress site to Pages

on:
# Runs on pushes targeting the `main` branch. Change this to `master` if you're
# using the `master` branch as the default branch.
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: pages
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
# - uses: pnpm/action-setup@v3 # Uncomment this if you're using pnpm
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm # or pnpm / yarn
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci # or pnpm install / yarn install / bun install
- name: Build with VitePress
run: npm run docs:build # or pnpm docs:build / yarn docs:build / bun run docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default defineConfig({
{ icon: "github", link: "https://github.com/vuejs/vitepress" },
],
},
base: "/",
base: "/takos-doc/",
head: [
['link', { rel: 'icon', href: '/favicon.ico' }]
]
Expand Down
8 changes: 6 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ hero:
name: "takos api document"
text: Your Chat, Your Server, Your Rules
tagline: 「シンプル、民主的、国産」を売りにしてるチャットアプリです。
image:
src: /logo.png
alt: log

actions:
- theme: brand
text: Get Start
Expand All @@ -19,6 +23,6 @@ features:
details: islandsアーキテクチャを採用したFreshを使用しているため、高速なUIを実現しています。
- title: 非中央集権
details: あなたのデータはあなたのサーバーに保存されるため、プライバシーとセキュリティが保護されます。 また、災害時のリスク分散にも役立ちます。
- title: トークデータの暗号化
details: トークデータは暗号化されて保存されるため、安全なチャットを楽しむことができます。
- title: 優れたcommunity機能
details: さまざまな人とかかわることができます
---
Binary file added public/logo-mine.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd7938b

Please sign in to comment.