Access4all / adg

Accessibility Developer Guide
http://www.accessibility-developer-guide.com
Other
187 stars 36 forks source link

Add ToC #305

Closed backflip closed 3 years ago

backflip commented 3 years ago

Display table of contents on every page (first-level pages excluded). See https://github.com/Access4all/adg/issues/303

Demo: https://deploy-preview-305--accessibility-developer-guide.netlify.app

Preview: image

jmuheim commented 3 years ago

Thanks, @backflip.

I feel that we better place the TOC below the first (big) paragraph.

image

And we need to give it a special appearance and a title, something like a little box on the right maybe? Compare to MDN:

image

backflip commented 3 years ago

@jmuheim, I agree with the placement, however, we would have to insert it manually in every README.md: https://github.com/Access4all/adg/issues/303#issuecomment-760166639. If this is okay with you, I'll edit the READMEs accordingly.

backflip commented 3 years ago

Regarding appearance: @christophdubach, could you have a look at this?

moltebeeri commented 3 years ago

"Schönere" Gestaltung kann im Nachgang gemacht werden.

christophdubach commented 3 years ago

@backflip, I made some CSS modifications, they should also work if we move the ToC below the lead text. Please have a look at it: https://github.com/Access4all/adg/pull/337