-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[DOCFIX] Update the style of nav list #17760
Conversation
docs/_includes/sitemap.html
Outdated
{% for files in item.subfiles %} | ||
<div> | ||
<button class = "single"> | ||
<a class = "single-items" href="{{site.baseurl}}{{ files.url }}" >{{ item.title }}</a> | ||
</button> | ||
</div> | ||
{% endfor %} |
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.
if only 1 subfile, then no need for loop?
docs/_includes/sitemap.html
Outdated
{% if item.subfiles.size == 1 %} | ||
<div> | ||
<button class = "single"> | ||
<a class = "single-items" href="{{site.baseurl}}{{ files.url }}" >{{ item.title }}</a> |
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.
does files.url
still work without the files variable that was in the for loop?
also shift identation
alluxio-bot, merge this please |
make a differentiation between a title w/ subfiles vs a title with a single file. if it's only a single file, then create the button link instead of the dropdown style. This pr is related change based on #17737
example without format:
with format: