[docs] added possibility for collapsing sections #1594
Merged
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.
Refer to #1553 (comment) .
Due to the fact that the installation guide is getting bigger and bigger
Unfortunately, I can't find the way to implement collapsing technique with less lines of code.
If I'm not mistaken, approximately year ago @henry0312 you were against JS code, so I want to know your opinion. Maybe just adding Contents is enough, I don't know...
It looks like:
![image](https://user-images.githubusercontent.com/25141164/44307237-8cafd680-a3a7-11e8-9bcb-055a6f7e03c4.png)
collapsed:
uncollapsed:
![image](https://user-images.githubusercontent.com/25141164/44307248-af41ef80-a3a7-11e8-9d03-cc51ce97b581.png)
If someone forgot how to build documentation locally: https://github.com/Microsoft/LightGBM/blob/collapse/docs/README.rst#build
I'm not sure that
^
andv
is the best choice, I'm open for proposals from this list https://fontawesome.com/v4.7.0/icons/ .