Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve README #98

Open
frankban opened this issue May 5, 2021 · 4 comments
Open

Improve README #98

frankban opened this issue May 5, 2021 · 4 comments

Comments

@frankban
Copy link
Owner

frankban commented May 5, 2021

The README file is generated using godocdown, which is not maintained and doesn't support nice to have features like syntax highlighting of code blocks and table of contents.
There is a much more maintained library (https://github.com/posener/goreadme) that seems to support code highlighting, but lacks the templating features of godocdown.
Should we instead stop generating README from godocs, and prefer more curated markdown documentation?

@frankban
Copy link
Owner Author

frankban commented May 5, 2021

Conversation started at #96

@gilcrest
Copy link
Contributor

gilcrest commented May 7, 2021

IMO, you should just curate a separate README. You have the extra step of having to add documentation to the doc.go file anyway, so just editing the README directly doesn't seem that much of an extra burden. Plus, markdown is pretty fun to write compared to just bland old text. The README can be a bit better organized and can teach the end-user a bit more if crafted properly.

@dolmen
Copy link
Contributor

dolmen commented Jun 12, 2023

About godocdown, are you talking about https://github.com/robertkrimen/godocdown which didn't got a commit for 10 years now?

Note also that godocdown doesn't support modern go doc features such as godoc links. This keeps the project is the old world.

@dolmen
Copy link
Contributor

dolmen commented Jun 12, 2023

pkg.go.dev is so good now that I think that duplicating the Go documentation in the README is useless as every Go developer should now be aware of it. Anyway I've rebuilt README with godocdown in #162.

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

No branches or pull requests

3 participants