Skip to content

Instantly share code, notes, and snippets.

@mkczyk
Last active March 24, 2019 23:11
Show Gist options
  • Save mkczyk/ea46c8032fbb3e4e534e to your computer and use it in GitHub Desktop.
Save mkczyk/ea46c8032fbb3e4e534e to your computer and use it in GitHub Desktop.

Przydatne do GitHuba

Markdown

https://help.github.com/articles/getting-started-with-writing-and-formatting-on-github/

Generowanie spisu treści (table of contents) — ekalinin/github-markdown-toc

Instalacja

https://github.com/ekalinin/github-markdown-toc

Pod Windowsem może to być np. w GIT Bash: wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc
Jeśli jest problem z certyfikatem SSL można użyć:
wget https://raw.githubusercontent.com/ekalinin/github-markdown-toc/master/gh-md-toc --no-check-certificate

Generowanie wpisu treści z lokalnego

./gh-md-toc temp.txt
lub:
./gh-md-toc temp.txt > toc.txt

Generowanie spisu treści ze zdalnego

./gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md

Jeśli jest proplem z polskimi znakami, można zapisać do pliku:

./gh-md-toc https://github.com/ekalinin/envirius/blob/master/README.md > toc.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment