Writerside Builder是用于构建和管理技术文档的Docker镜像,支持结构化文档创作、格式转换及导出,助力高效生成专业技术文档。
For detailed instructions, see https://www.jetbrains.com/help/writerside/build-with-docker.html.
When running a container from this image, mount the project sources directory (and an optional separate output directory) into the container and run the helpbuilderinspect command, which launches the CLI builder. For example, if you want to build the default instance hi in the starter project, run the following command from the project root:
docker run --rm -v .:/opt/sources \ jetbrains/writerside-builder:242.21870 \ /bin/bash -c " export DISPLAY=:99 && Xvfb :99 & /opt/builder/bin/idea.sh helpbuilderinspect \ --source-dir /opt/sources \ --product Writerside/hi \ --runner other \ --output-dir /opt/sources/output "
This command does the following:
-
Mounts the current directory (you should be running it from the project root) to the directory
/opt/sourcesin the container. If you want to output the built artifacts to a different directory, add a separate mount using another-voption. -
Runs the container from the
writerside-builderimage. -
The container first prepares the environment by setting the
DISPLAYvariable to:99and runningXvfb :99in the background to emulate a physical display on a virtual machine. -
Then it runs the
/opt/builder/bin/idea.shscript with thehelpbuilderinspectcommand and options that specify directories with the sources and output, and the instance to build. -
When it is done, Docker removes the container. You should find the output in the output directory under the project root.
The helpbuilderinspect command has the following options:
-
--source-dir-iSpecify the directory with documentation sources.
-
--product-pSpecify the module and instance that you want to build, separated by a slash /.
-
--runner-rSpecify the environment or platform on which the builder will be executed. The supported values are case-insensitive and include:
-
teamcity: This is the default value that produces artifacts specific for TeamCity. -
gitlab: Produce artifacts specific for GitLab. -
github: Produce artifacts specific for GitHub. -
other: Produce generic artifacts that may require some adjustments for your environment.
-
-
--output-dir-oSpecify the output directory where the generated documentation will be stored.
jetbrains 命名空间的其他可用镜像:
jetbrains/youtrack
jetbrains/code-with-me-lobby
jetbrains/upsource
jetbrains/teamcity-minimal-agent
jetbrains/qodana-dotnet
jetbrains/teamcity-agent
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 writerside-builder 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务