Skip to content

Commit

Permalink
Version did not pick up.
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Oct 15, 2014
1 parent 468dc24 commit 49a01f0
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"jquery": ">=1"
},
"version": "0.0.2",
"version": "1.0.1",
"name": "contents",
"description": "Automatically generate table of contents for a given area of content.",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion contents.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"name": "contents",
"description": "Automatically generate table of contents for a given area of content.",
"version": "0.0.2",
"version": "1.0.1",
"keywords": [
"table of contents",
"toc",
Expand Down
2 changes: 1 addition & 1 deletion dist/contents.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @version 0.0.2
* @version 1.0.1
* @link https://github.com/gajus/contents for the canonical source repository
* @license https://github.com/gajus/contents/blob/master/LICENSE BSD 3-Clause
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/contents.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions example/basic/example.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
* {
margin: 0;
padding: 0; }

body {
font: normal 16px/24px 'Helvetica Neue', Helvetica, Arial, freesans, sans-serif; }

main {
width: 960px;
margin: 0 auto;
overflow: hidden; }

#contents {
position: fixed;
top: 40px;
width: 320px; }
#contents ol {
counter-reset: section;
list-style-type: none; }
#contents li:before {
counter-increment: section;
content: counters(section, '.') '. '; }
#contents > ol {
background: #FFF8DC;
border: 1px solid #E0DCBF;
padding: 10px; }
#contents a {
color: #0000ee;
text-decoration: none; }
#contents a:hover {
text-decoration: underline; }
#contents .active-anchor > a {
color: #f00; }
#contents .active-child > a::after {
content: ' (active child)';
text-decoration: none;
color: #444; }

article {
overflow: hidden;
position: relative;
margin: 40px 0 40px 340px;
background: #fff;
border: 1px solid #ccc;
padding: 20px 40px 40px 40px; }
article h1, article h2, article h3, article h4 {
font-size: 30px;
line-height: 40px;
margin: 0 0 10px 0;
padding: 0;
font-weight: bold; }
article h1 {
margin: 0 0 20px 0;
padding-top: 20px; }
article h2, article h3, article h4 {
font-size: 20px;
line-height: 30px;
padding-top: 20px; }
article h3, article h4 {
font-size: 16px;
line-height: 24px; }
article p {
margin: 10px 0; }
77 changes: 77 additions & 0 deletions example/basic/example.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
* {
margin: 0; padding: 0;
}

body {
font: normal 16px/24px 'Helvetica Neue', Helvetica, Arial, freesans, sans-serif;
}

main {
width: 960px; margin: 0 auto; overflow: hidden;
}

#contents {
position: fixed; top: 40px; width: 320px;

ol {
counter-reset: section;
list-style-type: none;
}

li:before {
counter-increment: section;
content: counters(section, '.') '. ';
}

> ol {
background: #FFF8DC; border: 1px solid #E0DCBF; padding: 10px;
}

a {
color: #0000ee; text-decoration: none;

&:hover {
text-decoration: underline;
}
}

.active-anchor {
> a {
color: #f00;
}
}

.active-child {
> a {
&::after { content: ' (active child)'; text-decoration: none; color: #444; }
}
}
}

article {
overflow: hidden; position: relative; margin: 40px 0 40px 340px; background: #fff; border: 1px solid #ccc; padding: 20px 40px 40px 40px;

h1,
h2,
h3,
h4 {
font-size: 30px; line-height: 40px; margin: 0 0 10px 0; padding: 0; font-weight: bold;
}

h1 {
margin: 0 0 20px 0; padding-top: 20px;
}

h2,
h3,
h4 {
font-size: 20px; line-height: 30px; padding-top: 20px;
}

h3,
h4 { font-size: 16px; line-height: 24px; }

p {
margin: 10px 0;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "contents",
"title": "Contents",
"description": "Automatically generate table of contents for a given area of content.",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"devDependencies": {
"karma": "^0.12.22",
Expand Down

0 comments on commit 49a01f0

Please sign in to comment.