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

Self host redoc #284

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

Zanda256
Copy link

@Zanda256 Zanda256 commented Feb 6, 2025

With this change, we download and host the latest Redoc script every time we generate a backend.

Resolves #38

Checklist

  • I have read the contribution guide.
  • I have not used an AI coding assistant to create this PR.
  • My contribution is compatible with the MPL-2.0 license and I have provided a DCO sign-off on all my commits.
  • I have written all code in this PR myself OR I have marked all code I have not written myself (including modified code, e.g. copied from other places and then modified) with a comment indicating where it came from.

Copy link
Contributor

@abstractionfactory abstractionfactory left a comment

Choose a reason for hiding this comment

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

Looking good, a few more things just caught my eye.

Copy link
Contributor

@abstractionfactory abstractionfactory left a comment

Choose a reason for hiding this comment

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

Hey @Zanda256 looking good! Let's add the SHA256 checksum explicitly to the pull tool as a command line argument and we'll record it the first time we download it in the go:generate command.

Copy link
Contributor

@abstractionfactory abstractionfactory left a comment

Choose a reason for hiding this comment

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

LGTM! I'd refactor the download tool to deduplicate the code, but this can be done later. Thank you for your work!

@Zanda256
Copy link
Author

LGTM! I'd refactor the download tool to deduplicate the code, but this can be done later. Thank you for your work!

My pleasure @abstractionfactory .

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.

Self-host ReDoc
2 participants