GitHub Action 7942307b2d Bump version před 1 rokem
..
docker 294b0b1e45 change pdf-converter image name před 1 rokem
src 6787c1f4f8 fix tsed logger error in pdf converter před 1 rokem
.env e1f8e1fe82 add pdf-converter app před 1 rokem
.eslintignore abab458ad1 remove client library file from pdf-converter před 1 rokem
.eslintrc.cjs f05ae1dac1 rename .eslintrc.js to .eslintrc.cjs před 1 rokem
.gitignore dadcf071c5 gitignore spec dir for pdf-converter před 1 rokem
README.md 6f9141ad4e add notes to pdf-converter readme před 1 rokem
README_JP.md 6f9141ad4e add notes to pdf-converter readme před 1 rokem
nodemon.json 87dae53901 change pdf-converter package type to module před 1 rokem
package.json 7942307b2d Bump version před 1 rokem
tsconfig.build.json b07fc9d278 add ci-slackbot-proxy-launch-prod job před 1 rokem
tsconfig.json 87dae53901 change pdf-converter package type to module před 1 rokem
turbo.json f14de7137d add settings for pdf-converter release před 1 rokem

README.md

日本語 🇯🇵

About this app

GROWI provides a feature that bulk exports pages in PDF format, which can be executed from the page menu. This app (PDF-Converter) is necessary to convert markdown pages to PDF during that process.

Development

Spec (only in Japanese)

/資料/内部仕様/Page Bulk Export/PDF エクスポート

Developing inside a devcontainer

  1. Open VSCode
  2. Open command palette (Windows: Ctrl + Shift + P, Mac: Cmd + Shift + P)
  3. Choose Dev Containers: Open folder in Container...
  4. Choose the root growi directory you have cloned from https://github.com/weseek/growi
    • Not the PDF-Converter directory (growi/apps/pdf-converter)
  5. Choose GROWI-PDF-Converter as the container to open
  6. Execute cd apps/pdf-converter && turbo dev:pdf-converter to start the pdf-converter app
  7. Edit files in apps/pdf-converter for development

Requesting PDF-Converter from GROWI (both running in a devcontainer)

  1. Open VSCode and open GROWI devcontainer
    • Choose GROWI-Dev for the container to open
  2. Open a new VSCode window and open PDF-Converter devcontainer
  3. Start both apps
  4. 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.

PDF-Converter client library

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.

When you update the PDF-Converter API, you should also always update the client library.

You can update the client library by one of the following ways:

  • Execute cd ${growi_root_path}/packages/pdf-converter-client && pnpm gen:client-code
  • Start GROWI app
    • Inside GROWI devcontainer (not PDF-Converter devcontainer), execute cd ${growi_root_path}/apps/app && turbo dev