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

Section Headings and Tables of Contents #442

Open
fantasyui-com opened this issue Apr 5, 2020 · 2 comments
Open

Section Headings and Tables of Contents #442

fantasyui-com opened this issue Apr 5, 2020 · 2 comments
Assignees

Comments

@fantasyui-com
Copy link

fantasyui-com commented Apr 5, 2020

I am looking at http://staging.sass-lang.com/documentation/functions/color and it is hard to find things.
ew

Here is what I think maybe more helpful (page is not about sass, but you get the idea).
ooh

I looked at #245 but I didn't understand where the changes were made, I hope I am not interrupting anyone.

The tiny TOC, I mention would list all the function names in context of http://staging.sass-lang.com/documentation/functions/color (adjust-color, adjust-hue, etc...) It would be extremely helpful for newcomers.

As a side note, (I don't want to open another issue for this) conditional statements are stored under at-rules, that's hard to find. If I may, I think we need to present sass as a language first, so the language reference sections would be more like: Comments, Variables, Interpolation, Strings, Numbers, Lists/Maps, Conditional Statements, Loops, Mixins, Functions, etc.

And we need supported/unsupported indicator for https://github.com/sass/sass or just add "Dart Sass/Js Sass" in the existing section.

I know that what you have created thus far is done with experience and wisdom, and foresight, and proper context. I just wanted you to know that opening http://staging.sass-lang.com/documentation/functions/color feels like looking at a single blob of text, and it frightens me, and probably others too.

Thank You.

@nex3
Copy link
Contributor

nex3 commented Apr 16, 2020

@jina What do you think about having page-specific tables of contents for the function docs?

@fantasyui-com Are the subsections in the sass:math documentation the sort of thing you're looking for?

As a side note, (I don't want to open another issue for this) conditional statements are stored under at-rules, that's hard to find. If I may, I think we need to present sass as a language first, so the language reference sections would be more like: Comments, Variables, Interpolation, Strings, Numbers, Lists/Maps, Conditional Statements, Loops, Mixins, Functions, etc.

That would add a lot of vertical space to the top-level table of contents, and I think it could also be confusing if things that are clearly at-rules weren't categorized as such.

And we need supported/unsupported indicator for https://github.com/sass/sass or just add "Dart Sass/Js Sass" in the existing section.

I'm not sure what you mean by this.

@fantasyui-com
Copy link
Author

Yup, page-specific tables of contents for the function docs would do it.

Yes, with a TOC up top, it would be nice to have the subsections as in the sass:math documentation. Just to see where things start and end.

As to at rules, your wisdom should rule. But as a user I couldn't find "If Statements" I had to google SASS cheatsheet to learn about your language. There is no time to take tutorials, in the documentation. There is only time to look in a menu and scan for "Condictional" or "Logic" or something like that. It is good to underline the fact that those are at rules. but tucking away Conditional statements under something that does not sound like conditial statements (If, Logic, etc) is what got me.

As to "supported/unsupported indicator" I am sorry I was unclear, and I maybe mistaken about this, I mean this (doodled in red):

indicator

I am a https://github.com/sass/sass user, which is described as "the pure JavaScript implementation of Sass" in the README.md and that's not featured in the "supported/unsupported indicator" row/section. When I look on github dart and js are separate repositories:

supported

And I just found "Both major Sass implementations support the same JavaScript API. Dart Sass is distributed as the pure-Javascript sass package, and LibSass is distributed as a native extension in the node-sass package. on the https://sass-lang.com/documentation/js-api page. This is burried under https://sass-lang.com/documentation/js-api

Also "Ruby Sass has reached end of life and is now totally unmaintained. Please switch to Dart Sass or LibSass at your earliest convenience." is burried on https://sass-lang.com/documentation/cli/ruby-sass

WARNING: I AM STILL MISUNDERSTANDING THINGS HERE
So to fix the problem you have to either call (I am referring to the "supported/unsupported indicator") "Dart Sass" as sass, or split "Dart Sass" into "sass" and "Dart Sass"

Unified Version

a

Split Version

b

And it would be amazing if you linked to the code repositories.

The problem that started this, is me not being able to use @use and color.adjust with node-sass. I maybe mistaken here, maybe node-sass does support @use and color.adjust statement and I was just doing something wrong. I switched to sass (as opposed to node-sass) and @use/color.adjust statement worked.

I understand that the c++ libsass is packaged as node-sass, and that sass is dart transpired into js, and that Dart Sass is also a command line program, Ruby is out, nope...

END OF WARNING: I AM STILL UNSURE BUT I GOT IT

see, I dind't understand.

I do now, sass is dart-sass(dart)
node-sass is libsass(c++)

If you, in your wisdom find a way to express this in that "supported/unsupported indicator" your new users will not be confused about what is what.

So, here is what the bar should look like (if I understood correctly)

c

(you can eliminate the parentheses by just linking to repositories.)

So, you see, I still got it wrong, but I think I got it right in the end.

RTFM is the the right advice for me, but you have the power to turn the language reference into something that will click with speed learner/readers and awesome noobs (comme moi ).

Nobody would ever learn PHP is they were sent to the docs first.

I learned sass from here: https://devhints.io/sass that is just not fair to you and your hard work.

Thank You.

Friendly-users added a commit to Friendly-users/sass-site that referenced this issue Jun 27, 2024
-----
It is inappropriate to include political and offensive content in public code repositories.

Public code repositories should be neutral spaces for collaboration and community, free from personal or political views that could alienate or discriminate against others. Political content, especially that which targets or disparages minority groups, can be harmful and divisive. It can make people feel unwelcome and unsafe, and it can create a hostile work environment.

Please refrain from adding such content to public code repositories.
---

 sass#400 sass#401 sass#402 sass#403 sass#404 sass#405 sass#406 sass#407 sass#408 sass#409 sass#410 sass#411 sass#412 sass#413 sass#414 sass#415 sass#416 sass#417 sass#418 sass#419 sass#420 sass#421 sass#422 sass#423 sass#424 sass#425 sass#426 sass#427 sass#428 sass#429 sass#430 sass#431 sass#432 sass#433 sass#434 sass#435 sass#436 sass#437 sass#438 sass#439 sass#440 sass#441 sass#442 sass#443 sass#444 sass#445 sass#446 sass#447 sass#448 sass#449 sass#450 sass#451 sass#452 sass#453 sass#454 sass#455 sass#456 sass#457 sass#458 sass#459 sass#460 sass#461 sass#462 sass#463 sass#464 sass#465 sass#466 sass#467 sass#468 sass#469 sass#470 sass#471 sass#472 sass#473 sass#474 sass#475 sass#476 sass#477 sass#478 sass#479 sass#480 sass#481 sass#482 sass#483 sass#484 sass#485 sass#486 sass#487 sass#488 sass#489 sass#490 sass#491 sass#492 sass#493 sass#494 sass#495 sass#496 sass#497 sass#498 sass#498 sass#499
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

No branches or pull requests

3 participants