~adnano

https://adnano.co

~adnano/astronaut-devel

Last active 11 days ago

~adnano/astronaut-discuss

Last active 11 days ago

~adnano/go-gemini-devel

Last active a month ago

~adnano/kiln-discuss

Last active a month ago

~adnano/kiln-devel

Last active 3 months ago

~adnano/public-inbox

Last active 3 months ago

~adnano/go-gemini-announce

Last active 5 months ago

~adnano/kiln-announce

Last active 5 months ago

~adnano/go-collide-announce

Last active 9 months ago

~adnano/astronaut-announce

Last active 9 months ago
View more

Recent activity

Re: missing function 3 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

On Fri Dec 3, 2021 at 9:41 AM EST, Steven Penny wrote:
> good:
> https://pkg.go.dev/github.com/mattn/go-sqlite3#SQLiteResult.LastInsertId
>
> bad:
> https://godocs.io/github.com/mattn/go-sqlite3#SQLiteResult.LastInsertId

It seems like some symbols are missing for two reasons:

1. pkgsite builds documentation with the 'cgo' tag enabled, while gddo
does not.

2. Release tags (e.g. 'go1.8') are mistakenly not enabled by gddo. The
documentation for go/build.Context says: "it is usually an error to

[PATCH gddo] internal/server: Remove /C redirect 5 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

It isn't possible to trigger this redirect by searching, and it is
unlikely that someone will manually visit this URL.
---
 internal/server/http.go | 1 -
 1 file changed, 1 deletion(-)

diff --git a/internal/server/http.go b/internal/server/http.go
index e18ea29..de58b6e 100644
--- a/internal/server/http.go
+++ b/internal/server/http.go
@@ -44,7 +44,6 @@ func (s *Server) HTTPHandler() (http.Handler, error) {
	mux.Handle("/-/refresh", handler(s.serveRefresh))
	mux.Handle("/favicon.ico", staticServer.FileHandler("favicon.ico"))
	mux.Handle("/robots.txt", staticServer.FileHandler("robots.txt"))
[message trimmed]

[PATCH gddo 2/2] Add contrib scripts 5 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

---
 contrib/blocklist     | 27 +++++++++++++++++++++++++++
 contrib/delete-module | 12 ++++++++++++
 contrib/list-modules  |  2 ++
 3 files changed, 41 insertions(+)
 create mode 100755 contrib/blocklist
 create mode 100755 contrib/delete-module
 create mode 100755 contrib/list-modules

diff --git a/contrib/blocklist b/contrib/blocklist
new file mode 100755
index 0000000..a54ef13
--- /dev/null
+++ b/contrib/blocklist
[message trimmed]

[PATCH gddo 1/2] cmd: Remove gddo-admin 5 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

Also rename gddo-server to gddo.
---
This is done because:

1. gddo-admin is limited, and its functionality can easily be replicated
by a few shell scripts (which are added in the next patch)
2. gddo-admin is also rarely used for godocs.io
2. gddo-admin is not useful when viewing documentation locally

 .gitignore                        |  3 +-
 Makefile                          | 16 +++----
 README.md                         |  4 +-
 cmd/gddo-admin/block.go           | 36 ----------------
 cmd/gddo-admin/delete.go          | 35 ----------------
[message trimmed]

Current implementations 7 days ago

From Adnan Maolood to ~ancarda/vcs-autodiscovery

Hi,

Just wanted to let you know that I sent a patch to add forge and VCS
meta tags to git.sr.ht, and it was accepted and has been deployed! I
plan on adding support to hg.sr.ht as well.

I've also added support for forge meta tags to godocs.io to facilitate
linking to the source code for Go files and symbols.

Thanks for writing this RFC!

Re: Missing function 7 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

The fix has been deployed now.

Re: Missing description and wrong platform files 7 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

The fix has been deployed now.

[PATCH gddo 4/4] internal/server: Add --hostname flag 7 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

Add the --hostname flag to configure which hostname the Gemini server
will generate certificates for. This avoids the possibility that a
malicious client could fill up disk space with extraneous certificates.
---
 cmd/gddo-server/main.go   | 2 +-
 internal/server/config.go | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/cmd/gddo-server/main.go b/cmd/gddo-server/main.go
index df87bb1..38de4c2 100644
--- a/cmd/gddo-server/main.go
+++ b/cmd/gddo-server/main.go
@@ -159,7 +159,7 @@ func serveGemini(ctx context.Context, s *server.Server, cfg *server.Config) erro
	}
[message trimmed]

[PATCH gddo 3/4] Add package comments 7 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

---
 internal/httputil/doc.go        | 2 ++
 internal/meta/meta.go           | 1 +
 internal/modcache/modcache.go   | 1 +
 internal/platforms/platforms.go | 1 +
 internal/proxy/proxy.go         | 2 +-
 internal/server/server.go       | 1 +
 6 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100644 internal/httputil/doc.go

diff --git a/internal/httputil/doc.go b/internal/httputil/doc.go
new file mode 100644
index 0000000..825fffe
--- /dev/null
[message trimmed]

[PATCH gddo 2/4] internal/server: Store modules in one transaction 7 days ago

From Adnan Maolood to ~sircmpwn/godocs.io

Store module packages in the database in one transaction to avoid
invalid states.

Also modify ImportGraph to load all packages in the import graph in one
transaction.
---
 internal/database/database.go | 193 ++++++++++++++++------------------
 internal/server/fetch.go      |  75 ++++++++-----
 internal/server/load.go       |   4 +-
 3 files changed, 140 insertions(+), 132 deletions(-)

diff --git a/internal/database/database.go b/internal/database/database.go
index 583b59a..fceb7a8 100644
--- a/internal/database/database.go
[message trimmed]