Просмотр исходного кода

add notes to pdf-converter readme

Futa Arai 1 год назад
Родитель
Сommit
6f9141ad4e

+ 1 - 2
.devcontainer/app/devcontainer.json

@@ -8,8 +8,7 @@
 
   "features": {
     "ghcr.io/devcontainers/features/node:1": {
-      "version": "20.18.0",
-      "pnpmVersion": "9.4.0"
+      "version": "20.18.0"
     }
   },
 

+ 1 - 1
.devcontainer/pdf-converter/postCreateCommand.sh

@@ -8,7 +8,7 @@ sudo apt-get clean -y
 SHELL=bash pnpm setup
 eval "$(cat /home/node/.bashrc)"
 # Update pnpm
-pnpm i -g pnpm@9.4.0
+pnpm i -g pnpm
 
 # Install turbo
 pnpm install turbo --global

+ 4 - 0
apps/pdf-converter/README.md

@@ -27,6 +27,10 @@ This app (PDF-Converter) is necessary to convert markdown pages to PDF during th
 1. Request PDF bulk export from the page menu in the GROWI app
     - It might take a few minutes, depending on GROWI's configurations
 
+### Note
+When creating both containers from scratch or rebuilding them, **make sure to select and create GROWI-Dev first**.  
+This is necessary because GROWI-Dev uses devcontainer features for enabling node, and [features is only enabled for the first container created](https://github.com/devcontainers/spec/issues/546).
+
 ## PDF-Converter client library
 [pdf-converter-client](../../packages/pdf-converter-client) is a client library for requesting PDF-Converter, and is used by GROWI internally. It's code is auto-generated from the PDF-Converter code.
 

+ 4 - 0
apps/pdf-converter/README_JP.md

@@ -27,6 +27,10 @@ GROWI には、ページを PDF 形式で一括エクスポートする機能が
 1. GROWI アプリのページメニューから PDF の一括エクスポートをリクエスト
    - GROWI の設定によっては、処理に数分かかる場合があります
 
+### 備考
+二つのコンテナを初めて作成する時や、コンテナを rebuild する時、**必ず GROWI-Dev を先に選択して作成してください**。  
+GROWI-Dev は devcontainer features を使用して node を有効化していますが、[features は最初に作成したコンテナにしか有効になりません](https://github.com/devcontainers/spec/issues/546)。
+
 ## PDF-Converter クライアントライブラリ
 [pdf-converter-client](../../packages/pdf-converter-client) は、PDF-Converter へのリクエストを行うクライアントライブラリであり、GROWI 内部で使用されています。このコードは PDF-Converter のコードから自動生成されます。