Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Change how we do versioning #1532

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

Draft
titusfortner wants to merge 6 commits into trunk
base: trunk
Choose a base branch
Loading
from versions
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move translations to documentation-only pages as well
  • Loading branch information
titusfortner committed Nov 25, 2023
commit defa441567e72157176b9a912fc3bff5d509d07b
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
.version-selector a {
.docs-toggles {
float: right;
}

.docs-toggles a {
border-bottom: 0px;
text-align: right;
font-size: 1.5rem;
}

.version-selector ul {
.docs-toggles ul {
right: 0 !important;
left: auto !important;
}
2 changes: 1 addition & 1 deletion website_and_docs/assets/scss/_styles_project.scss
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
@import "logo";
@import "screen";
@import "tabs";
@import "version_selector"
@import "docs_toggles"
11 changes: 10 additions & 1 deletion website_and_docs/layouts/docs/baseof.html
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,18 @@
<main class="col-12 col-md-9 col-xl-8 ps-md-5" role="main">
{{ partial "version-banner.html" . }}
{{ if not .Site.Params.ui.breadcrumb_disable }}
<ul class="docs-toggles">
{{ if and (gt (len .Site.Home.Translations) 0) (ne .RelPermalink "/legacy/") }}
<li class="nav-item dropdown d-none d-lg-block">
{{ partial "navbar-lang-selector.html" . }}
</li>
{{ end }}
{{ if .Site.Params.versions }}
<li class="nav-item dropdown d-none d-lg-block">
{{ partial "navbar-version-selector.html" . }}
{{ end }}
</li>
{{ end }}
</ul>
{{ partial "breadcrumb.html" . }}
{{ end }}
{{ block "main" . }}{{ end }}
Expand Down
38 changes: 18 additions & 20 deletions website_and_docs/layouts/partials/navbar-version-selector.html
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<div class="version-selector">
<div class="dropdown">
<a id="versionDropdownToggle" class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{- if in .RelPermalink "legacy" -}}
Legacy
{{- else -}}
{{- .Site.Params.version_menu -}}
{{- end -}}
</a>
<ul class="dropdown-menu">
{{ $path := "" -}}
{{ if .Site.Params.version_menu_pagelinks -}}
{{ $path = .Page.RelPermalink -}}
{{ end -}}
{{ range .Site.Params.versions -}}
<li><a class="dropdown-item" href="{{ .url }}{{ $path }}">{{ .version }}</a></li>
{{ end -}}
</ul>
</div>
</div>
<div class="dropdown">
<a id="versionDropdownToggle" class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{- if in .RelPermalink "legacy" -}}
Legacy
{{- else -}}
{{- .Site.Params.version_menu -}}
{{- end -}}
</a>
<ul class="dropdown-menu">
{{ $path := "" -}}
{{ if .Site.Params.version_menu_pagelinks -}}
{{ $path = .Page.RelPermalink -}}
{{ end -}}
{{ range .Site.Params.versions -}}
<li><a class="dropdown-item" href="{{ .url }}{{ $path }}">{{ .version }}</a></li>
{{ end -}}
</ul>
</div>
5 changes: 0 additions & 5 deletions website_and_docs/layouts/partials/navbar.html
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@
{{ end }}
</li>
{{ end }}
{{ if (gt (len .Site.Home.Translations) 0) }}
<li class="nav-item dropdown d-none d-lg-block">
{{ partial "navbar-lang-selector.html" . }}
</li>
{{ end }}
</ul>
<div class="navbar-nav">{{ partial "search-input.html" . }}</div>
</div>
Expand Down

AltStyle によって変換されたページ (->オリジナル) /