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

DOP-5250: Support .ast filenames as pages #1327

Closed
wants to merge 1 commit into from

Conversation

rayangler
Copy link
Collaborator

@rayangler rayangler commented Dec 16, 2024

Stories/Links:

DOP-5250

Current Behavior:

N/A

Staging Links:

Java staging - .ast file
Java staging - .txt file (regression check)

Notes:

  • .ast filenames should be treated as full pages too

README updates

    • This PR introduces changes that should be reflected in the README, and I have made those updates.
    • This PR does not introduce changes that should be reflected in the README

Copy link

netlify bot commented Dec 16, 2024

Deploy Preview for docs-frontend-stg ready!

Name Link
🔨 Latest commit 2ddade9
🔍 Latest deploy log https://app.netlify.com/sites/docs-frontend-stg/deploys/6760808e55a36f00088ce32d
😎 Deploy Preview https://deploy-preview-1327--docs-frontend-stg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rayangler rayangler marked this pull request as ready for review December 16, 2024 19:34
Comment on lines +158 to +160
const validPageExtensions = ['.txt', '.ast'];
const isValidPageExtension = validPageExtensions.some((ext) => filename.endsWith(ext));
if (isValidPageExtension && !manifestMetadata.openapi_pages?.[key]) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just wondering if we need this! I thought we "translated" them in the parser to .txt extensions. Might have read this incorrectly though!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I also thought that it would translate it to .txt extensions, but it turned out that that's specifically to support YAML files... I think I've found a way to get it working, but need to work through some bugs. Gonna close this PR for now while I investigate

@rayangler rayangler closed this Dec 16, 2024
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.

2 participants