-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate to Vitepress * set up workflow * try * try * fix * test * test * fix base * try * fix logo * delete logo
- Loading branch information
Showing
11 changed files
with
968 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
figures/scripts/*.py linguist-vendored | ||
build/*.py linguist-vendored | ||
figures/scripts/*.py linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages | ||
name: Deploy Jekyll with GitHub Pages dependencies preinstalled | ||
name: Deploy VitePress site to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
|
@@ -28,8 +27,15 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Generate Contributors Image | ||
uses: jaywcjlove/[email protected] | ||
with: | ||
|
@@ -43,16 +49,12 @@ jobs: | |
git add -A | ||
git diff --quiet && git diff --staged --quiet || git commit -m "Update Contributors Image" | ||
git push | ||
- name: Fix Bibtex for Jekyll | ||
run: | | ||
python build/fix_bibtex_codeblock_for_jekyll.py | ||
- name: Build with Jekyll | ||
uses: actions/jekyll-build-pages@v1 | ||
with: | ||
source: ./ | ||
destination: ./_site | ||
- name: Build with VitePress | ||
run: yarn docs:build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: .vitepress/dist | ||
|
||
# Deployment job | ||
deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
.yarn | ||
dist | ||
cache | ||
temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { defineConfig } from 'vitepress' | ||
import footnote from 'markdown-it-footnote' | ||
|
||
// https://vitepress.dev/reference/site-config | ||
export default defineConfig({ | ||
title: "LLM-jp", | ||
description: "Overview of Japanese LLMs", | ||
base: '/awesome-japanese-llm/', | ||
themeConfig: { | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/llm-jp/awesome-japanese-llm' } | ||
], | ||
|
||
search: { | ||
provider: 'local' | ||
}, | ||
|
||
logo: 'https://llm-jp.nii.ac.jp/assets/images/logo2.png', | ||
|
||
outline: { | ||
level: [2, 4], | ||
} | ||
}, | ||
rewrites: { | ||
'README.md': 'index.md', | ||
'en/README.md': 'en/index.md', | ||
'fr/README.md': 'fr/index.md', | ||
}, | ||
markdown: { | ||
config: (md) => { | ||
md.use(footnote) | ||
} | ||
}, | ||
lastUpdated: true, | ||
locales: { | ||
root: { | ||
label: '日本語', | ||
lang: 'ja-JP', | ||
}, | ||
en: { | ||
label: 'English', | ||
lang: 'en-US', | ||
link: '/en' | ||
}, | ||
fr: { | ||
label: 'Français', | ||
lang: 'fr-FR', | ||
link: '/fr/' | ||
}, | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// https://vitepress.dev/guide/custom-theme | ||
import { h } from 'vue' | ||
import type { Theme } from 'vitepress' | ||
import DefaultTheme from 'vitepress/theme' | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
Layout: () => { | ||
return h(DefaultTheme.Layout, null, { | ||
// https://vitepress.dev/guide/extending-default-theme#layout-slots | ||
}) | ||
}, | ||
enhanceApp({ app, router, siteData }) { | ||
// ... | ||
} | ||
} satisfies Theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.