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 404 page (missing tabs property was making it render funny). #371

Merged
merged 1 commit into from
Mar 29, 2023

Conversation

hategan
Copy link
Collaborator

@hategan hategan commented Mar 28, 2023

Also added code to detect if the 404 is on a documentation page. The version switcher in the documentation attempts to preserve the path (so that if you are looking at, say, JobExecutor in a version, you'd also potentially be looking at JobExecutor after the switch). However, there is no guarantee that the docs structure is the same in the two versions, so you may land on a page that's not there. The code looks at whether you are hitting a 404 on a docs page and offers a link to the main docs page for that version.

Also, a minor fix in getCurrentVersion

Also added code to detect if the 404 is on a documentation page.
The version switcher in the documentation attempts to preserve the
path (so that if you are looking at, say, JobExecutor in a version, you'd
also potentially be looking at JobExecutor after the switch). However,
there is no guarantee that the docs structure is the same in the two
versions, so you may land on a page that's not there. The code looks
at whether you are hitting a 404 on a docs page and offers a link to the
main docs page for that version.

Also, a minor fix in `getCurrentVersion`
@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #371 (39a54ee) into main (681a6c1) will increase coverage by 0.06%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #371      +/-   ##
==========================================
+ Coverage   69.72%   69.79%   +0.06%     
==========================================
  Files          74       74              
  Lines        3168     3168              
==========================================
+ Hits         2209     2211       +2     
+ Misses        959      957       -2     

see 1 file with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@andre-merzky andre-merzky left a comment

Choose a reason for hiding this comment

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

Thanks

@hategan hategan merged commit 3a15a55 into main Mar 29, 2023
@hategan hategan deleted the add_404_page branch March 29, 2023 21:41
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