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

[DOCFIX] Update the style of nav list #17760

Merged
merged 3 commits into from
Jul 11, 2023
Merged

Conversation

Zijian-Zhu
Copy link
Contributor

@Zijian-Zhu Zijian-Zhu commented Jul 11, 2023

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:
image

with format:
image

Comment on lines 4 to 10
{% for files in item.subfiles %}
<div>
<button class = "single">
<a class = "single-items" href="{{site.baseurl}}{{ files.url }}" >{{ item.title }}</a>
</button>
</div>
{% endfor %}
Copy link
Contributor

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?

{% if item.subfiles.size == 1 %}
<div>
<button class = "single">
<a class = "single-items" href="{{site.baseurl}}{{ files.url }}" >{{ item.title }}</a>
Copy link
Contributor

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

@Zijian-Zhu Zijian-Zhu added the type-docs Documentation Defects label Jul 11, 2023
@Zijian-Zhu
Copy link
Contributor Author

alluxio-bot, merge this please

@alluxio-bot alluxio-bot merged commit d4fd4c5 into Alluxio:main Jul 11, 2023
6 checks passed
@Zijian-Zhu Zijian-Zhu deleted the button branch July 26, 2023 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-docs Documentation Defects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants