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

Fix #697: Make unexisting docs pages return 404 status #872

Merged
merged 3 commits into from
Dec 19, 2019

Conversation

iAdramelk
Copy link
Contributor

@iAdramelk iAdramelk commented Dec 17, 2019

Fix #697. Add check for /doc pages in server.js, if page does not exists, it return correct status.

@shcheklein shcheklein temporarily deployed to dvc-landing-gf-fix--697-6aoek3 December 17, 2019 12:45 Inactive
Copy link
Member

@shcheklein shcheklein left a comment

Choose a reason for hiding this comment

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

utils/sidebar.json is a strange location for the file? can we move it anywhere at all?

utils/helper.js Outdated Show resolved Hide resolved
utils/helper.js Outdated Show resolved Hide resolved
utils/helper.js Outdated Show resolved Hide resolved
@jorgeorpinel
Copy link
Contributor

I tested the deployment and it works, thanks @iAdramelk! Seems like we just have minor concerns here 🙂 ^

@iAdramelk

This comment has been minimized.

@shcheklein

This comment has been minimized.

@shcheklein shcheklein temporarily deployed to dvc-landing-gf-fix--697-6aoek3 December 18, 2019 13:04 Inactive
@iAdramelk
Copy link
Contributor Author

Updated names and locations:

utils/helper.js -> src/utils/sidebar.js
utils/sidebar.json -> static/docs/sidebar.json

Also updated path to sidebar.json in docs.

Copy link
Contributor

@jorgeorpinel jorgeorpinel left a comment

Choose a reason for hiding this comment

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

Just pending resolving #872 (review)

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.

engine: return HTTP 404 when Page404 component is rendered
3 participants