Comments (7)
Using 0.8.0 on Manjaro (Arch). Problem is intermittent and I can't spot a pattern yet. Generates fine a number of times, and then stops working when using the exact same command.
@andy-bren Looks like API rate limit exceeded
error from GitHub.
This kind of error was handled properly before.
Please, try last version:
Here's how it is handled in 1.0.0:
➜ ./gh-md-toc https://raw.githubusercontent.com/ekalinin/github-markdown-toc.go/master/README.md
Table of Contents
=================
2018/11/13 20:03:06 {"message":"API rate limit exceeded for XX.XX.XX.47. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://developer.github.com/v3/#rate-limiting"}
To fix it you need to use Personal API Token:
Here's an example:
➜ ./gh-md-toc README.md --token="XXXXXXXXXXXXX"
Table of Contents
=================
* [github\-markdown\-toc](#github-markdown-toc)
* [Table of Contents](#table-of-contents)
* [Installation](#installation)
* [Precompiled binaries](#precompiled-binaries)
* [Compiling from source](#compiling-from-source)
* [Homebew (Mac only)](#homebew-mac-only)
* [Tests](#tests)
* [Usage](#usage)
* [STDIN](#stdin)
* [Local files](#local-files)
* [Remote files](#remote-files)
* [Multiple files](#multiple-files)
* [Combo](#combo)
* [Depth](#depth)
* [No escape](#no-escape)
* [Github token](#github-token)
* [Bash/ZSH auto\-complete](#bashzsh-auto-complete)
* [LICENSE](#license)
Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)
from github-markdown-toc.go.
As far as i see all works:
➥ ./gh-md-toc --version
0.7.0
➥ ./gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md
Table of Contents
=================
* [envirius](#envirius)
* [Table of Contents](#table-of-contents)
* [Idea](#idea)
* [Features](#features)
* [Installation](#installation)
* [Uninstallation](#uninstallation)
* [Available plugins](#available-plugins)
* [Usage](#usage)
* [Check available plugins](#check-available-plugins)
* [Check available versions for each plugin](#check-available-versions-for-each-plugin)
* [Create an environment](#create-an-environment)
* [Activate/deactivate environment](#activatedeactivate-environment)
* [Activating in a new shell](#activating-in-a-new-shell)
* [Activating in the same shell](#activating-in-the-same-shell)
* [Get list of environments](#get-list-of-environments)
* [Get current activated environment](#get-current-activated-environment)
* [Do something in environment without enabling it](#do-something-in-environment-without-enabling-it)
* [Export environment into tar archive](#export-environment-into-tar-archive)
* [Import environment from tar archive](#import-environment-from-tar-archive)
* [Get help](#get-help)
* [Get help for a command](#get-help-for-a-command)
* [How to add a plugin?](#how-to-add-a-plugin)
* [Mandatory elements](#mandatory-elements)
* [plug\_list\_versions](#plug_list_versions)
* [plug\_url\_for\_download](#plug_url_for_download)
* [plug\_build](#plug_build)
* [Optional elements](#optional-elements)
* [Variables](#variables)
* [Functions](#functions)
* [Examples](#examples)
* [Example of the usage](#example-of-the-usage)
* [Dependencies](#dependencies)
* [Supported OS](#supported-os)
* [Tests](#tests)
* [Version History](#version-history)
* [License](#license)
* [README in another language](#readme-in-another-language)
Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)
➥ ./gh-md-toc README.md
Table of Contents
=================
* [github\-markdown\-toc](#github-markdown-toc)
* [Table of Contents](#table-of-contents)
* [Installation](#installation)
* [Precompiled binaries](#precompiled-binaries)
* [Compiling from source](#compiling-from-source)
* [Tests](#tests)
* [Usage](#usage)
* [STDIN](#stdin)
* [Local files](#local-files)
* [Remote files](#remote-files)
* [Multiple files](#multiple-files)
* [Combo](#combo)
* [Depth](#depth)
* [LICENSE](#license)
Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)
from github-markdown-toc.go.
Yes, can't reproduce the issue, 0.4.8 and 0.7.0
from github-markdown-toc.go.
I'm also reproducing this on 0.8.0 available from homebrew:
$ gh-md-toc --version
0.8.0
$ gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md
Table of Contents
=================
Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)
from github-markdown-toc.go.
same issue on 0.8.0 from homebrew
from github-markdown-toc.go.
Using 0.8.0 on Manjaro (Arch). Problem is intermittent and I can't spot a pattern yet. Generates fine a number of times, and then stops working when using the exact same command.
from github-markdown-toc.go.
Generating blank TOCs for me as well.
$ gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md
Table of Contents
=================
Created by [gh-md-toc](https://github.com/ekalinin/github-markdown-toc.go)
jpepas@radium$ gh-md-toc --version
0.8.0
jpepas@radium$ which gh-md-toc
/usr/local/bin/gh-md-toc
jpepas@radium$ ls -l /usr/local/bin/gh-md-toc
lrwxr-xr-x 1 jpepas admin 49 Apr 25 17:58 /usr/local/bin/gh-md-toc -> ../Cellar/github-markdown-toc/0.8.0/bin/gh-md-toc
jpepas@radium$
from github-markdown-toc.go.
Related Issues (20)
- Can't display normally in gitbook
- Running setup is racecy and doesn't write an MBR reliably HOT 1
- ?access_token will stop functioning in the GitHub API soon
- Option for start depth
- [BUG] Can't work well when the text > 400KB HOT 1
- [Feature] Add --insert option (like in shell project) HOT 2
- New release HOT 4
- [BUG] TOC picks up YAML
- The released gh-md-toc.linux.amd64.tgz prints http headers
- [Feature] --insert flag HOT 1
- [Feature] support `go install`-based installation HOT 4
- [ Report ] Can't create a TOC because GitHub API's response has changed HOT 1
- regression test failure with github-markdown-toc 1.2.0 HOT 4
- [Question] Hi,it had worked correctly before, but do not work now and prompt such information. HOT 3
- [BUG] [Windows release] Doesn't output any TOC, just a list of HTTP headers HOT 9
- [Feature] Replace TOC comment in place on a folder HOT 2
- [Feature] Sends data to github.com (should be able to send to internal github enterprise instead)
- [ BUG ] Unable to generate TOC
- [ BUG ] empty render
- Your code is completely broken now HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-markdown-toc.go.