Skip to content
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

Add method to easily spin up doc server #255

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

cpuguy83
Copy link
Member

This uses dagger to build the website and serve on a local port. Example usage:

$ go -C ./website run .

This will, by default, make the server available on port 3000.

I've set this up as a separate module so that dagger dependencies do not interfere with the main module dependencies.

@cpuguy83 cpuguy83 requested a review from a team as a code owner May 17, 2024 00:37
@DannyBrito
Copy link
Contributor

DannyBrito commented May 17, 2024

could, we also add this as maybe a reference page in the docs-website on how to run it :)

@cpuguy83 cpuguy83 force-pushed the docserver branch 2 times, most recently from 374939f to 19b9c56 Compare May 17, 2024 18:03
@sozercan
Copy link
Member

wow this is fancy

+1 to @DannyBrito's comment about adding to https://github.com/Azure/dalec/blob/main/website/README.md

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

This uses dagger to build the website and serve on a local port.
Example usage:

  go -C ./website run .

This will, by default, make the server available on port 3000.

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83
Copy link
Member Author

Added the readme, also made some minor changes to make the startup a lot cleaner and better use of caching for node modules.

@sozercan sozercan merged commit 73b2286 into Azure:main May 21, 2024
10 checks passed
@cpuguy83 cpuguy83 deleted the docserver branch May 21, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants