Commit graph

9 commits

Author SHA1 Message Date
Carlos Alexandro Becker
9ebe39cd09
feat: improve gitlab/github readme url (#456)
* Use GitHub API to find readme filename

* Fix lint errors and typos

* Bring back "tries to find" instead of "finds"

* Rename `readmeURL` to `apiURL`

* Don't close body

* Use GitLab API to find readme filename

* feat: improve gitlab/github readme url

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: danielwerg <35052399+danielwerg@users.noreply.github.com>
2024-07-09 16:07:39 -03:00
Carlos Alexandro Becker
8e51396575
fix: check other possible readme paths/branches (#450)
* fix: check other possible readme paths/branches

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: url

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: Readme.md

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2024-07-03 13:09:20 -03:00
Carlos A Becker
4dd3ba1d3c chore: fmt & lint issues 2022-11-11 02:14:26 +01:00
Christian Rocha
c235780eee Appease the linter 2020-12-24 10:29:22 -05:00
Christian Muehlhaeuser
ec9cc0bde4
Make source private 2020-03-31 08:53:35 +02:00
Christian Muehlhaeuser
8eabf0f403 Handle relative URLs in markdown, when a BaseURL is provided 2019-11-26 00:35:11 +01:00
Christian Muehlhaeuser
1baefbbec1 Support github URLs without protocol 2019-11-25 04:55:54 +01:00
Christian Muehlhaeuser
14bc95c272 Find README(.md) in current working dir when no arg was supplied 2019-11-24 05:07:14 +01:00
Christian Muehlhaeuser
bbd2e15001 Support fetching READMEs from GitHub
When passing a valid GitHub URL instead of a filename to gold,
it will fetch either README.md or README (in that order) from
GitHub and displays the markdown content.

Example:

./gold -s dark.json https://github.com/muesli/beehive
2019-11-22 03:52:21 +01:00