Skip to content

Commit

Permalink
pointing link at github repo instead of webapp
Browse files Browse the repository at this point in the history
- web app is broken at this point and won't be maintained
- mainly due to the fact that it will break anytime github changes their html structure
  • Loading branch information
thlorenz committed Jan 12, 2015
1 parent 92350b9 commit fb284fd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ by github or bitbucket via a command line flag.

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Installation](#installation)
- [Usage](#usage)
Expand Down
2 changes: 1 addition & 1 deletion lib/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ exports = module.exports = function transform(content, mode, maxHeaderNo) {
if (linkedHeaders.length === 0) return { transformed: false };

var toc =
'**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*'
'**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*'
+ '\n\n'
+ linkedHeaders
.map(function (x) {
Expand Down
4 changes: 2 additions & 2 deletions test/transform-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test('\ngiven a file that includes html with header tags and maxHeaderNo 8', fun

t.deepEqual(
headers.toc.split('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*',
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*',
'',
'- [Installation](#installation)',
'- [API](#api)',
Expand All @@ -35,7 +35,7 @@ test('\ngiven a file that includes html with header tags using default maxHeader

t.deepEqual(
headers.toc.split('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*',
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*',
'',
'- [Installation](#installation)',
'- [API](#api)',
Expand Down
28 changes: 14 additions & 14 deletions test/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ check(
, '#### Main Usage'
, 'some main usage here'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [My Module](#my-module)\n'
, ' - [API](#api)\n'
, ' - [Method One](#method-one)\n'
Expand All @@ -63,7 +63,7 @@ check(
, '#### Main Usage'
, 'some main usage here'
].join('\r\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [My Module using \\r\\n line endings](#my-module-using-\\r\\n-line-endings)\n'
, ' - [API](#api)\n'
, ' - [Method One](#method-one)\n'
Expand All @@ -79,7 +79,7 @@ check(
, 'API'
, '---------'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [My Module](#my-module)\n'
, ' - [API](#api)\n\n\n'
].join('')
Expand All @@ -90,7 +90,7 @@ check(
, 'Some text here'
, '## API ##'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [My Module](#my-module)\n'
, ' - [API](#api)\n\n\n'
].join('')
Expand All @@ -108,7 +108,7 @@ check(
, ''
, '## Title should also be included'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [Title should be included](#title-should-be-included)\n'
, '- [Title should also be included](#title-should-also-be-included)\n\n\n'
].join('')
Expand All @@ -119,7 +119,7 @@ check(
, ''
, '# Repeating A Title'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [Repeating A Title](#repeating-a-title)\n'
, '- [Repeating A Title](#repeating-a-title-1)\n\n\n'
].join('')
Expand All @@ -130,7 +130,7 @@ check(
, 'some content'
, '-- preceded by two dashes but has content, therefore "some content" should not be header'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n',
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n',
'- [Header](#header)\n\n\n',
].join('')
)
Expand All @@ -141,7 +141,7 @@ check(
, 'In the Right Order'
, '=================='
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [Different Kinds](#different-kinds)\n'
, '- [In the Right Order](#in-the-right-order)\n\n\n'
].join('')
Expand All @@ -153,7 +153,7 @@ check(
, ''
, '# In the Right Order 2'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [Different Kinds 2](#different-kinds-2)\n'
, '- [In the Right Order 2](#in-the-right-order-2)\n\n\n'
].join('')
Expand All @@ -167,7 +167,7 @@ test('transforming when old toc exists', function (t) {
, ''
, '<!-- START doctoc generated TOC please keep comment here to allow auto update -->'
, '<!-- DON\'T EDIT THIS SECTION INSTEAD RE-RUN doctoc TO UPDATE -->'
, '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*'
, '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*'
, ''
, '- [OldHeader](#oldheader)'
, ''
Expand All @@ -183,7 +183,7 @@ test('transforming when old toc exists', function (t) {

t.deepEqual(
res.toc.split('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*',
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*',
'',
'- [Header](#header)',
'' ]
Expand All @@ -194,7 +194,7 @@ test('transforming when old toc exists', function (t) {
res.wrappedToc.split('\n')
, [ '<!-- START doctoc generated TOC please keep comment here to allow auto update -->',
'<!-- DON\'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->',
'**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*',
'**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*',
'',
'- [Header](#header)',
'',
Expand All @@ -211,7 +211,7 @@ test('transforming when old toc exists', function (t) {
'',
'<!-- START doctoc generated TOC please keep comment here to allow auto update -->',
'<!-- DON\'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->',
'**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*',
'**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*',
'',
'- [Header](#header)',
'',
Expand All @@ -235,7 +235,7 @@ check(
, '#### Main Usage'
, 'some main usage here'
].join('\n')
, [ '**Table of Contents** *generated with [DocToc](http://doctoc.herokuapp.com/)*\n\n'
, [ '**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n'
, '- [My Module](#markdown-header-my-module)\n'
, ' - [API](#markdown-header-api)\n'
, ' - [Method One](#markdown-header-method-one)\n'
Expand Down

0 comments on commit fb284fd

Please sign in to comment.