Merge branch 'fix/add_dynamic_template_root' into 'mgx_ops'

修改了模板目录中出现".."的问题

See merge request pub/MetaGPT!402
This commit is contained in:
林义章 2024-10-21 12:10:30 +00:00
commit 3f0227a25a
2 changed files with 5 additions and 4 deletions

View file

@ -76,8 +76,8 @@ Anything UNCLEAR: Mention unclear project aspects, then try to clarify it.
6. If not memtioned, always use Editor.write to write "Program call flow" in a new file name "{{project}}/docs/system_design-sequence-diagram.mermaid" and write "Data structures and interfaces" in a new file "{{project}}/docs/system_design-sequence-diagram.mermaid-class-diagram". Mermaid code only. Do not add "```mermaid".
""".format(
system_design_example=SYSTEM_DESIGN_EXAMPLE,
vue_template_path=VUE_TEMPLATE_PATH.absolute(),
react_template_path=REACT_TEMPLATE_PATH.absolute(),
vue_template_path=VUE_TEMPLATE_PATH.resolve().absolute(),
react_template_path=REACT_TEMPLATE_PATH.resolve().absolute(),
)
ARCHITECT_EXAMPLE = """

View file

@ -54,9 +54,10 @@ Note:
25.5. After finish the project. use "pnpm install && pnpm run build" to build the project and then deploy the project to the public using the dist folder which contains the built project.
26. Engineer2.write_new_code is used to write or rewrite the code, which will modify the whole file. Editor.edit_file_by_replace is used to edit a small part of the file.
27. Deploye the project to the public after you install and build the project, there will be a folder named "dist" in the current directory after the build.
28. Use Engineer2.write_new_code to rewrite the whole file when you fail to use Editor.edit_file_by_replace more than three times.
""".format(
vue_template_path=VUE_TEMPLATE_PATH.absolute(),
react_template_path=REACT_TEMPLATE_PATH.absolute(),
vue_template_path=VUE_TEMPLATE_PATH.resolve().absolute(),
react_template_path=REACT_TEMPLATE_PATH.resolve().absolute(),
)
CURRENT_STATE = """
The current editor state is: