Local cannot add a TOC for md file
Closed this issue · 4 comments
m9rco commented
problems
🤥 pushaowei🍭 15:04 ➜ skill git:(master) ✗ ./gh-md-toc ~/notes/skill/README.md
Table of Contents
=================
Parsing local markdown file requires access to github API
Error: You exceeded the hourly limit. See: https://developer.github.com/v3/#rate-limiting
or place github auth token here: /Users/pushaowei/notes/skill/token.txt
version
🤥 pushaowei🍭 15:01 ➜ skill git:(master) ✗ ./gh-md-toc --version
0.6.0
./gh-md-toc: line 231: lsb_release: command not found
os:
cat: /proc/version: No such file or directory
kernel:
shell: zsh 5.3 (x86_64-apple-darwin17.0)
curl : curl 7.54.0 (x86_64-apple-darwin17.0) libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0
wget : GNU Wget 1.20 在 darwin17.7.0 上编译。
grep : grep (BSD grep) 2.5.1-FreeBSD
awk : awk version 20070501
sed : sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
m9rco commented
In addition, if there is a lot the git hooks to support this project
ekalinin commented
Hi,
Thanks for the report.
Please, take a look at the first message you provided:
Error: You exceeded the hourly limit. See: https://developer.github.com/v3/#rate-limiting
You have 2 options here:
- Wait next hour
- Use GITHUB token:
$ GH_TOC_TOKEN=<...> ./gh-md-toc ~/notes/skill/README.md
m9rco commented
thanks ekalinin,
ha, I think it is just a local deal with file,I will be token into the token here by token.txt ,still can appear the problem
QZ1220 commented
resolved???