Skip to content

Conversation

3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Sep 21, 2025

cf. #233

変更点

  • /website/typst-docs-web/ディレクトリをGit submoduleに変更した

@3w36zj6 3w36zj6 requested a review from Copilot September 21, 2025 07:33
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR converts the /website/typst-docs-web/ directory from a direct code implementation to a Git submodule, simplifying repository management by referencing an external repository for the SSG (Static Site Generator) codebase.

  • Removes all TypeScript/JavaScript SSG implementation files from the main repository
  • Adds typst-docs-web as a Git submodule pointing to an external repository
  • Updates documentation to explain the submodule structure and initialization process

Reviewed Changes

Copilot reviewed 74 out of 81 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.gitmodules Configures the new Git submodule for typst-docs-web
website/typst-docs-web Replaces the directory with a submodule reference
website/README.md Documents the new submodule structure and initialization steps
CONTRIBUTING.md Updates contribution guidelines to include --recursive flag for cloning
Multiple SSG files Removes all TypeScript/React SSG implementation files (vite.config.ts, src/*, etc.)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Member

@kimushun1101 kimushun1101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご対応いただきありがとうございます。動作確認できました。
補助的なコメントを入れました。

Co-authored-by: Shunsuke KIMURA <kimushun1101@gmail.com>
@ultimatile
Copy link
Contributor

ultimatile commented Sep 28, 2025

ln -s ../../../docs.json website/typst-docs-web/public/docs.json
ln: ln: website/typst-docs-web/public/docs.jsonwebsite/typst-docs-web/public/favicon.png: No such file or directory
: No such file or directory

となってビルドできなかったのですが、../../../はどこを指していますか?
というかなんかパスが潰れてます?
これmiseの実行が非同期なせいで表示が混ざってるんですね

[symlink-web-metadata] $ ln -s ../../favicon.png website/typst-docs-web/public/favicon.png
[symlink-docs-assets] $ ln -s ../../../docs.json website/typst-docs-web/public/docs.json
ln: website/typst-docs-web/public/favicon.png: No such file or directory
ln: website/typst-docs-web/public/docs.json: No such file or directory

こうですね

@3w36zj6
Copy link
Member Author

3w36zj6 commented Sep 28, 2025

ln -s ../../../docs.json website/typst-docs-web/public/docs.jsonにおける../../../website/typst-docs-web/public/からの相対パスなので、リポジトリのルート/を指します。

CIとローカル環境のどちらでも動作確認ができているのですが、詳しい状況を教えてもらえますか?

考えられる可能性としては、Git submoduleが初期化できておらず、シンボリックリンクの作成先パスの親ディレクトリが存在しないことによるエラーかもしれません。以下のコマンドを実行し、/website/typst-docs-web/にSSGの実体が存在していることを確認してください。

git submodule update --init --recursive

@ultimatile
Copy link
Contributor

すみません、やり直したら何もしていないのに直りました、なんだったのでしょう...
お騒がせして申し訳ありません。

@3w36zj6 3w36zj6 merged commit 38de3e0 into main Sep 29, 2025
3 checks passed
@3w36zj6 3w36zj6 deleted the feature/make-ssg-git-submodule branch September 29, 2025 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants