-
Notifications
You must be signed in to change notification settings - Fork 3
Local Documentation Preview with Docker #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| trento-docs: | ||
| image: node:20-bullseye | ||
| volumes: | ||
| - .:/workspace:z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added :z for selinux enforcing issues
|
|
||
| . **Start the Preview** | ||
| + | ||
| Navigate to the root directory of the repository and run the following command. This starts the build process inside a container: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Navigate to the root directory of the repository and run the following command. This starts the build process inside a container: | |
| To start the build process inside a container, navigate to the root directory of the repository and run the following command: |
abravosuse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on what I see in the video, it LGTM!
jagabomb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This works for better for me on a mac. 😄
nelsonkopliku
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
* Add local docs build * Fix selinux permission * Add workflow guide
Description
This pr helps contributors quickly to preview their new changes to the antora page without setting up antora dependencies on your host.
If you have podman/docker installed just run docker-compose up and it will build the the documentation page for your selected branch
I think this is easier then having to install dependencies every time on a new host, like in this guide
https://www.trento-project.io/docs/developer/trento-docs-site/README.html#_1_clone_the_repository
Demo
Screencast.From.2025-11-18.16-09-03.mp4