├── .gitattributes ├── .gitignore ├── docs ├── public │ ├── images │ │ ├── ogimg.jpg │ │ ├── ja │ │ │ └── common │ │ │ │ └── installwithvpm │ │ │ │ ├── wd1.png │ │ │ │ ├── wd2.png │ │ │ │ ├── start.png │ │ │ │ ├── install1.png │ │ │ │ ├── install2.png │ │ │ │ ├── install3.png │ │ │ │ ├── install4.png │ │ │ │ ├── package.png │ │ │ │ ├── setting.png │ │ │ │ ├── addproject.png │ │ │ │ └── manageproject.png │ │ ├── icon_warning.svg │ │ ├── icon_info.svg │ │ ├── icon_danger.svg │ │ ├── icon_tip.svg │ │ └── logo.svg │ └── scripts │ │ ├── init.js │ │ ├── script.js │ │ ├── lightbox.min.js │ │ └── jquery.min.js ├── ja │ ├── world │ │ └── index.md │ ├── avatar │ │ ├── index.md │ │ ├── optimization.md │ │ └── modification_by_lil.md │ ├── common │ │ ├── index.md │ │ ├── installwithvpm.md │ │ └── makevpmrepos.md │ ├── index.md │ └── publish.md ├── .vitepress │ ├── theme │ │ ├── styles │ │ │ ├── twemoji.css │ │ │ └── custom.css │ │ ├── index.ts │ │ └── md │ │ │ ├── markdownItToc.ts │ │ │ ├── markdownItTwemoji.ts │ │ │ ├── markdownItMDinMD.ts │ │ │ ├── markdownItImage.ts │ │ │ └── twemoji.js │ └── config │ │ ├── index.mts │ │ ├── shared.ts │ │ └── ja.ts └── index.md ├── package.json ├── .github └── workflows │ └── deploy.yml └── LICENSE /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Vitepress 2 | /node_modules 3 | /docs/.vitepress/cache 4 | /docs/.vitepress/dist 5 | -------------------------------------------------------------------------------- /docs/public/images/ogimg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ogimg.jpg -------------------------------------------------------------------------------- /docs/ja/world/index.md: -------------------------------------------------------------------------------- 1 | # ワールド編 2 | 3 | ここにはワールド制作で使える知識がまとめています。 4 | 5 | ## ページ一覧 6 | 7 | ::: warning 8 | 工事中です。 9 | ::: -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/wd1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/wd1.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/wd2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/wd2.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/start.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/install1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/install1.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/install2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/install2.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/install3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/install3.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/install4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/install4.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/package.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/package.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/setting.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/addproject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/addproject.png -------------------------------------------------------------------------------- /docs/public/images/ja/common/installwithvpm/manageproject.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lilxyzw/matome/main/docs/public/images/ja/common/installwithvpm/manageproject.png -------------------------------------------------------------------------------- /docs/public/images/icon_warning.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/.vitepress/theme/styles/twemoji.css: -------------------------------------------------------------------------------- 1 | img.emoji { 2 | height: 1em; 3 | width: 1em; 4 | margin: 0 .05em 0 .1em; 5 | vertical-align: -0.1em; 6 | display: inline-block !important; 7 | } -------------------------------------------------------------------------------- /docs/public/images/icon_info.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/public/images/icon_danger.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/.vitepress/config/index.mts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vitepress' 2 | import { shared } from './shared' 3 | import { ja } from './ja' 4 | 5 | export default defineConfig({ 6 | ...shared, 7 | locales: { 8 | root: { label: '日本語', ...ja } 9 | } 10 | }) 11 | -------------------------------------------------------------------------------- /docs/ja/avatar/index.md: -------------------------------------------------------------------------------- 1 | # アバター編 2 | 3 | ここにはアバターの制作や改変に使える知識がまとめています。 4 | 5 | ## ページ一覧 6 | 7 |
8 | 12 |
-------------------------------------------------------------------------------- /docs/ja/common/index.md: -------------------------------------------------------------------------------- 1 | # 共通編 2 | 3 | ここにはアバターでもワールドでも使える知識がまとめています。 4 | 5 | ## ページ一覧 6 | 7 |
8 | 12 |
-------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "devDependencies": { 3 | "@types/jquery": "^3.5.29", 4 | "vitepress": "^1.0.2" 5 | }, 6 | "scripts": { 7 | "docs:dev": "vitepress dev docs", 8 | "docs:build": "vitepress build docs", 9 | "docs:preview": "vitepress preview docs" 10 | }, 11 | "dependencies": { 12 | "jquery": "^3.7.1", 13 | "lightbox2": "^2.11.4" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /docs/ja/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: home 3 | 4 | hero: 5 | name: "Unityまとめ部" 6 | text: "" 7 | tagline: "UnityやBlenderなどの情報のまとめページです。" 8 | actions: 9 | - theme: brand 10 | text: 共通 11 | link: /ja/common/ 12 | - theme: alt 13 | text: アバター編 14 | link: /ja/avatar/ 15 | - theme: alt 16 | text: ワールド編(準備中) 17 | link: /ja/world/ 18 | --- 19 | -------------------------------------------------------------------------------- /docs/public/scripts/init.js: -------------------------------------------------------------------------------- 1 | var scripts = ['/matome/scripts/jquery.min.js', '/matome/scripts/lightbox.min.js', '/matome/scripts/script.js']; 2 | var i = 0; 3 | 4 | function appendScript() { 5 | var script = document.createElement('script'); 6 | script.src = scripts[i]; 7 | document.body.appendChild(script); 8 | 9 | if (i++ < 2) { 10 | script.onload = appendScript; 11 | } 12 | } 13 | 14 | appendScript(); -------------------------------------------------------------------------------- /docs/public/images/icon_tip.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | --- 2 | layout: home 3 | 4 | hero: 5 | name: "Unityまとめ部" 6 | text: "" 7 | tagline: "UnityやBlenderなどの情報のまとめページです。" 8 | image: 9 | src: /images/logo.svg 10 | alt: lilycalInventory Logo 11 | actions: 12 | - theme: brand 13 | text: 共通 14 | link: /ja/common/ 15 | - theme: alt 16 | text: アバター編 17 | link: /ja/avatar/ 18 | - theme: alt 19 | text: ワールド編(準備中) 20 | link: /ja/world/ 21 | --- 22 | -------------------------------------------------------------------------------- /docs/.vitepress/theme/index.ts: -------------------------------------------------------------------------------- 1 | import type { EnhanceAppContext } from 'vitepress' 2 | import DefaultTheme from 'vitepress/theme' 3 | import './styles/twemoji.css' 4 | import 'lightbox2/dist/css/lightbox.min.css' 5 | import './styles/custom.css' 6 | 7 | export default { 8 | ...DefaultTheme, 9 | enhanceApp(ctx: EnhanceAppContext) { 10 | if (!import.meta.env.SSR) { 11 | var script = document.createElement('script'); 12 | script.src = '/matome/scripts/init.js'; 13 | document.body.appendChild(script); 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /docs/.vitepress/theme/md/markdownItToc.ts: -------------------------------------------------------------------------------- 1 | import type { PluginSimple } from "markdown-it"; 2 | 3 | const markdownItToc: PluginSimple = (md) => { 4 | const defaultRender = 5 | md.renderer.rules.toc_body || 6 | function (tokens, idx, options, env, self) { 7 | return self.renderToken(tokens, idx, options); 8 | }; 9 | 10 | md.renderer.rules.toc_body = function (tokens, idx, options, env, self) { 11 | var result = '

もくじ

'; 12 | result += defaultRender(tokens, idx, options, env, self); 13 | return result; 14 | } 15 | }; 16 | 17 | export default markdownItToc; -------------------------------------------------------------------------------- /docs/.vitepress/theme/md/markdownItTwemoji.ts: -------------------------------------------------------------------------------- 1 | import type { PluginSimple } from "markdown-it"; 2 | import { twemoji } from './twemoji'; 3 | 4 | const markdownItTwemoji: PluginSimple = (md) => { 5 | var defaultRender = 6 | md.renderer.rules.text || 7 | function (tokens, idx, options, env, self) { 8 | return self.renderToken(tokens, idx, options); 9 | }; 10 | 11 | md.renderer.rules.text = function (tokens, idx, options, env, self) { 12 | tokens[idx].content = twemoji.parse(tokens[idx].content); 13 | return defaultRender(tokens, idx, options, env, self); 14 | } 15 | }; 16 | 17 | export default markdownItTwemoji; -------------------------------------------------------------------------------- /docs/.vitepress/theme/md/markdownItMDinMD.ts: -------------------------------------------------------------------------------- 1 | import type { PluginSimple } from "markdown-it"; 2 | import fs from 'fs'; 3 | 4 | // #include "docs/ja/include.md" 5 | const reg = /#include "(.+)"/; 6 | 7 | const markdownItMDinMD: PluginSimple = (md) => { 8 | const parse = (src) => { 9 | var cap; 10 | while(cap = reg.exec(src)) { 11 | var path = cap[1].trim(); 12 | var txt = parse(fs.readFileSync(path, 'utf8')); 13 | src = src.substring(0, cap.index) + txt + src.substring(cap.index + cap[0].length); 14 | } 15 | return src; 16 | }; 17 | 18 | md.core.ruler.before('normalize', 'markdownItMDinMD', (s) => s.src = parse(s.src)); 19 | }; 20 | 21 | export default markdownItMDinMD; -------------------------------------------------------------------------------- /docs/.vitepress/theme/md/markdownItImage.ts: -------------------------------------------------------------------------------- 1 | import type { PluginSimple } from "markdown-it"; 2 | 3 | const markdownItImage: PluginSimple = (md) => { 4 | const defaultRender = 5 | md.renderer.rules.image || 6 | function (tokens, idx, options, env, self) { 7 | return self.renderToken(tokens, idx, options); 8 | }; 9 | 10 | md.renderer.rules.image = function (tokens, idx, options, env, self) { 11 | const token = tokens[idx]; 12 | if(token.attrs != null) 13 | { 14 | var result = ''; 17 | result += defaultRender(tokens, idx, options, env, self); 18 | result += ''; 19 | return result; 20 | } 21 | return defaultRender(tokens, idx, options, env, self); 22 | } 23 | }; 24 | 25 | export default markdownItImage; -------------------------------------------------------------------------------- /docs/public/scripts/script.js: -------------------------------------------------------------------------------- 1 | lightbox.option({ 2 | 'fadeDuration': 300, 3 | 'imageFadeDuration': 300, 4 | 'resizeDuration': 200 5 | }); 6 | 7 | function fadeAnime(){ 8 | $('.vp-doc > div > *').each(function(){ 9 | var elemPos = $(this).offset().top; 10 | var scroll = $(window).scrollTop(); 11 | var windowHeight = $(window).height(); 12 | if (scroll >= elemPos - windowHeight - 50){ 13 | $(this).addClass('fadeUp'); 14 | } 15 | }); 16 | } 17 | 18 | function countOl(){ 19 | $("ol").each(function() { 20 | $(this).css({ 21 | 'counterReset': 'cnt ' + ($(this).attr("start") - 1) 22 | }); 23 | }); 24 | }; 25 | 26 | function init(){ 27 | fadeAnime(); 28 | countOl(); 29 | }; 30 | 31 | $(window).on('scroll', fadeAnime); 32 | $(window).on('load', init); 33 | 34 | var config = { attributes: true }; 35 | 36 | var modoc = new MutationObserver(init); 37 | var mo = new MutationObserver(function() { 38 | init(); 39 | modoc.observe(document.querySelector('.vp-doc'), config); 40 | }); 41 | 42 | var vpdoc = document.querySelector('.vp-doc'); 43 | if(vpdoc) modoc.observe(vpdoc, config); 44 | mo.observe(document.querySelector('.VPContent'), config); -------------------------------------------------------------------------------- /docs/.vitepress/config/shared.ts: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vitepress' 2 | import markdownItTwemoji from '../theme/md/markdownItTwemoji' 3 | import markdownItImage from '../theme/md/markdownItImage' 4 | import markdownItToc from '../theme/md/markdownItToc' 5 | import markdownItMDinMD from '../theme/md/markdownItMDinMD' 6 | 7 | export const shared = defineConfig({ 8 | base: '/matome/', 9 | title: "Unityまとめ部", 10 | head: [ 11 | ['link', {rel: 'icon', type: 'image/svg+xml', href: '/matome/images/logo.svg'}], 12 | ['meta', {property: 'og:type', content: 'website'}], 13 | ['meta', {property: 'og:image', content: 'https://lilxyzw.github.io/matome/images/ogimg.jpg'}], 14 | ['meta', {property: 'twitter:card', content: 'summary'}], 15 | ['link', {rel: 'preconnect', href: 'https://fonts.googleapis.com'}], 16 | ['link', {rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: ''}], 17 | ['link', {href: 'https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Sans+Mono:wght@500&display=swap', rel: 'stylesheet'}], 18 | ], 19 | themeConfig: { 20 | logo: '/images/logo.svg', 21 | socialLinks: [ 22 | { icon: 'github', link: 'https://github.com/lilxyzw/matome' } 23 | ], 24 | footer: { 25 | message: 'Released under the CC BY 4.0.', 26 | copyright: 'Copyright @ 2024-present authors' 27 | }, 28 | editLink: { 29 | pattern: 'https://github.com/lilxyzw/matome/edit/main/docs/:path', 30 | text: 'Edit this page on GitHub' 31 | }, 32 | search: { 33 | provider: 'local' 34 | } 35 | }, 36 | lastUpdated: true, 37 | markdown: { 38 | config: (md) => { 39 | md.use(markdownItTwemoji) 40 | md.use(markdownItImage) 41 | md.use(markdownItToc) 42 | md.use(markdownItMDinMD) 43 | } 44 | } 45 | }) 46 | -------------------------------------------------------------------------------- /docs/ja/publish.md: -------------------------------------------------------------------------------- 1 | # ページの編集・追加について 2 | 3 | 基本的にはGitHubの[Pull Request](https://github.com/coreybutler/nvm-windows/pulls)で書いたマークダウンを投げるだけですが、実際の環境でどのように表示されるのかを確認したい場合のために執筆環境の構築方法を記載します。 4 | 5 | [[toc]] 6 | 7 | ## 環境構築手順(Windows) 8 | 9 | 1. [matome](https://github.com/lilxyzw/matome)をclone 10 | 11 | 2. [NVM for Windows](https://github.com/coreybutler/nvm-windows/releases)をインストール(既にnvm環境がある場合はそれでも可) 12 | 13 | 3. コマンドプロンプトを開き`nvm list available`コマンドを実行しバージョンを確認 14 | 15 | 4. `nvm install [バージョン番号]`でNode.jsをインストールし、`nvm use [バージョン番号]`でインストールしたものを有効化(インストールするバージョンは基本的にLTSの最新で大丈夫かと思われます。) 16 | 17 | 5. `cd [ディレクトリ]`コマンドで手順1でcloneしたディレクトリに移動 18 | ``` 19 | matome ← このフォルダ 20 | ├ .github 21 | ├ docs 22 | ├ .gitattributes 23 | ├ .gitignore 24 | ├ LICENSE 25 | ├ package-lock.json 26 | ├ package.json 27 | ``` 28 | 29 | 6. `npm ci`コマンドを実行(前提パッケージがインストールされます) 30 | 31 | 7. `npm run docs:dev`コマンドを実行(ページのプレビューが開始されます) 32 | 33 | 8. ブラウザで`http://localhost:5173/matome/`を開きプレビュー 34 | 35 | ## 既存のページの編集 36 | 37 | ページの編集については`docs/ja/...`フォルダのマークダウンを編集し、該当ページをブラウザで確認するだけです。 38 | 39 | ## 新規ページの作成 40 | 41 | ページを作成する場合はマークダウンの作成に加え、サイトマップにリンクを追加する必要があります。 42 | 43 | 1. `docs/ja/...`フォルダに移動し中にマークダウンを作成 44 | 45 | 2. 同一階層の`index.md`に作ったページへのリンクを追加 46 | 47 | 3. `docs/.vitepress/config/ja.ts`に作ったページへのリンクを追加 48 | 49 | 4. ブラウザで確認 50 | 51 | ## 画像や動画の追加について 52 | 53 | 画像や動画は`docs/public/images/ja/...`にマークダウンファイルと同じ名前のフォルダを作成しその中に配置してください。例えば`docs/public/images/ja/common/xxx/yyy.png`はマークダウンに`![画像](/images/ja/common/xxx/yyy.png "画像")`と書くことで参照できます。動画の場合、`