Skip to content

Add expand/collapse to all sections of dottydoc #2489

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

Merged
merged 3 commits into from
May 22, 2017

Conversation

Varunram
Copy link
Contributor

Intended as a fix for #2211. This is a preliminary version (there's a lot of code to be deleted regarding the short-body part of Constructors/Members). Please do comment your views :)

Copy link
Contributor

@felixmulder felixmulder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM so far, please go ahead with the deletions. Putting them as separate commits in this PR is fine 👍

@@ -142,3 +159,7 @@ div.entity-section > div.member > div.member-body > div.member-body-long {
div.entity-section > div.member > div.member-body > div.member-body-long.toggled {
display: block;
}

div.entity-section.toggled{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space after toggled

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do :)

var members = document.getElementById("entity-members");
members.classList.toggle("toggled");
span.innerHTML = (span.innerHTML == "[-]") ? "[+]" : "[-]";
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be the same function - but perhaps taking the members variable as argument.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I.e. toggleMembersBody and toggleConstructorsBody

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Will fix in the next commit. Is the edit with entities.scala acceptable?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - and it will be deleted soon anyway, right?

Copy link
Contributor Author

@Varunram Varunram May 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, along with other stuff. Wanted to confirm with the deletion.

@Varunram
Copy link
Contributor Author

Varunram commented May 21, 2017

@felixmulder Removed instances of comment.short and changed a few CSS class names. Please comment your views and I'll fix the commit history to Fix #2211: ... Thanks!

currdate=$(date "+%Y-%m-%d\ %H:%M:%S")
currDateComment="<!-- Docs Last Generated On "$currdate"-->"
sed -i '.original' "1s/^/$currDateComment\\
/" main.html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This script should probably not be included in the PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah Sorry! Will fix it when I fix the commit history. Thanks!

@felixmulder
Copy link
Contributor

Not by a computer currently, will test this tomorrow when I'm back at work, I want to see how it looks. Code looks fine otherwise! 👍

@felixmulder felixmulder merged commit 8ed5db5 into scala:master May 22, 2017
@Varunram
Copy link
Contributor Author

Varunram commented May 22, 2017

@felixmulder I think you'd have to revert that, courtesy rand.sh

@felixmulder
Copy link
Contributor

@Varunram - don't worry about it. Already took care of it in #2487 :)

@Varunram
Copy link
Contributor Author

I was waiting for your final call so I'd fix up the commit messages and stuff. Sorry

@felixmulder
Copy link
Contributor

No worries, I squashed away the nastiness - this shouldn't be a full time job for you - you're a contributor :)

@Varunram Varunram deleted the dottydocexpand branch May 22, 2017 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants