generated from cncf/hugo-netlify-starter
-
Notifications
You must be signed in to change notification settings - Fork 165
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
Enhancements to website versioning #2117
Merged
FiniteStateGit
merged 15 commits into
o3de:main
from
aws-lumberyard-dev:willihay/website-versioning
Nov 23, 2022
+63
−49
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
df1495a
Add version switcher dropdown functionality to docs navbar
willihay 993cf6b
Preliminary work includes version warning banner text
willihay a480836
Return spacing of unchanged html to previous position
willihay b41e920
Add comments for draft PR
willihay eaa214a
Move version dropdown and prevent left nav from scrolling
willihay 2ef9709
Correct BaseURL in site config
willihay f37c090
Add preview info banner and update conditional logic
willihay cfceff9
Make local and preview into dynamic version options
willihay 441a1f8
JS fix
willihay 377d840
Add version CSS, defaults, load from config
willihay cbfaf5b
Move some CSS from HTML attributes to custom.sass
willihay a0af512
Improve function that adjusts sidebar attributes to prevent unwanted …
willihay 9b60aed
Resolve merge conflict
willihay 12b2c45
Fix attribute bug in updateSelectElement function
willihay e2b46e1
Add comments to sass
willihay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ $prnum := replaceRE `^https://deploy-preview-(\d+).*` "$1" .Permalink }} | ||
|
||
<p style="margin-bottom:0; text-align:center;"> | ||
<p class="build-info-text"> | ||
<b>GitHub pull request: <a href="{{ $.Site.Params.repositoryUrl }}/pull/{{ $prnum }}" target="_blank">PR {{ $prnum }}</a></b> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{{ $pathname := .RelPermalink }} | ||
|
||
<p style="margin-bottom:0; text-align:center;"> | ||
<p class="build-info-text"> | ||
<b>This page is not the current release of O3DE documentation. <a href="https://www.o3de.org{{ $pathname }}">Click here to switch to the latest release</a>, or select a version from the dropdown.</b> | ||
</p> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two lines contain the only important changes to navbar.html in this PR. The rest is fixing indentation, which the GitHub PR diff engine mangled.