Fix #561 - Use TOC.md for documentation TOC
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[Roots Theme homepage](http://www.rootstheme.com/) | [Documentation
|
||||
table of contents](README.md)
|
||||
table of contents](TOC.md)
|
||||
|
||||
# Clean up
|
||||
|
||||
@@ -20,13 +20,13 @@ Clean up is handled by `lib/cleanup.php`. Major parts include:
|
||||
|
||||
### Root relative URLs
|
||||
|
||||
Root relative URLs are enabled from `lib/config.php`.
|
||||
Root relative URLs are enabled from `lib/config.php`.
|
||||
|
||||
Return URLs such as `/assets/css/app.css` instead of `http://example.com/assets/css/app.css`.
|
||||
|
||||
### Wrap embedded media as suggested by Readability
|
||||
|
||||
The [Readability article publishing guidelines](http://www.readability.com/developers/guidelines#publisher) suggest wrapping embedded media with a class of `entry-content-asset`.
|
||||
The [Readability article publishing guidelines](http://www.readability.com/developers/guidelines#publisher) suggest wrapping embedded media with a class of `entry-content-asset`.
|
||||
|
||||
### Use HTML5 figure and figcaption for images with captions
|
||||
|
||||
@@ -53,22 +53,22 @@ Walker_Nav_Menu (WordPress default) example output:
|
||||
|
||||
<li id="menu-item-8" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-8"><a href="/">Home</a></li>
|
||||
<li id="menu-item-9" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-9"><a href="/sample-page/">Sample Page</a></l
|
||||
|
||||
|
||||
Roots_Nav_Walker example output:
|
||||
|
||||
<li class="menu-home"><a href="/">Home</a></li>
|
||||
<li class="menu-sample-page"><a href="/sample-page/">Sample Page</a></li>
|
||||
|
||||
|
||||
If using the Bootstrap top navbar (enabled in `lib/config.php`), the proper markup is added to the items and the depth is restricted to 2 (Bootstrap doesn't support multi-level dropdowns).
|
||||
|
||||
Instead of the many different active class varities that WordPress usually uses, only `active` is returned on active items.
|
||||
Instead of the many different active class varities that WordPress usually uses, only `active` is returned on active items.
|
||||
|
||||
### Remove unnecessary self-closing tags
|
||||
|
||||
Self-closing tags aren't necessary with HTML5. They're removed on:
|
||||
|
||||
1. `get_avatar()` (`<img />`)
|
||||
2. `comment_id_fields()` (`<input />`)
|
||||
2. `comment_id_fields()` (`<input />`)
|
||||
3. `post_thumbnail_html()` (`<img />`)
|
||||
|
||||
### Don't return the default description in the RSS feed if it hasn't been changed
|
||||
|
||||
Reference in New Issue
Block a user